Computing Weekly Wage print (### Question 2: Computing Weekly Wage) 1. Ask user pay rate per...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Computing Weekly Wage print ("### Question 2: Computing Weekly Wage") 1. Ask user pay rate per hour as floating number? 2. Ask user hours worked last week as integer? 3. If not over-time (i.e. hours worked <= 40): 3.1. Calculate regular gross pay, and display "No over-time; gross pay = $" with gross pay in two decimal places. 4. If over-time (i.e. hours worked > 40): 4.1. Calculate gross pay of 40 hours of regular pay plus over-time hours (i.e. hours worked - 40) on one-and-a-quarter times of pay rate. 4.2. Use one print() function to display two lines: the number of over-time hours, and gross pay with dollar sign ($) and two decimal places. python # Question 3: Computing Quizzes Average print ("### Question 3: Computing Quizzes Average") 15pts 1. Ask user number of quizzes as integer. 2. Implement a for loop: 2.1. Output the quiz counter, and ask user each quiz score as integer. 2.2. Accumulate the sum of quiz scores. 3. Calculate and use one print () function to format and display the number of quizzes and their average with one decimal place. # Question 4: Computing Quizzes Average - 20pts print ("### Question 4: Computing Quizzes Average") 1. Initialize a boolean variable to False to control the while loop below. 2. Implement a while loop to process the code below, while the above boolean variable remains False. 2.1. Ask user a quiz score as integer or just enter to quit. 2.2. If user wanted to quit, change the boolean variable to True. 2.3. Otherwise, accumulate the sum of quiz scores, and count number of quizzes. 3. Calculate and use one print () function to format and display the number of quizzes and their average with one decimal place. II II II Computing Weekly Wage print ("### Question 2: Computing Weekly Wage") 1. Ask user pay rate per hour as floating number? 2. Ask user hours worked last week as integer? 3. If not over-time (i.e. hours worked <= 40): 3.1. Calculate regular gross pay, and display "No over-time; gross pay = $" with gross pay in two decimal places. 4. If over-time (i.e. hours worked > 40): 4.1. Calculate gross pay of 40 hours of regular pay plus over-time hours (i.e. hours worked - 40) on one-and-a-quarter times of pay rate. 4.2. Use one print() function to display two lines: the number of over-time hours, and gross pay with dollar sign ($) and two decimal places. python # Question 3: Computing Quizzes Average print ("### Question 3: Computing Quizzes Average") 15pts 1. Ask user number of quizzes as integer. 2. Implement a for loop: 2.1. Output the quiz counter, and ask user each quiz score as integer. 2.2. Accumulate the sum of quiz scores. 3. Calculate and use one print () function to format and display the number of quizzes and their average with one decimal place. # Question 4: Computing Quizzes Average - 20pts print ("### Question 4: Computing Quizzes Average") 1. Initialize a boolean variable to False to control the while loop below. 2. Implement a while loop to process the code below, while the above boolean variable remains False. 2.1. Ask user a quiz score as integer or just enter to quit. 2.2. If user wanted to quit, change the boolean variable to True. 2.3. Otherwise, accumulate the sum of quiz scores, and count number of quizzes. 3. Calculate and use one print () function to format and display the number of quizzes and their average with one decimal place. II II II
Expert Answer:
Answer rating: 100% (QA)
Question 2 Question 3 Question 4 1 Question 2 Computing Weekly Wages 2 printQuestion 2 Computing ... View the full answer
Posted Date:
Students also viewed these programming questions
-
1. Explain the factors that drive B2C retailers to become selling platforms that also host other third-party sellers. 2. Use the business model canvas to summarize Amazons E-Commerce business model.
-
A mechanic's pay is $14 per hour for regular time and time-and-a-half for overtime. The weekly wage function is Where h is the number of hours worked in a week. (a) Evaluate W(30), W(40), W(45), and...
-
5) The amount of time a student takes to do an online algebra quiz is normally distributed. A hypothesis test is conducted to determine if the time students are taking is, on average, not 39 minutes....
-
Describe who gets hurt in a recession, and how?
-
In a traditional setting, is an ethics officer more likely to hold a line position or a staff position? Could the position be either a line position or a staff position? How about both? In all of...
-
Two speakers separated by some distance emit sound waves of the same frequency, but the speakers are out of phase by 90o. Let r1 be the distance from some point to speaker 1 and r2 be the distance...
-
Twenty-two Argentinians initiated a lawsuit against DaimlerChrysler Aktiengesellschaft (DCAG). In its complaint, the plaintiffs stated that a subsidiary of DCAG, Mercedes-Benz Argentina (MBA),...
-
The following accounts, with the balances indicated, appear in the ledger of Codigo Co. on December 1 of the current year: The following transactions relating to payroll, payroll deductions, and...
-
The standard interface technology for wireless networks is _ _ _ _ _ _ _ _ _ _ . The hardware component necessary for computers to connect to these networks is a _ _ _ _ _ _ _ _ _ _ .
-
To generate needed foreign exchange, the Cuban government entered into a joint venture with Domingo Cigars of Spain. The joint venture manufactures Domingo Cigars in Cuba using Cuban tobacco and...
-
In accounting, ownership interests in the company are called ________. a) assets b) liabilities c) equity
-
What is the relationship between joint orientation and stress?
-
What is the yield stress and what happens if it is exceeded?
-
What is meant by QF- and M-domains?
-
What is the difference between joints, fissures and veins?
-
What type of data support the idea that shear zones grow in width as they accumulate displacement, and where would we look for the last increment of strain?
-
Attacking a critical market failure Measuring critical thinking skills for success in the workplace B ecause today's bachelor's degree no longer conveys sufficient in- formation about the skills...
-
For the following arrangements, discuss whether they are 'in substance' lease transactions, and thus fall under the ambit of IAS 17.
-
Suppose that the range of the strong interaction were suddenly increased by 20 orders of magnitude, with all other interactions unchanged. Describe the changes that might occur in the structure of...
-
Explain why friction is not considered a fundamental interaction.
-
An \(8.20-\mathrm{kg}\) object is sliding across the ice at \(2.34 \mathrm{~m} / \mathrm{s}\). An internal explosion occurs, splitting the object into two equal chunks and adding \(16 \mathrm{~J}\)...
Study smarter with the SolutionInn App