Answered step by step
Verified Expert Solution
Link Copied!

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

image

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... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions

Question

What language or languages are spoken in your home?

Answered: 1 week ago