- 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.

19th Feb 2020, 10:50 AM
Ashade Philip
Ashade Philip - avatar
3 Antworten
+ 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.
19th Feb 2020, 11:10 AM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
+ 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.
19th Feb 2020, 10:58 AM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
0
I am beginner OK and am practicing
19th Feb 2020, 11:01 AM
Ashade Philip
Ashade Philip - avatar