Ask Question
11 January, 06:28

Mass and Weight

Scientists measure an object's mass in kilograms and its weight in Newtons. If you know the amount of mass of an object, you can calculate its weight, in Newtons, with the following formula:

Weight=Mass * 9.8

Design a program that asks the user to enter an object's mass, and then calculates its weight. If the object weighs more than 1,000 Newtons, display a message indicating that it is too heavy. If the object weighs less than 10 Newtons, display a message indicating that it is too light.

+4
Answers (1)
  1. 11 January, 10:22
    0
    mass=input ("Enter the mass in Kilogram")

    Weight=0.00

    Weight = float (mass) * 9.8

    if Weight>1000.00:

    print ("Weight is too heavy=", + Weight)

    elif Weight<10.00:

    print ("Weight is too light=", + Weight)

    Explanation:

    We take the mass in kilograms as input. And we declare a weight of float type. Finally, we calculate the weight by converting mass to float and replacing it in the formula Weight = mass * 9.8. And finally, we print the weight, with a message its too heavy if it is more than 1000 Newton, and loo light if it is less than 10.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Mass and Weight Scientists measure an object's mass in kilograms and its weight in Newtons. If you know the amount of mass of an object, ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers