Question: USING PYTHON NASA uses mass and weight calculations for space projects. Write a program that calculates an object's weight in Newtons. The program should ask
USING PYTHON
NASA uses mass and weight calculations for space projects. Write a program that calculates an object's weight in Newtons. The program should ask the user for the object's mass (mass is measured in kilograms). The program should calculate the weight (weight is measured in Newtons). Use the following formula :
weight = mass x 9.8
If the object weighs more than 1,000 Newtons, display the message: The object's weight of (include weight here) Newtons is too heavy. If the object's weight is less than 1,000 Newtons, display the message: The object's weight of (include weight here) Newtons is too light.
Do not format the output. Formatting goes beyond the scope of this course.
Include comments in your program design.
Sample Input
Enter the object's mass in kilograms: .25
(Include two blank lines here)
Sample Output
The weight is 2.45.
(include one blank line here)
The object's weight of 2.45 Newtons is too light.
Would you like to calculate another weight? Enter y for yes or n for no: n
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
