Ask Question
8 February, 13:31

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.

+1
Answers (1)
  1. 8 February, 16:10
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers