Question: Write the following 5 methods: input ( 3 ) , calculation ( 1 ) , and display ( 1 ) . 1 . Input method

Write the following 5 methods: input (3), calculation (1), and display (1).
1. Input method-1 prompts user to enter name of the person and returns name (a string).
2. Input method-2 prompts user to enter weight in pounds and returns weight (a double).
3. Input method-3 prompts user to enter height in inches of the person returns height (a
double).
4. Calculation method: parameters of calculation method are weight and height (doubles);
the method calculates and returns the BMI corresponding to its input parameters.
5. Display method: print out name, weight, height and BMI of the person showing 2 places
behind the decimal point for every double value.
Your Main() will call the input, calculation and display methods.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!