Short Answer 1) Why should you indent the statements in the body of a loop? Because by indenting the statements in the body of the loop you visually set them apart from the surrounding code. This makes your program easier to read and debug 2) Describe the difference between pretest loops and posttest loops A pretest loop means to test its condition before performing an iteration A posttest loop means it performs an iteration before testing its condition 3) What is a condition-controlled loop? A condition-controlled loop uses a true/false condition to control the number of times that it repeats 4) What is a count-controlled loop? A count-controlled loop repeats a specific number of times 5) What three actions do …show more content…
le1 Sub Main() 'This program gets a budget for the user then display the amount the user is over or under budget Dim monthlyTotal As Double = 0 Dim budgetAmount As Double = 0 Dim sumAmount As Double = 0 'Getting the budget amount Console.WriteLine("What is your budget buddy?") budgetAmount = Console.ReadLine() Console.WriteLine("Your budget is " & budgetAmount) Console.ReadLine() 'This function gets all the expense for the month getMonthlyExpenses(monthlyTotal) 'This module tells the user if they are over or under and by how much calculatingTotals(monthlyTotal, budgetAmount, sumAmount) Console.WriteLine("Press enter to continue") Console.ReadLine() End Sub Function getMonthlyExpenses(ByRef monthlyTotal As Double) Dim anymore As String = "Y" Dim expense As Double = 0 Do While anymore = UCase("Y") Console.WriteLine("Enter your expenses") expense = Console.ReadLine() monthlyTotal = monthlyTotal + expense Console.WriteLine(" Do you have anymore expenses enter y for Yes and n for NO?") anymore = Console.ReadLine() Loop Return monthlyTotal End Function Sub calculatingTotals(ByRef monthlyTotal As Double, ByRef budgetAmount As Double, ByRef sumAmount As Double) If budgetAmount <
Preparing for The Joint Commission, Nightingale Community Hospital reviews areas of compliance and non-compliance. A periodic performance review, which is a self-evaluation, is utilized by Nightingale Community Hospital, to prepare for The Joint Commission. The Joint Commission has eighteen accreditation requirements. (Commission, 2013) The periodic performance review found the hospital to be compliant and non- compliant in the following areas:
John Doe is an individual that left his country in an effort to make a better life. However, he does not have legal status in America and was recently arrested for shoplifting merchandise, which was valued over $1,000. At the time of his arrest, John voluntarily began to make incriminating statements to the arresting officers. At the police station, detectives conducted an interview of John asking him about the theft. John Doe has had no prior arrests, is 35 years old, and most of John Doe’s family still resides in his home country. Due to the amount of money involved, the crime is deemed a felony and John was arrested and placed in the county jail in Toms River, NJ. He is
During reconstruction, the meaning of freedom suited many different types of interpretation; the perception of freedom between former slaves and their slaves masters were very contradictory. To begin with, African-Americans had suffered severe abuse over those years of slavery, so to them, the meaning of freedom was basically a hope that in the future, they won’t experience all kind of punishment and exploration that they have been experienced so far. Besides that, formers slaves were demanding equal civil and political rights. In the same way, they valued their freedom by establishing their own schools and churches, reuniting families that were separated under
The cost of quality in a manufacturing process and environment are many as you are aware. But the 3 primary costs that we should review on a more regular basis to assure we are creating the most cost effective and quality products are the following: Appraisal, Prevention and Failure, and failure costs should be looked at as internal failure and external failure.
The manager will need to ensure that they have the correct level of rapport with their employee. Too familiar in nature may be misconstrued as forward and harassing in the wrong context. However no personal rapport whatsoever may provide the receiver of the information with the impression that the sender of the information is just not interested. A fine line must be weighed up for each individual. When a good rapport has been achieved, then the person will uncritically accept suggestion or advice which they are given.
1. The pressure announced on last night's television weather broadcast was 29.92. Explain how this was measured and give the units. Would this be considered an unusually large or low pressure value?
This questionnaire will utilize close-ended questions for several reasons. The close-ended questions enable pre-set answers which allows for greater ease of coding and analyzation of answers while simultaneously taking away any opportunity for unnecessary or undesired answers to questions. It also adds to higher incidences of participation in the study because the respondent will not have to take vast amounts of time to respond to short-answer questions which can be daunting for those who have difficulty reading or writing which is important in regards to seniors who may have difficulty reading due to poor eyesight or may have problems holding a pen or pencil due to arthritis.
Sections 1, 2 and 3 are worth 30 points each. You must place the hyphen correctly in Section 1 and 2. In section 3 you must place the combining form with the slash to receive full credit. Section 4 is worth 60 points.This assignment contains 4 sections and APA formatting, which is worth 150 points. Incorrect spelling and not placing the hyphen or slash mark properly will result in deductions from the total score. In Section 1, you will identify the prefix for the given definition.In Section 2, you will identify the suffix for the given definition. In Section 3, you will identify the combining form for the given definition. In Section 4, you will proofread the Progress Report listed below. Next, you will
Refer as needed to material in Chapters 12 and 13. Read the instructions carefully and answer all questions clearly and concisely. Include examples to highlight your comments.
In any organization effective communication forms an essential part of the organization’s growth and progress. However, it has been seen that this is not always the case. This istrue in today’s globalized world when one has employees coming from different ethnic, cultural and religious backgrounds working together. If the reasons for communication failure are examined it has been found that they fall in four distinct categories. These are:
The following are headings for broad areas students will have to research to show evidence of competence in PTLLS.
The teacher has to be responsible for designing the scheme of work, lesson plans, obtaining up to date qualification handbooks, agree individual learning plans, carrying out risk assessments, write realistic aims.
Activities that are not suitable for some residents. Base some activities around the residents. Have easier yet ideal avtivities such as reading or some sort of physical activities to keep them fit.
In the hypothesis test we determined the null will be rejected based on the p-value (0.01) which is less than alpha level (.05) and if a bell curve was created the t-stat (2.53) and t-critical (1.67) would support the decision. The information from the collected data shows UniDun ball cannot be driven further than the SFballs.
Technology has an impact on almost everyone’s lives these days. People communicate with Facebook and text messages other than calling people on the phone or actually going to visit that person. This is becoming a problem, because the more involved with technology we are the less we are involved with socialization. Imagine a world where all we have is computers everywhere and they do everything for us, would people remember how to interact with one another? This is the problem I don’t want to see happening, so many companies are trying to think of the latest and greatest technology and don’t care about the effect on the