Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

weight - Convert a weight in kilograms to its equivalent in pounds or convert a weight in pounds to its equivalent in kilograms. Write a

image text in transcribed
weight - Convert a weight in kilograms to its equivalent in pounds or convert a weight in pounds to its equivalent in kilograms. Write a program to input a weight and then choose which of the two calculations to do and then calculate and print the answer. You can assume there is no error in input and the answer should be formatted to 3 decimal places. There are 2.205 pounds in a kilo. Sample output: Enter the original weight... 3.25 1. Convert kilos to pounds. 2. Convert pounds to kilos. Choose the conversion ( 1 or 2 ) 2 3.25 in pounds =1.474 in kilos When your program is complete, run it twice with the following test data (input) Save the shell file that shows the output (or take a screenshot). Upload your weight.py code file and your output/screenshot file to Canvas by the start of the next class

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 And Transact SQL

Authors: Lucy Scott

1st Edition

1974679985, 978-1974679980

More Books

Students also viewed these Databases questions