I have an assignment due for this sunday, and I would like to see if some one can guide me to succeed on this.
this is the problem.
Write a C++ program that does the following:
Print a menu to start with these choices:
A - Enter female Data
B - Enter male Data
C - quit
If the user enters A or B, have the user enter the height and weight then print the condition of low, target, or high. The program should be in a loop that until the user chooses C, the program will again ask for more input.
Females:
Height = 58 - 64, Low = weight 100 - 114, Target = weight 115 - 133 High = weight 134 - 152
Height = 65 - 71, Low = weight 117 - 135, Target = weight 136 - 156 High = weight >= 157
Males:
Height = 61 - 67, Low = weight 123 - 133, Target = weight 134 - 150, High = weight 151 - 167
Height = 68 - 75, Low = weight 137 - 155, Target = weight 156 - 175, High = weight >= 176
Now I am being asked to do the next:
Modify the program from last week to such that the user has the choice of entering either 5 males, 5 females, or quitting (the while loop should be retained to repeat the menu until the user chooses to quit.
The names, weights, and heights of the 5 people should be stored into arrays.
The program should print the list of names, weight, height, and category.
The program also needs to have a function that prints a header (return type of void). It also needs a function that calculates the average height of all 5. The prototype for this will be:
double average (int ht0, int ht1, int ht2, int ht3, int ht4);
//This is what I have, but I am not available to range the low, target, high weight to each person of the 5 individuals. I am available to see the height and weight but I can not categorize them in a range of low, target, or high.