Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Convert a Height to Meters Convert a height entered by the user as feet and inches to meters. The name of the Python

image text in transcribed

1. Convert a Height to Meters Convert a height entered by the user as feet and inches to meters. The name of the Python code file will be FirstnameLastname_01_01.py. Here are the steps: 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 Prompt the user for the feet and get the value from the user. If the user enter 0 or a negative number, exit the program. Convert the feet from a string to an integer. Do the same for the inches. If the user enters 0 or a negative number, exit the program. Convert the inches from a string to an integer. Calculate the total inches from the feet and inches. If the total inches is greater than or equal 96 inches (the equivalent of 8'0 or more), print a message that the person is really tall! Convert inches to centimeters. There are exactly 2.54 centimeters per inch. Convert the centimeters to meters and centimeters, rounding to two places. Print the original height in the form at ' (an apostrophe between feet and inches) and the equivalent in meters with messages describing each number. Format your numbers to two decimal places. Exit the program. 2. Convert from miles per gallon to liters per kilometer. The name of the Python code file will be Firstname Lastname_01_02.py. 2.1 2.2 2.3 2.4 2.5 2.6 Prompt the user to enter a figure for miles per gallon. If the amount is

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

Computer Performance Engineering 10th European Workshop Epew 2013 Venice Italy September 17 2013 Proceedings

Authors: Maria Simonetta Balsamo ,William Knottenbelt ,Andrea Marin

2013 Edition

3642407242, 978-3642407246

More Books

Students also viewed these Programming questions

Question

What jobs exist now? LO1

Answered: 1 week ago