Ask Question
28 February, 08:21

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.

+5
Answers (1)
  1. 28 February, 08:40
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers