Chapter 4 Project Project Name: Chpt4_Project Class Name: Chpt4_Project 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 member. 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 strings and weight variables must be doubles. The member weights will be entered in lbs and must be converte 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: kg, and is the maximum. Step 1. Create an algorithm (either flowchart or pseudocode) that you will use to write the program. Step 2. Code the program in Eclipse to read in the team name, member names, and member weights. Determine if th team's total weight exceeds the maximum. Use a printf statement to format the amount of weight in kg to 2 decimal places. Step 3. Test your program using the following data. Also test the program with a team that exceeds the weight limits and display the team is over the limit. Q Search L

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 20PE: When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making...
icon
Related questions
Question
Chapter 4 Project
Project Name: Chpt4_Project
Class Name: Chpt4_Project
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 member.
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
strings and weight variables must be doubles. The member weights will be entered in lbs and must be converte
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 <team name> members: <names of members separated by commas.
2. The total weight of the team is <total weight> kg, and is <under or not under> the maximum.
Step 1. Create an algorithm (either flowchart or pseudocode) that you will use to write the program.
Step 2. Code the program in Eclipse to read in the team name, member names, and member weights. Determine if th
team's total weight exceeds the maximum. Use a printf statement to format the amount of weight in kg to 2 decimal
places.
Step 3. Test your program using the following data. Also test the program with a team that exceeds the weight limits
and display the team is over the limit.
Q Search
L
Transcribed Image Text:Chapter 4 Project Project Name: Chpt4_Project Class Name: Chpt4_Project 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 member. 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 strings and weight variables must be doubles. The member weights will be entered in lbs and must be converte 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 <team name> members: <names of members separated by commas. 2. The total weight of the team is <total weight> kg, and is <under or not under> the maximum. Step 1. Create an algorithm (either flowchart or pseudocode) that you will use to write the program. Step 2. Code the program in Eclipse to read in the team name, member names, and member weights. Determine if th team's total weight exceeds the maximum. Use a printf statement to format the amount of weight in kg to 2 decimal places. Step 3. Test your program using the following data. Also test the program with a team that exceeds the weight limits and display the team is over the limit. Q Search L
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,