
Write a c++ program that uses a two-dimensional array to store the highest and lowest temperature for six months a year.
Main
calls the 4 functions
Prompt user
Function 1
accepts and stores the lowest and highest temp
Function 2
calculates and returns the average low temp
Function 3
Calculates and returns the average high temp
Function 4
Output to the screen 2D array with the lowest and highest temp for each six months
the average low
and the average high
** Allow the user to continue using the program as a 'y' or 'Y' is a sentinel value to start and to continue using the program.
Format output and print in tabular format (static something)
Here is what I have so far, I am confused!! HELP!! :
#include <iostream> using namespace std; int acceptstore({}, {}); int calReturnlow(); int calReturnhigh(); int outputFunc(); int main() { int lowinput; int highinput; char cont; cont = 'y'; cout<<"Enter Y or y to begin"<<endl; cin>> cont; while(cont=='Y' || cont== 'y') { cout<<"Please enter the lowest temperature for each month of six months"<<endl; cin>> lowinput; cout<<"Please enter the highest temperature for each month of six months"<<endl; cin>> highinput; acceptstore({], {}); calReturnlow(); calReturnhigh(); outputFunc(); return 0; } int accepts&store() { } int calReturnlow() { } int calReturnhigh() { } int outputFunc() { }
*** MOD EDIT: Added code tags. Please

This post has been edited by JackOfAllTrades: 01 December 2009 - 03:25 PM