0

Please help me Create a program to enter and average the high and low temperatures for the week.
 Create a constant to define the size of two float arrays.
 Create two one dimensional float arrays in the function main() called highs and lows.
const int MAX = 7
float highs[MAX];
float lows[MAX];
 Write a loop to ask the user to enter the highs until the size of the array is reached.
 Write a similar loop to ask the user to enter the lows until the size of the array is reached.
 Use the defined constant (as shown above) when checking for the maximum size of each array.
 Calculate the average high for the week
 Calculate the average low for the week
 Display those results.

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by Lucaci Andrew
0

And have you even try to solve this homework? Or are you hoping for us to solve it, and than to just present the result to your teacher?
Show us that you've tried, show us where are the issues and than we'll try to help you.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.