Question: Basic exercises 1. Many companies pay 50% extra for any hours worked above 40 in a given week. Write a program to input the number

Basic exercises 1. Many companies pay 50% extra for any hours worked above 40 in a given week. Write a program to input the number of hours worked and the hourly rate and calculate the total wage for the week. Hint: whenever the hours entered are over 40, some hours would be paid the regular rate, some others will be paid 50% extra 2. A Python professor gives five-point quizzes that are graded on the scale 5-A, 4-B, 3-C, 2- D, 1-E, O-F. Write a program that accepts a quiz score as an input (5 to 0) and uses a decision structure to calculate the corresponding grade. Advanced exercises 1. Create a program that flips a coin as many times as the user indicates, and then lets the user know how many heads and tails were obtained 2. Create a program that throws a dice as many times as the user indicates, and then lets the user know of many times the result was: 1. Lower than 3 Hint for this exercise: accumulator variables 2. 3 or 4 You begin with 3 variables 0,0,0 (no results 4) 3. Higher than 4. and each iteration/dice throw one of those will increase by 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
