Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Mass and Weight Scientists measure an object\'s mass in kilograms and its wei

ID: 639024 • Letter: 1

Question

1. Mass and Weight Scientists measure an object's mass in kilograms and its weight in Newtons. If you know the amount of mass that an object has, you can calculate its weight, in Newtons, with the following formula: Weight = mass X 9.8 Write a program that asks the user to enter an object's mass, and then calculate its weight. If the object weighs more than 1000 Newtons, display a message indicating that it is too heavy. If the object weighs less than 10 Newtons, display a message indicating that the object is too light.

Explanation / Answer

   #include<stdio.h>
   #include<conio.h>
   main()
   {
   float mass,weight;
   clrscr();
   printf("Enter the mass of the object");
   scanf("%f",&mass);
   weight=mass*9.8;
   if(mass>1000)
   printf("Its too heavy");
   if(mass<10)
   printf("Its too light");
   if(mass>=10 && mass <=1000)
   printf("Its normal weight");
   getch();
   }