Want to Practice conditional statement
*Include Questions only* Scientist measure an object’s mass in kilograms and its weight in newton. If you know the amount of mass that an object has, you can calculate its weight, newton, with following formula Weight = mass * 9.8 Write a program that ask the user to enter an object’s mass, and then calculates and displays its weight. If the object’s weight is more than 1000 newton, display a message indicating it is too heavy. If the object’s weight is less than 1000 display a message indicating object is too light. The area of rectangle is the rectangle’s length times its width. Write a program that ask for the length and width of two rectangles. The program should tell the user which rectangle has the greater area of if the areas are same.
Escuela, estudio y materia
- Institución
- A B Tech
- Grado
- COMPUTER SCIENCE (CS118)
Información del documento
- Subido en
- 23 de agosto de 2022
- Número de páginas
- 6
- Escrito en
- 2022/2023
- Tipo
- Examen
- Contiene
- Respuestas
Temas
-
questions
-
if else
-
c