Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

docs.google.com 2.7. Floating poin. 2.2. Variables (int) HW_2 - Google Home-Books Personal Hotspot Available Do you want to her Reconnecting Homework 2-2 Write a program

image text in transcribed
docs.google.com 2.7. Floating poin. 2.2. Variables (int) HW_2 - Google Home-Books Personal Hotspot Available Do you want to her Reconnecting Homework 2-2 Write a program that asks the user for distance in inches and prints the number of yards, feet, and remaining inches (reminder there are 3 feet in a yard, 12 inches in a foot). Note that you should use plural "yards". "feet", and "inches" for all outputs (even in the cases where it is grammatically incorrect) For example: User entered: 367, your program would output: 10 yards, O feet, and 7 inches. User entered: 750, your program would output: 20 yards, 2 feet, and 6 inches. User entered: 1000, your program would output: 27 yards, 2 feet, and 4 inches. Your prompt to the user to enter the number of inches must be: Enter number of inches: Your output must be of the format: numYards yards, numFeet feet, and num Inches inches. Please make sure to end each line of output with a newline. med Yards Feetinches, docs.google.com 2.7. Floating poin. 2.2. Variables (int) HW_2 - Google Home-Books Personal Hotspot Available Do you want to her Reconnecting Homework 2-2 Write a program that asks the user for distance in inches and prints the number of yards, feet, and remaining inches (reminder there are 3 feet in a yard, 12 inches in a foot). Note that you should use plural "yards". "feet", and "inches" for all outputs (even in the cases where it is grammatically incorrect) For example: User entered: 367, your program would output: 10 yards, O feet, and 7 inches. User entered: 750, your program would output: 20 yards, 2 feet, and 6 inches. User entered: 1000, your program would output: 27 yards, 2 feet, and 4 inches. Your prompt to the user to enter the number of inches must be: Enter number of inches: Your output must be of the format: numYards yards, numFeet feet, and num Inches inches. Please make sure to end each line of output with a newline. med Yards Feetinches

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

Relational Database Design With Microcomputer Applications

Authors: Glenn A. Jackson

1st Edition

0137718411, 978-0137718412

More Books

Students also viewed these Databases questions