View the step-by-step solution to:


This question was created from 01. First Assignment - Calculate Body Mass Index (BMI).pdf


Program that includes code with the following information. Have to use variable names, indentations, and comments.


01 .First Assignment — Calculate BMI In this course, we will be building a multi-function calculator. As the first step towards
that goal, we will write a program that does some basic arithmetic operations. Body
Mass Index (BMI) is a value used to get an idea of whether a person is of a healthy
weight. There is some controversy surrounding the use of this metric, but it is an
interesting thing to take a look at. The formula for BMI is:
BMI = (Weight in Pounds l( Height in inches * Height in inches ) ) * 703 Your task for this assignment is to write a program that prompts the user for their
weight in pounds and height in inches and computes their BMI. Then, ask the user what
they would like their BMI to be and tell them what they would need to weigh in order to
have that BMI. Here is a sample run of the program: How much do you weigh (in pounds)? 115 How tall are you (in inches)? 65 Your‘ BMI is 19.13491124260355 A BMI between 29 and 24 is considered ideal. what would you like your BMI to be? 22 Your weight needs to be 132.21906116642955 pounds for your BMI to be 22.0 You will be graded according to the following rubric (each item is worth 1 point): You have declared variables of the appropriate data types
You have prompted the user for the required information You have read the user's information and stored it in variables
You have correctly computed the BMI You have correctly computed the weight for the target BMI
You have displayed the results of the computations to the user
Your program compiles Your program runs

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Let our 24/7 Java Programming tutors help you get unstuck! Ask your first question.
A+ icon
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors