Question: Problem b (PA2b.java) Write a program to do the reverse of Problem a. It prompts the user for a length in inches, then converts that

Problem b (PA2b.java) Write a program to do the reverse of Problem a. It prompts the user for a length in inches, then converts that total number of inches into yards, feet, and inches. Note that you do not convert the number of inches separately into yards, then feet, then inches. Instead the program must calculate how many yards there are in the given number of inches, then convert the remaining inches into feet, and finally have the left over inches directly. For example, if the user enters 50 for the total number of inches, your program should compute the result that is equal to 1 yard, 1 foot, and 2 inches. The following represents a run of the program using this sample input (again, pay very careful attention to spacing, spelling, and capitalization). Enter number of inches: 50 Yards: 1 Feet: 1 Inches: 2

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!