Question: Write the Decomposition for this problem. Also include a listing of inputs and outputs. Finally, list the condition of when the loop will end

Write the Decomposition for this problem. Also include a listing of inputs

  

Write the Decomposition for this problem. Also include a listing of inputs and outputs. Finally, list the condition of when the loop will end and how you will determine what prints out to the user. Create a program using a loop that will analyze the amount of ran that fell during the 3 summer months of this year and last year. For each month the program needs to prompt the user for the amount of rain that fell this year and the amount of rain that fell last year. The program will then determine the difference. If the difference is negative then the program needs to print out "This year there was less rain by X inches.". Where X is the difference between this year and last year. If the difference is positive, the program needs to print out "This year there was more rain by X inches." Where X is, once again the difference. If the amount of rain that fell this year is the same as last year, have the program print out "No change."

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Operating System Questions!