66.5k views
2 votes
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.

User Jmkiley
by
6.4k points

2 Answers

3 votes

Final answer:

Mass is a measure of the amount of matter in an object, while weight is a measure of the force of gravity acting on an object. The formula Weight = Mass × 9.8 can be used to calculate weight.

Step-by-step explanation:

Mass is a measure of the amount of matter in an object, while weight is a measure of the force of gravity acting on an object. Mass is typically measured in kilograms, whereas weight is measured in newtons.

To calculate the weight of an object, you can use the formula Weight = Mass × 9.8, where 9.8 is the acceleration due to gravity on Earth.

For example, if you know the mass of an object is 5 kilograms, you can calculate its weight as follows: Weight = 5 kg × 9.8 = 49 newtons.

User Gur Galler
by
7.8k points
2 votes

Answer:

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)

Step-by-step 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.

User MrMowgli
by
7.0k points