Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 6 pages
Exam (elaborations)

Want to Practice conditional statement

Document preview thumbnail
Preview 2 out of 6 pages

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


Document information

Uploaded on
August 23, 2022
Number of pages
6
Written in
2022/2023
Type
Exam (elaborations)
Contains
Answers
$8.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
0
Items
11
Last sold
-



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions

Whoops! We can’t load your doc right now. Try again or contact support.