subject
Engineering, 12.03.2020 03:30 asilverman

Assignment Ahead of an expected drought this winter, the National Weather Service would like you to write a program that records the rainfall totals for 5 California cities and calculates a some statistics on the data. They would like to use your program in their branch offices across the state, so it needs to be able to accept rainfall data for any 5 cities, specified by the user. Using values stored in arrays, write a program that does the following: 1. Prompts the user for the names of 5 California cities. You can use any 5 cities of your choosing. Here are some to help you get started: (note that some cities have spaces in their names, this should be allowed). 2. Prompts the user in a loop) to enter rainfall totals (in inches, as a decimal number) for each of the 5 cities. Validate the input so the rainfall must be re-entered if it is less than zero or greater than 100. 3. Using 3 value-returning functions, calculate the locations with the highest and lowest rainfall and the average rainfall across the 5 cities. 4. Output the 3 calculated values with a precision of 2 digits past the decimal point.

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Water at 55c flows across a flat plate whose surface temperature is held constant at 95c. if the temperature gradient at the plate's surface for a given value of x is 18 c/mm, find a) local heat transfer coefficient. b) heat flux
Answers: 3
question
Engineering, 04.07.2019 18:20
Select any two (2) areas of applications of chain-drive. (clo4) a)-permanent lubrication necessary b)-hydraulic forklift truck operation c)-rigging and heavy moving materials d)-relatively high maintenance costs e)-costlier than belt drives
Answers: 2
question
Engineering, 04.07.2019 19:10
Estimate the change in specific internal energy au and specific enthalpy h from inlet to outlet for ethylene glycol (a liquid) flowing through each of the following devices: (a) a heat exchanger where the glycol temperature increases from 20 °c to 80 °c; (b) a pump operating at about 25 °c and increasing the glycol pressure from 100 kpa to 8 mpa.
Answers: 2
question
Engineering, 04.07.2019 19:20
Acarnot refrigerator operates in a room in which the temperature is 21°c and of power when operating. if the food compartment of the refrigerator is consumes 3 kw to be maintained at 2°c, determine (a) the coefficient of performance of the cycle and (b) the rate of heat removal from the food compartment. refrigerator cycle that has a higher coefficient of performance than that of the discussed (e) is it possible to develop a carn ot refrigerator, operating between the same temperature limits? explain
Answers: 2
You know the right answer?
Assignment Ahead of an expected drought this winter, the National Weather Service would like you to...
Questions
question
English, 11.02.2020 22:28
question
Mathematics, 11.02.2020 22:28
Questions on the website: 13722361