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
-
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
-
Borques Company produces and sells wooden pallets that are used for moving and stackingmaterials. The operating costs for the past year were as follows: Variable costs per unit: Direct materials...
-
The instruction Brush your hair 5 times is an example of which structure? a. Control b. Repetition c. Selection d. Sequence
-
A piece of cloth is discovered in a burial pit in the southwestern United States. A tiny sample of the cloth is burned to CO 2 , and the 14 C/ 12 C ratio is 0.250 times the ratio in todays...
-
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...
-
Part E Constants A rigid, uniform, horizontal bar of mass m and length is supported by two identical massless strings. (Figure 1)Both strings are vertical. String A is attached at a distance d < L/2...
-
That old equipment for producing carburetors is worn out, said Bill Seebach, president of Hondrich Company. We need to make a decision quickly. The company is trying to decide whether it should rent...
-
Juniper wants to receive $ 1 , 5 0 0 at the end of each of the next eight years. If his opportunity cost rate is percent compounded annually, how much must he deposit in an account today?
-
What supply chain strategies (logistics management, digitization, use of artificial intelligence, block chain, leveling of fluctuations, bullwhip effect, outsourcing, global operations, chain...
-
Develop questions as if you were a Board member listening to the presentation to ask of the CISO. Consider your governance and oversight role as a Board Director when you develop your questions: Why...
-
Projects exist and operate within certain environments that influence value delivery. The project environment can yield both favorable or unfavorable impact of project characteristics, stakeholders,...
-
write an SOP for buying a washing machine. Just want to get an idea of how to write that.
-
Discuss and describe some skills and competencies that you think are important to managers working in todays world, characterized by generational differences, todays workplace culture, technology,...
-
Some people argue that the internal control requirements of the Sarbanes-Oxley Act (SOX) put U.S. companies at a competitive disadvantage to companies outside the United States. Discuss the...
-
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
-
Assume a stock is priced at $100; calculate its intrinsic value based on the Gordon growth DDM, with the following assumptions: D0 = $3, g = 6 percent, and k = 10 percent. Indicate whether investors...
-
The simplest sequential description of the Ewens sampling formula is called the Chinese restaurant process. The first customer arrives and is seated at a table. After \(n\) customers have been...
-
Suppose Borg Corporation was operating at 88 percent of capacity. What would sales be at full capacity? What is the EFN in this case? What is the capital intensity ratio at full capacity?
Study smarter with the SolutionInn App