The biggest thing she need to consider are her variables. and the output she will get.
Answer:
It allows for Non-linear editing
Answer:
a = 6, b = 0
Explanation:
The loop ran 3 times before b == 0. "while ((b != 0)" is essentially saying: 'While b is not equal to 0, do what's in my loop'. Same general thing with "&& ((a / b) >= 0)". The "&&" is specifying that there should be another loop condition, while the rest states: 'as long as a ÷ b is greater than 0, do what's in my loop'. If both of these conditions are met, the loop will run, It will continue this until the conditions are not met. Hope that helped! :)
Answer:
The correct loop is as follows:
for year in range(starting_tuitionYear, ending_tuitionYear, increment):
tuition = startingTuition + rate * startingTuition
startingTuition = tuition
print('Tuition for the year of ' + str(year)+ ' is ' + str(tuition));
Explanation:
Required
The correction to the attached program
Some variables are not needed; so, I've removed the redundant variables.
The main error in the program is in the loop;
After the tuition for each year has been calculated, the startTuition of the next year must be set to the current tuition
<em>See attachment for complete program</em>
Answer:
Option A(True) is the correct answer for the above question.
Explanation:
- The flowchart is used to give the solution of a problem through the diagram in a step by step processor. It helps the user to understand the solution easily. For diagram, it uses many types of symbols that are fixed for every sequence just like An oval symbol represents the start and end of the flowchart which is fixed for every flowchart.
- So for the decisions in a flowchart, the diamond symbol is used which is to make the decisions and it has two sides-- one is true and the other is false.
- The decisions are used also to represent the loop structure which is also called the repetition structure because the loop is controlled by the help of decisions so the diamond box is also used for the loop
- The above question-statement says that the decisions-controlled is used for the loop and for the decisions which are true because it is also described above.