Write a console application that allows the user to enter weight in kilograms and height in...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a console application that allows the user to enter weight in kilograms and height in centimetres and calculates the body mass index (BMI). Use the following formula to calculate the BMI: bmi=weight/((height"height)/100)*100; For example: Enter weight >> 125 Enter height >> 188 Your BMI is >>35.36668175645089 10bese Use the following classifications to determine BMI and print out the results messages. Classification BMI Underweight Below 18.5 Normal Overweight Obese Criteria Variable Declarations Input Calculations Output 18.5-24.9 25-29.9 30 and above Operation Marks Variables are declared and initialised 5 marks properly. Weight and height values are captured 4 marks correctly. BMI is correctly calculated using the 2 marks given formula Based on BMI classifications, the 8 marks correct output is displayed on the screen. Write a console application that allows the user to enter weight in kilograms and height in centimetres and calculates the body mass index (BMI). Use the following formula to calculate the BMI: bmi=weight/((height"height)/100)*100; For example: Enter weight >> 125 Enter height >> 188 Your BMI is >>35.36668175645089 10bese Use the following classifications to determine BMI and print out the results messages. Classification BMI Underweight Below 18.5 Normal Overweight Obese Criteria Variable Declarations Input Calculations Output 18.5-24.9 25-29.9 30 and above Operation Marks Variables are declared and initialised 5 marks properly. Weight and height values are captured 4 marks correctly. BMI is correctly calculated using the 2 marks given formula Based on BMI classifications, the 8 marks correct output is displayed on the screen.
Expert Answer:
Answer rating: 100% (QA)
Steps Step 1 of 3 Here I am providing the c code for yo... View the full answer
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date:
Students also viewed these programming questions
-
Working on Your Delts. The deltoid muscle is the main muscle that allows you to raise your arm or hold it out. It is connected to the humerus of the upper arm. The person shown below is holding his...
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
How does deviance play a role in the ideal society? explain
-
Identify in which ledger (general or subsidiary) each of the following accounts is shown: 1. Rent Expense 2. Accounts Receivable-Chen 3. Bank Loan Payable 4. Service Revenue 5. Salaries Payable 6....
-
Distinguish between humidity and relative humidity?
-
Your company urgently needs a revenue-producing project. Should you submit a proposal that unrealistically suggests a short completion schedule to ensure that you get the job? Provide a rationale for...
-
1.4 Munich to Moscow. For your post-graduation cel- ebratory trip, you decide to travel from Munich, Germany, to Moscow, Russia. You leave Munich with 15,000 euros (EUR) in your wallet. Wanting to...
-
On May 1, 2017, Herron Corp. issued $600,000, 9%, 5-year bonds at face value. The bonds were dated May 1, 2017 and pay interest annually on May 1. Financial statements are prepared annually on...
-
need clear explanations and all work shown for any calculations. This is not an exam. Problem 5 The WorldValue fund has value weights on asset classes and returns as given in the table below. There...
-
The Golden Oranges Nursery, which provides facilities for pre-school children on a commercial basis, is preparing its cash budget for next year. A profile of the estimated revenues and expenses for...
-
Name the rational numbers from the list below. - 6.0, 93, 3.15, VTO, V64.41. - 13. 1.2828828882. What are the rational numbers? Select all that apply. A. 13 OD. VTO O C. 1.2828828882... E. -6 OG. 0...
-
Sierra can afford to spend $300 per month on car payments. How large of a car loan she can get with a 3.25% APR loan for 72 months?[x]
-
Implicit Differentiation is applying Chain Rule to help find the derivative of an implicitly defined function. Use this below to find the requested derivatives. 16) Find dh for 4ht - 9t = 2t + 5e dt...
-
S7: Sequences and Series (a) Let bn (n)! = (n+2)! Compute the first four terms of the sequence, and compute lim bn.
-
WACC Estimation The following table gives the balance sheet for Travellers Inn Inc. (TII), a company that was formed by merging a number of regional motel chains. Travellers Inn: (Millions of...
-
Let x3 + y = 9. Find y" (x) at the point (2, 1). y (2) =
-
Success tips from instructorsGo to class This is the first tip because it is the easiest one to follow. Go to class, even if you could only take in 20% of what the instructor says, even if you only...
-
CdF2 (s) Cd+ (aq) + 2 F- (aq) 1. A saturated solution of CdF2 is prepared. The equilibrium in the solution is represented above. In the solution [Cd+] eq = 0.0585 M and [F-] eq = 0.117 M. a....
-
Write a program that prompts the user to read two integers and displays their sum. Your program should prompt the user to read the number again if the input is incorrect.
-
Design a class named Fan to represent a fan. The class contains: Three constants named SLOW, MEDIUM, and FAST with the values 1, 2, and 3 to denote the fan speed. A private int data field named...
-
Write a method to sort a two-dimensional array using the following header: public static void sort(int m[][]) The method performs a primary sort on rows and a secondary sort on columns. For example,...
-
Consider the family of differential equations \(x^{\prime}=x^{3}+\delta x^{2}-\mu x\). a. Sketch a bifurcation diagram in the \(x \mu\)-plane for \(\delta=0\). b. Sketch a bifurcation diagram in the...
-
For each problem, determine equilibrium points, bifurcation points, and construct a bifurcation diagram. Discuss the different behaviors in each system. a. \(y^{\prime}=y-\mu y^{2}\) b....
-
Plot phase portraits for the Lienard system \[\begin{aligned} & x^{\prime}=y-\mu\left(x^{3}-x ight) \\ & y^{\prime}=-x \end{aligned}\] for a small and a not so small value of \(\mu\). Describe what...
Study smarter with the SolutionInn App