Question: Using your pseudocode as a reference, create a Java file AverageHeight.java to ask for the user's name and height in feet and remaining inches and

Using your pseudocode as a reference, create a Java file AverageHeight.java to ask for the user's name and height in feet and remaining inches and displays the following message: Hi X, you are in total Y inches tall.

After printing, your program should then ask the user to input someone else's height in inches ONLY. When testing your algorithm ask your neighbor for this second set of height in inches.

Compute the average height of both the user and your neighbor's and print the following message using printf to print average height with two decimal point format: The average height of both you and your neighbor is Z.

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 Databases Questions!