Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The purpose of this question is to write a python program (script) to convert a weight given in pounds and ounces to a weight in
The purpose of this question is to write a python program (script) to convert a weight given in pounds and ounces to a weight in kilograms. There are 16 ounces to a pound. There are 2.2046 pounds to a kilogram or 35.2736 ounces to a kilogram. In a loop use input to request the number of pounds and the number of ounces from the user (see the sample shown below). The number of pounds must be an integer, and the number of ounces must be a real number. Convert the weight expressed in pounds and ounces into a weight expressed in kilograms. Exit from the loop if the user enters -1 as the number of pounds. A sample run of the program is shown below. Enter the integer number of pounds (
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started