Question: Create a java program for two members of a gym who are competing to see who lost the most weight in the first 5 months

Create a java program for two members of a gym who are competing to see who lost the most weight in the first 5 months of the year. Write 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, weight loss for each of those months, and total weight lost. The program should look like the sample below. Remember, anything after > is 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

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 Databases Questions!