Write a program that calculates a persons body mass index

Assignment Help Programming Languages
Reference no: EM131680041

Assignment

a. Draw the hierarchy chart and then plan the logic for a program that calculates a person's body mass index (BMI). BMI is a statistical measure that compares a person's weight and height. The program uses three modules. The first prompts a user for and accepts the user's height in inches. The second module accepts the user's weight in pounds and converts the user's height to meters and weight to kilograms. Then, it calculates BMI as weight in kilograms divided by height in meters squared, and displays the results. There are 2.54 centimeters in an inch, 100 centimeters in a meter, 453.59 grams in a pound, and 1,000 grams in a kilogram. Use named constants whenever you think they are appropriate. The last module displays the message End of job.

b. Revise the BMI-determining program to execute continuously until the user enters 0 for the height in inches.

Reference no: EM131680041

Questions Cloud

Discuss americas public realm : Reviews should contain a proper heading with student name, date, class,article title, article author, and article source
What is a treasury stock : What is a Treasury Stock and what is its normal balance? How is it reported in the stockholder's equity? Would these two activities affect stockholder's equity
How much was the net pay in sept : Employer records the salary expenses for all employees' gross pay. How much was the net pay in Sept 30 2017 salary expense (=payroll expense)
Explain why and how you see things differently : How would you respond to administrator, families, businesses, and community members who might present these challenges?
Write a program that calculates a persons body mass index : Draw the hierarchy chart and then plan the logic for a program that calculates a person's body mass index (BMI).
What is the margin of error for given problem : Make a 99% confidence interval for the mean construction cost for all vacation homes built in this region during the past 2 years.
Discuss low probability of precipitation in oklahoma city : Despite the anticipated passage of a cold front, the models and the NWS predicted a low probability of precipitation in Oklahoma City
Compute the mean compensation awarded to the plaintiffs : A sample of 25 malpractice lawsuits filed against doctors showed that the mean compensation awarded to the plaintiffs was $410,425 with a standard deviation.
Determine the upper control limit : Determine the upper control limit (UCL) for an X-bar chart if the mean of the sample averages is 4.7 and the mean of the sample ranges is 0.35

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd