Write a Java program that accepts names of members on a tug of war team, computes...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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: 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:
Expert Answer:
Answer rating: 100% (QA)
Heres the algorithm in pseudocode Step 1 Initialize variables teamName as String member... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
The accounting records of Boston Home Store show these data (in millions): The shareholders are very happy with Bostons steady increase in net income. However, auditors discovered that the ending...
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
In a perpetual inventory system: (a) LIFO cost of goods sold will be the same as in a periodic inventory system. (b) average costs are a simple average of unit costs incurred. (c) a new average is...
-
A small chemical company that produces an epoxy resin expects its production volume to decline exponentially according to the relationship yt = 5e-0.25t where yt, is the production rate at time t....
-
Let the universal set be all of the cards in a deck of cards.* Draw a Venn diagram for the set of hearts.
-
What is the margin of safety? a. The amount of fixed and variable costs that make up a companys total costs b. The sales level at which operating income is zero c. The difference between the sales...
-
Owen and Sonja Cornell are married. They are the parents of two children: Kirsten (born on July 1, 2000) and Ingrid (born on May 17, 2009). Ingrid does not have any income. Kirsten (SIN 805 232 329)...
-
All work must be shown on every facet of the solution. This includes a timeline with cashflows, timing and rates clearly laid out and formulas (in pure form, not in the calculator or excel form). A...
-
You are considering investing in a bank account that pays a nominal annual rate of 7%, compounded monthly. If you invest $3,000 at the end of each month, how many months will it take for your account...
-
______ brings clarity on whether the conflict is felt or perceived, between individuals and groups and emotions plays a crucial role in influencing perceptions. Opposition Cognition Outcomes ...
-
Why is psychopathy so difficult to treat? What are some of the controversies regarding the treatment of psychopathy?
-
Organizational restructuring can resolve Intragroup conflict Intergroup conflict Intrapersonal conflict Interpersonal conflict
-
Discuss the psychosocial context of terrorism.
-
Describe the nature of violent crimes that are committed by people with schizophrenia.
-
Why is it important for companies today to make their human resources into a competitive advantage?
-
List four items of financial information you consider to be important to a manager of a business that has been operating for a year.
-
1. The United States has a comparatively large but declining number of banks. a. The large number of banks in the United States is explained by restrictions on branching, both within and across state...
-
Nondepository institutions are playing an increasingly important role in the financial system. Five types of financial intermediary may be classified as nondepository institutions. a. Insurance...
-
List and explain the six parts of the financial system.
Study smarter with the SolutionInn App