Question: USE PYTHON AND VERIFY OUTPUTS IF YOU WILL SPAM IT I WILL REPORT Problem 1 - A Few Conversions Prompt the user for the name
USE PYTHON AND VERIFY OUTPUTS
IF YOU WILL SPAM IT I WILL REPORT


Problem 1 - A Few Conversions Prompt the user for the name of their pet, the pet's weight in kilograms, length in centimeters, and temperature in Celsius. Report back to the user how those translate to: Weight: convert kilograms to pounds. (There are 2.2 pounds in a kg.) Length: convert centimeters to inches. (There are 2.54 centimeters in an inch.) Temp: convert Celsius to Fahrenheit. (Fahrenheit is Celsius * 9/5 + 32.) All of your data (except the pet name!) should be floats. Round to two decimal places when reporting the results. For full credit under the documentation category, write two test cases in a comment at the top of your file, like this but with your own examples. Do this before you start coding so you know your program works! Test case #1: 100 kg - 220 lb 100 cm = 39.37 in 100 cel = 212 fahr Test case #2: 18.18 kg - 40 lb 63.5 cm = 25 in 37 cel = 98.6 fahr Here's an example of what happens when Grizz the Dog runs his program. (Your output doesn't need to look exactly the same): What is your pet's name? Grizz What is their weight in kilograms? 18.18 What is their length in centimeters? 63.5 What is their temperature in degrees Celsius? 37 Converting from metric, here are Grizz's stats Weight: 40.0 pounds. Length: 25.0 inches. Temp: 98.6 degrees fahrenheit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
