Scientists measure an object’s mass in kilograms and its weight in newtons. If you know the amount of mass of an object in kilog | Sololearn: Learn to code for FREE!

-2

Scientists measure an object’s mass in kilograms and its weight in newtons. If you know the amount of mass of an object in kilog

weight=mass×9.8weight=mass×9.8 Write a program that asks the user to enter an object’s mass, and then calculates its weight. If the object weighs more than 500 newtons, display a message indicating that it is too heavy. If the object weighs less than 100 newtons, display a message indicating that it is too light.

2/19/2020 10:50:06 AM

Ashade Philip

3 Answers

New Answer

+4

Ashade Philip ,Practicing. really? You have just put this problem in QA forum asking for ready made code. How does it help you practice? You only need to know about operators and if-else construct so at least show some efforts from your side.

+3

Ashade Philip , hello 👋. You can't tell us to write program for you. First of all you need to try it yourself and in case you face problem in coding you can ask here. If you just ask others to write code you'll not get to learn anything.

0

I am beginner OK and am practicing