Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write in Python please! Scientists measure an object's mass in kilograms and its weight in newtons. If you know the amount of mass of an

Write in Python please!

image text in transcribed

Scientists measure an object's mass in kilograms and its weight in newtons. If you know the amount of mass of an object in kilograms, you can calculate its weight in newtons with the following formula: weight = mass * 9.8 Write a function that takes an object's mass in kilograms and then calculates its weight If the object weighs more than 1,000 newtons, the function displays a message indicating that it is too heavy. If the object weighs less than 10 newtons, display a message indicating that it is too Light; otherwise, display the object is neither heavy not light. Your program should ask the user for the object's mass and pass it to the function. Sample runs: Enter the object's mass in kilograms: 200.5 Object Weight: 1964.9 The object is too heavy. It weighs more than 1000 Newtons. >>> Enter the object's mass in kilograms: 5.5 Object Weight: 53.900000000000006 The object is neither heavy nor light. >>> Enter the object's mass in kilograms: 0.5 Object Weight: 4.9 The object is too light. It weigha less than 10 Newtons

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems A Practical Approach To Design Implementation And Management

Authors: THOMAS CONNOLLY

6th Edition

9353438918, 978-9353438913

More Books

Students also viewed these Databases questions

Question

Use the Taylor series for cos x to show that cos(-x) = cos x.

Answered: 1 week ago