Create a java program that will ask the user to input height and weight. Compute and...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a java program that will ask the user to input height and weight. Compute and display its body mass index. Formula: height in meter = ((height in feet x 30.48) + (height in inches x 2.54)) / 100 bmi = weight in kilogram/(height in meter x height in meter Refer to the image as sample run. Enter your height in feet: 5 Enter your height in inches: 7 Enter your weight in kilogram: 80 Your Body Mass Index is 27.62 Create a java program that will ask the user to input height and weight. Compute and display its body mass index. Formula: height in meter = ((height in feet x 30.48) + (height in inches x 2.54)) / 100 bmi = weight in kilogram/(height in meter x height in meter Refer to the image as sample run. Enter your height in feet: 5 Enter your height in inches: 7 Enter your weight in kilogram: 80 Your Body Mass Index is 27.62
Expert Answer:
Answer rating: 100% (QA)
A Java program that takes user input for height and weight calculates the BMI and displays the resul... View the full answer
Related Book For
The Science And Engineering Of Materials
ISBN: 9781305076761
7th Edition
Authors: Donald R. Askeland, Wendelin J. Wright
Posted Date:
Students also viewed these programming questions
-
In the following reaction, choose the two correct starting materials from (a)-0). 40 "C, THF Br (a) (b) o (c) (d) (e) OHC -Ph Br Br Br Ph O Ph O O Ph (g) () Br- P-Ph (h) Ph Ph Ph Ph Ph Ph Ph Ph Ph Ph...
-
Choose a topic that can be applied to one of the following economic concepts. (Possible curves: Lorenz curve, marginal product of labor curve, labor demand and supply curves, utility function and...
-
Figure (a) shows a mobile hanging from a ceiling; it consists of two metal pieces (m 1 = 3.5) kg and m 2 = 4.5kg) that are strung together by cords of negligible mass. What is the tension in?? (a)...
-
What is your view of Sony's efforts at corporate social responsibility (CSR) in international operations? What steps can Sony take to improve CSR in organizing and managing its operations around the...
-
The Airfoil Aircraft Company has issued 5% convertible bonds that mature October 1, 2029. Suppose the bonds are issued October 1, 2021, and pay interest each April 1 and October 1. (Click the icon to...
-
Meo Consulting, Inc., completed the following transactions during February 2010, its first month of operations: Requirements 1. Record transactions in the journal. Explanations are not required. 2....
-
Refer to the scenario described in Problem 10 and the file BlueOrRed. Partition the data into training (50 percent), validation (30 percent), and test (20 percent) sets. Fit a classification tree...
-
The prices for the last 10 weeks have been collected Week GAS PRICES ($) 1 3.363 2 3.465 3 3.457 4 3.568 5 3.456 6 3.597 7 3.689 8 3.645 9 3.787 10 3.891 11 ???
-
Sherry Tsang has just started up a small corporation that produces clothing. She has applied for and received a government grant. The grant will automatically be renewed as long as the business shows...
-
12. Go to the New Schedule worksheet. Louisa wants to determine the number of morning and afternoon classes the club can offer to make the highest weekly profit without exceeding the maximum legal...
-
Discuss the division of responsibilities of HRSDC for payroll function.
-
Government entities engage in business type activities, like private - sector enterprises, operating on an accrual basis accounting and generating revenue through user fees. However, challenges arise...
-
Stern Tomorrow Co is financed entirely by the equity that is priced to offer a 14% expected return on equity. If the company repurchases 40% of equity and substitutes an equal value of debt yielding...
-
If sales is $ 5 5 0 , 0 0 0 , beginning inventory is $ 1 0 0 , 0 0 0 , and ending inventory is $ 1 2 0 , 0 0 0 , what is the accounts receivables turnover?
-
GHI Corporation is planning to grow 15% per year while maintaining a debt-equity ratio of 1.3 and dividend payout ratio of 35%. The ratio of total asset to sales is constant at .80. What profit...
-
Find by implicit differentiation, given that Leave your answer in terms of both y and x. dy/dx = You have not attempted this yet dy dx y+3 (x+5) =5
-
Show that the peak of the black body spectrum as a function of ? is given by eq. (22.14) kg T Wmax = 2.82
-
A Nb-W alloy contains 55% a at 2600C. Determine (a) The composition of each phase, and (b) The composition of the alloy.
-
Write a computer program to assist you in solving problems such as those illustrated in Examples 11-2 or 11-3. The input will be, for example, the bulk composition of the alloy, the mass of the...
-
For the example hysteresis loop in Figure 19-24, what is the polarization (Cym 2 if the electric field starts at 0.2 MVm and drops to zero? -0.2 P(C/m) -0.1 0.3- 0.2+ 0.1+ 0 -0.1+ -0.2+ -0.3+ 0.1 0.2...
-
A printed circuit board of mass \(1 \mathrm{~kg}\) is supported to the base through an undamped isolator. During shipping, the base is subjected to a harmonic disturbance (motion) of amplitude \(2...
-
An electronic instrument of mass \(10 \mathrm{~kg}\) is mounted on an isolation pad. If the base of the isolation pad is subjected to a shock in the form of a step velocity of \(10 \mathrm{~mm} /...
-
A single-degree-of-freedom system is used to represent an automobile, of mass \(m\), damping constant \(c\), and stiffness \(k\), which travels on a rough road that is in the form of a sinusoidal...
Study smarter with the SolutionInn App