Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i need the answer in Python 3 (pyCharm Edu). Using (if statement) Could you please help me with an answer to this question in a

i need the answer in Python 3 (pyCharm Edu). Using (if statement)

Could you please help me with an answer to this question in a simple way for the beginner? This is a beginner level class so can you please help me. The code must have beginner level implementation. Can you also please explain what things do. Thank you!

image text in transcribed

Write a program that prompts the user for a number of centimeters then converts them to yards, feet, and inches. There are 2.54 centimeters in an inch, 12 inches in a foot and 3 feet in a yard. The number of yards and feet has to be an integer while the number of inches can have a decimal part. A sample run looks like: How many centimeters do you want to convert? 628.42 This is 6 yards, 2 feet, 7.4094 inches. Note here that if the number of yards or feet is just 1, or the number of inches is less than 2, the corresponding output unit should be in singular form. As an example: How many centimeters do you want to convert? 126.25 This is 1 yard, 1 foot, 1.7047 inch

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_2

Step: 3

blur-text-image_3

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

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

1489982175, 978-1489982179

More Books

Students also viewed these Databases questions

Question

3. Identify the methods used within each of the three approaches.

Answered: 1 week ago