Two members of a gym are competing to see who lost the most weight in the first
Question:
Two members of a gym are competing to see who lost the most weight in the first 5 months of the year. Make a program to create two separate arrays for the two members. The program should ask for the member's name as well as the weight that each member lost each month.
Based on the input, you will output a text chart to show the name of the member, the first five months of the calendar year, the weight lost for each of those months, and the total weight lost.
The program should look like the sample below. Remember, anything after '>' is a user input
Sample:
Enter the name of the first member?
>Bob
Enter the name of the second member?
>Jack
How many pounds did Bob lose in January?
>3
How much many pounds did Jack lose in January?
>2
How much many pounds did Bob lose in February?
>1
How much many pounds did Jack lose in February?
>2
How much many pounds did Bob lose in March?
>0
How much many pounds did Jack lose in March?
>0
How much many pounds did Bob lose in April?
>0
How much many pounds did Jack lose in April?
>1
How much many pounds did Bob lose in May?
>4
How much many pounds did Jack lose in May?
>2
Total Weight Lost Chart
Jan Feb March April May
Bob 3 1 0 0 4
Jack 2 2 0 1 2
Bob lost a total weight of: 8 lbs
Jack lost a total weight of: 7 lbs
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill