Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please use java, thank you. Assignment2-2 Write a program named YardsFeetlnches that asks the user to enter a distance measured in inches The program must
please use java, thank you. Assignment2-2
Write a program named YardsFeetlnches that asks the user to enter a distance measured in inches The program must then determine and output the equivalent number of yards, feet, and inches. Note: 3 feet =1 yard 12 inches =1 fool Use plurals "yards", "feet", and "inches" for all outputs (even where it is grammatically incorrect The prompt to the user to enter the number of inches must be: Enter number of inches: The output must be in the format: numYards yards, numFeet feet, and numInches inches. For a sample run where the user enters 367 the console screen must look as follows: Enter number of inches: 367 10 yards, 0 feet, and 7 inches. Please make sure to end each line of output with a newline. Please note that your java class should be named YardsFeetinches Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started