Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create a constant to define the size of two float arrays. ? Create two one dimen

ID: 3544196 • Letter: C

Question

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 the difference for each day

Explanation / Answer

#include #include using namespace std; void main(void) { const int MAX = 7; // max size of the array float highs[MAX]; float lows[MAX]; int count; int counts; // # of temps entered int x; // loop control variable (LCV) int i = MAX; // load the array from the keyboard do { cout > highs[count]; count++; cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote