Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a Java program that accepts names of members on a tug of war team, computes their total weight, and determines if their total
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 272.16 kg, which is 600 lbs. The formula to convert lbs to kg is: kg = = lb 2.2046 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 1: Enter the weight of member 1 in lbs (must be decimal value): Enter the name of member 2: Enter the weight of member 2 in lbs (must be decimal value): Enter the name of member 3: Enter the weight of member 3 in lbs (must be decimal value): Outputs: There will be two lines of output: 1. The name of the team, and its member's names. Team members:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Heres the algorithm in pseudocode Step 1 Initialize variables teamName as String member...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started