Activity : Assignment Set #1
Please try to make your program output look as much like the example as possible and verify it works with the example input provided. If you have difficulty finding the information or understanding how to approach the problem, you should contact me.
To complete this activity, you will need to create the following programs:
- IPO_10 percentOff.py
- IPO_11 overtimePay.py
- IPO_12 parkingGarage.py
- IPO_13 passingWind.py
IPO_10
Create a program named percentOff.py- Lois Price is getting set up for the weekly sales at the store she owns.
- Write a program that accepts input values for original price and sale price and report the value we can advertise as the percent-savings value.
- Round your results to the nearest percent
- Here is an example:
- Another example is:
IPO_11
Create a program named overtimePay.py- Gladys Friday worked some extra hours this week and she wants some help calculating her expected paycheck.
- Workers who work over 40 hours a week are supposed to be paid extra pay for the hours above 40 hours that they work. Suppose workers make 1.5x pay rate for each hour they work over 40 hours per week.
- Produce code that will ask for the number of hours worked (assume this number is >= 40) and pay rate and calculate/display the appropriate value for gross pay.
- Since this is money let's round to two decimal places.
- Here is an example:
IPO_12
Create a program named parkingGarage.py- Laurie Park makes payment machines for municipal parking garages.
- Her machines charge for parking in increments of 25 cents.
- Her machines accept payment in quarters and $1, $5, and $10 bills.
- Produce code that accepts values for the charge and payment made and indicate the number of quarters and $1 coins to be returned.
- Here is an example:
IPO_13
Create a program named passingWind.py- Wendy Windblows is an engineer that builds the turbines you see all over Iowa.
- She always tells people that the tip of a wind generator blade moves at over 175 MPH. People don't actually believe her.
- Write code that accept user input indicating the RPM (revolutions per minute) of the blade and the length of the blade (in feet) and reports the speed (in MPH) of the tip of the blade.
- Hint: If the fan blade is the equivalent of the radius of a large circle than the circumference of that circle is the distance that the tip travels each rotation.
- Use circumference (feet per rotation) and speed (rotations per minute) to convert all of that to miles per hour
- The first thing you need to do is calculate the circumference of the circle given the fact that the fan blad would be the radius of the circul
- (Use the conversions published here and not something you find online.).
- Round to three decimal places.
- Here is an example:
Submit Your Code
These four programs are part of your final course grade. They are considered a form of Competency Demo. Unlike the practice problems you are expected to complete them and without assistance from your classmates.
- Go to the AutoLab Homepage for the course
- https://hypnos.cs.uni.edu/courses/CSED1320-F21/assessments
- Log in if necessary
- For each of the assignments listed above, find their submission link under the "Assignment Set" heading
- Upload the corresponding python file for that assignment.
- When the "handin history" page comes up you will need to refresh the page until a score of either 0 or 1 is shown with your assignment.
- Click on the 0/1 score to get feedback.
- Read the information carefully if you received a score of 0 and figure out what you need to do to fix the problem.
- Ask for help from me or other students if you don't understand an error message.
- Resubmit until the program earns a 1.