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....
-
The anatomical center of gravity G of a person can be determined by using a scale and a rigid board having a uniform weight W1 and length l. With the persons weight W known, the person lies down on...
-
In Problem express each proposition as an English sentence and determine whether it is true or false, where p and q are the propositions p q p: "91 is prime" q: 91 is odd"
-
For each of the following sets of numbers, calculate the sample size \((N)\), the mean \(\mathrm{X}^{-}\) , the standard deviation \((s)\), and the standard error of the mean \(s \mathrm{X}^{-}\): a....
-
Root Recliners manufactures leather recliners and uses flexible budgeting and a standard cost system. Root allocates overhead based on yards of direct materials. The companys performance report...
-
Consider a Specific-Factors model where two countries, Domestic and Foreign, produce two goods, A and B, using labor L and capital K. Take the following information as given: In Domestic, the...
-
Westerville Corp. has collected the following data concerning its maintenance costs for the past six months: Calculate the variable and fixed cost elements using the high-low method. July August...
-
Use the Excel template provided: FNSACC321_322_AT2_TMP_TQM_v1.xlsx Complete the following tasks: Process transactions Refer to the list of transactions at Appendix C . You are required to process...
-
The accounting staff of Holder Inc. has prepared the following postretirement benefit worksheet. Unfortunately, several entries in the worksheet are not decipherable. The company has asked your...
-
Gordon Company sponsors a defined benefit pension plan. The following information related to the pension plan is available for 2015 and 2016. Instructions (a) Compute pension expense for 2015 and...
-
Calculate all the fixed cash flows and their exact timing for the swap in Business Snapshot 32.1. Assume that the day count conventions are applied using target payment dates rather than actual...
-
Professional Simulation In this simulation, you are asked to address questions related to intangible assets and similar costs. Prepare responses to all parts. KWW_Professional_Simulation Intangible...
-
For two consecutive years, sales and losses were as follows: Determine break-even sales. Particulars Sales revenue Loss Year 1 *10,00,000 2,00,000 Year 2 15,00,000 50,000
-
What is an efficient way to ensure that the code is working as per the acceptance criteria/business requirements? Select only one answer. Through automated functional tests. Through automated...
-
We all experience emotions, but some people disguise their true feelings better than others. Do you think this is a helpful or harmful thing to do? Under what conditions do you think it would be most...
-
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,...
-
Victoria has prepared the following list of statements about corporations. 1. A corporation is an entity separate and distinct from its owners. 2. As a legal entity, a corporation has most of the...
-
Indicate whether the following items would appear on the income statement (IS), statement of financial position (SFP), or retained earnings statement (RES). a. Dividends. b. Cash. c. Salaries and...
-
Victoria has studied the information you gave her in that exercise and has come to you with more statements about corporations. 1. Corporation management is both an advantage and a disadvantage of a...
Study smarter with the SolutionInn App