Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using Python. Assignment 04: Functions Review: Work and Power: NOTE: Make sure and include comments in your program. At a minimum it should include the

using Python. image text in transcribed
image text in transcribed
Assignment 04: Functions Review: Work and Power: NOTE: Make sure and include comments in your program. At a minimum it should include the author's name and a short program description. You will lose points if you have no comments. Write a program that uses Functions to calculate the work (in Joules) and power in Watts and in Horse Power) of an individual running up stairs. The user should entered in their mass (in kg), height of stairs (in m), time (in seconds) took to go upstairs. This program should ensure that the user enters numbers above zero. You may use the Error Handling code from CSC 1613 to change into a program that uses functions. You do not have to use Error Handling but you can. Formulas: power (in Watts) = work time work (in Joules (J)) = Force x distance Force going up (in Newtons (N) ie kg * m ) = Acceleration = 9.8 m stairs (in m), time (in seconds) took to go upstairs. This program should ensure that the user enters numbers above zero. You may use the Error Handling code from CSC 1613 to change into a program that uses functions.You do not have to use Error Handling but you can. Formulas: power (in Watts) = work work (in Joules (J)) = Force x distance Force going up (in Newtons (N) ie kg * * ) = Acceleration = 9.8 m 1 Horse Power = 746 Watts 2.205 lbs = 1 kg Be sure to include comments with at least your name, and a brief description of the code. To submit this assignment, please click Function Review: Work and Power.(Participation: 100pts)

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

Students also viewed these Databases questions