Question: Write the following 5 methods: input ( 3 ) , calculation ( 1 ) , and display ( 1 ) . 1 . Input method
Write the following methods: input calculation and display
Input method prompts user to enter name of the person and returns name a string
Input method prompts user to enter weight in pounds and returns weight a double
Input method prompts user to enter height in inches of the person returns height a
double
Calculation method: parameters of calculation method are weight and height doubles;
the method calculates and returns the BMI corresponding to its input parameters.
Display method: print out name, weight, height and BMI of the person showing 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
