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.

  1. You must have at least two different arrays - These are, in effect, parallel arrays. For example:
    1. One for 6 month olds
    2. One for newborns
    3. ** Please note: The example image shown below includes 2 arrays
    4. ** You can also add extra categories
      1. Such as a third age group
  2. Remember to use a "for" loop for each array
  3. You should have Average Weights for each baby category; therefore, you will have a minimum of 2 Average Calculations
    1. 6 month old Weight Average
    2. New born Weight Average
  4. You should have Total Weights that calculates the totals of all baby categories
    1. If you have 2 weight categories, both should be included
  5. Hints and Suggestions:
    1. You can set your own baby weights - for example, see the weights in the example below
    2. You can set how many baby weights for each section
      1. You can also write the program to ask the user for this input, but this is not required
  6. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!