Write the Decomposition for this problem. Also include a listing of inputs and outputs. Finally, list...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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." 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."
Expert Answer:
Related Book For
Computer organization and architecture designing for performance
ISBN: 978-0136073734
8th edition
Authors: william stallings
Posted Date:
Students also viewed these operating system questions
-
Suppose Diana, an educational researcher at a local university, wants to test the impact of a new Spanish course that integrates cultural-immersion teaching techniques with standard teaching...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Draw a plausible mechanism for each of the following transformations: (a) (b) [TSOH] MENH2 -H20
-
The following information pertains to Chacon Inc. for last year: Beginning inventory in units .........................5,000 Units produced ....................................20,000 Units sold...
-
For the circuit shown in Figure 691, calculate the following: (a) Total resistance across the source (b) Total current from the source (c) Current through the 910 resistor (d) Voltage from point A to...
-
\(\frac{3}{\sqrt{2}}\) Rationalize the denominators of the fractions, and then simplify.
-
Joy Cunningham Co. purchased a machine on January 1, 2005, for $550,000. At that time it was estimated that the machine would have a 10-year life and no salvage value . On December 31, 2008, the...
-
The most recent financial statements for Tran Company are shown here: Income Statement Balance Sheet Sales $ 44,750 Current assets $ 18,540 Long-term debt $ 37,670 Costs 36,150 - Fixed assets 68,950...
-
Julio works at a large teaching hospital in a major metropolitan area. This institution services the entire geographical region, including indigent clients, and, because of its reputation,...
-
Marcus owns Fantasy Adventure Vacations, which is a sole proprietorship and a cash basis business. He received a $7,525 payment for services on December 29th of the current tax year. Marcus didn't...
-
Write 3 reasons for virtualizing servers? You discover a virus attack on your local network. What should be your first step? Multi factor authentication is being considered by many organizations....
-
Vita - Immune Ltd . is considering expanding its product range by producing two new multivitamins and multi - minerals with Immunity booster ingredients in two different forms, Gummies and Oral...
-
Suppose demand for domestic airline tickets is given by P = 800 - 3Q and supply is given by P = 10 + 2Q. The government, in an attempt to encourage Australians to consider driving instead of flying,...
-
Each of the following trigonometric expressions can be simplified to a numerical value, where cose 0 and sine 0. Reference Trigonometric Number Expression csc20-cot 20 1 2 sin@csce 2 3 -1 tane...
-
Evaluate the performance provide information for financial statements? How Managers use the process cost summary for improvements company as a whole?
-
Symmetrie Matrix The matrix below gives the road mileage between Atlanta (A), Baltimore (B), Cleveland (C), and Denver (D). (a) Explain why the entry in the ith row and the column is the same as the...
-
From the choice of simple moving average, exponential smoothing, and linear regression analysis, which forecasting technique would you consider the most accurate? Why? please write it in word...
-
A distinction is made between physical records and logical records. A logical record is a collection of related data elements treated as a conceptual unit, independent of how or where the information...
-
Numerical values A and B are stored in the computer as approximations A and B. Neglecting any further truncation or round off errors, show that the relative error of the product is approximately the...
-
Assume numbers are represented in 8-bit twos complement representation. Show the calculation of the following: a. 6 + 13 b. -6 + 13 c. 6 - 13 d. -6 - 13
-
What are three factors that influence employment opportunities?
-
How can you learn more about your own abilities, interests, and personal qualities as they relate to career planning?
-
What are three ways through which you might obtain employment experience?
Study smarter with the SolutionInn App