Question: Write a Java program that accepts names of members on a tug of war team, computes their total weight, and determines if their total is
Write a Java program that accepts names of members on a tug of war team, computes their total weight, and determines if their total is less than the maximum weight allowed. There can be no more than three members on the team. This is an international competition and the maximum team weight is kg which is lbs
The formula to convert lbs to kg is: kg lb
Inputs: The name of the team, its members names, and the weight of each member. The name variables must be strings and weight variables must be doubles. The member weights will be entered in lbs and must be converted to kg to determine if the team exceeds the maximum weight allowed.
The name of the team is:
Enter the name of member :
Enter the weight of member in lbs must be decimal value:
Enter the name of member :
Enter the weight of member in lbs must be decimal value:
Enter the name of member :
Enter the weight of member in lbs must be decimal value:
Outputs: There will be two lines of output:
The name of the team, and its members names.
Team members: kg and is the maximum.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
