Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17625

Write a c++ program that stores monthly rainfall amounts in an array.

$
0
0

Stores monthly rainfall amounts in an array.

Write a c++ program that stores monthly rainfall amounts in an array.

Object:

Write a program that stores monthly rainfall amounts in an array. The program then displays the monthly rainfall amounts, the total annual rainfall amount, the average rainfall amount, the highest rainfall amount, or the lowest rainfall amount First get the rainfall amounts for the 12 months. Example: 
Enter rainfall for month 1: 12.5 
Enter rainfall for month 2: 15 
Next, display the following menu and wait for the user response. Repeat the menu display and the calculation as long as the user is not typing 6. (The rainfall amounts should …


Viewing all articles
Browse latest Browse all 17625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>