Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Seven NoSQL Databases In A Week Get Up And Running With The Fundamentals And Functionalities Of Seven Of The Most Popular NoSQL Databases

Authors: Aaron Ploetz ,Devram Kandhare ,Sudarshan Kadambi ,Xun Wu

1st Edition

1787288862, 978-1787288867

More Books

Students also viewed these Databases questions

Question

2. What are some concerns that you need to address?

Answered: 1 week ago

Question

Question Can employees make contributions to a profit sharing plan?

Answered: 1 week ago