Declare a seven-row, two-column int array named temperatures.
The program should prompt the user to enter the highest and lowest temperatures for seven days.
Store the highest temp in the first column and the lowest in the second column.
The program should display the average high and average low for the week.
Additionally, show the highest and lowest temperature along with the day number.
anamoblu56
0
Newbie Poster
Recommended Answers
Jump to PostHere are some suggestions:
You can call temp[ ][0] the low for that day and temp[ ][1] the high, and maybe you could do your input something like this:
#include "iostream" #include "iomanip" #include "cmath" #include "string" using namespace std; int main() { //declare array int …
All 5 Replies
alaa sam
-2
Junior Poster
anamoblu56
0
Newbie Poster
MandrewP
60
Junior Poster in Training
anamoblu56
0
Newbie Poster
MandrewP
60
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.