Electrical and Computer Engineering
41 of 45
UAH
CPE 112
Problem Solving Case Study
•//************************************************************
•// Rainfall program
•// This program inputs 12 monthly rainfall amounts from a
•// recording site and computes the average monthly rainfall.
•// This process is repeated for as many recording sites as
•// the user wishes.
•//************************************************************
•
•#include <iostream>
•#include <iomanip>    // For setprecision()
•
•using namespace std;
•
•void Get12Amounts( float& );
•void GetOneAmount( float& );
•void GetYesOrNo( char& );