Question: 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

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
Get step-by-step solutions from verified subject matter experts
