Question: Need help creating this code in C++ Tracking weights of babies in the following categories New born babies Babies at least 6 months in age
Need help creating this code in C++
- Tracking weights of babies in the following categories
- New born babies
- Babies at least 6 months in age
- ** You can change the ages in each category; but you must include at least 2 age groups
- The average weights in each category
- The total weights from all categories combined
The program you write should include these components at a minimum. Remember though: Get creative, and feel free to add different components that you feel are applicable in a grading program.
- You must have at least two different arrays - These are, in effect, parallel arrays. For example:
- One for 6 month olds
- One for newborns
- ** Please note: The example image shown below includes 2 arrays
- ** You can also add extra categories
- Such as a third age group
- Remember to use a "for" loop for each array
- You should have Average Weights for each baby category; therefore, you will have a minimum of 2 Average Calculations
- 6 month old Weight Average
- New born Weight Average
- You should have Total Weights that calculates the totals of all baby categories
- If you have 2 weight categories, both should be included
- Hints and Suggestions:
- You can set your own baby weights - for example, see the weights in the example below
- You can set how many baby weights for each section
- You can also write the program to ask the user for this input, but this is not required
- At the end, it prints out the weight totals and averages for each section; and then the total weights across all categories.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
