Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 13 hours = int (input ('Enter number of hours worked: ') ) # insert input validation loop here gross_pay = hours * 10 print

image text in transcribed
QUESTION 13 hours = int (input ('Enter number of hours worked: ') ) # insert input validation loop here gross_pay = hours * 10 print ( 'Gross pay: ', gross_pay) Suppose we want the program to ask for number of hours worked repeatedly until it is within the range of 0 to 168, inclusive. Which of the following is the best input validation loop? OA # Answer A: while hours 168: print ('ERROR: Number of hours worked must be between ( and 168 ,) hours - int (input ( 'Enter number of hours worked last week: ") ) OB. # Answer B: while 168 > hours >- 0

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

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions

Question

How is active listening different from hearing?

Answered: 1 week ago

Question

Who was the first European to land in the U.S. ?

Answered: 1 week ago

Question

What year was the James town settlement established ?

Answered: 1 week ago

Question

What was the name of the pi pilgrims ship ?

Answered: 1 week ago

Question

First U.S.Dollar printed?

Answered: 1 week ago

Question

Who was the confederate president during the civil war ?

Answered: 1 week ago