subject

What is the result of this program fragment, if the original input values are -15 for hours and 10.0 for rate (when you meant to enter 15 and 10)? hours = int(input('Enter hours worked: ')) rate = float(input('Enter pay rate in dollars per hour: ')) while hours < 0 or rate < 0: print ('Error, both values must be positive numbers. Please reenter') pay = hours * rate print('Your gross pay is ', pay)

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 07:30, devnnn44
What is the original authority for copyright laws
Answers: 1
image
Computers and Technology, 23.06.2019 14:00, ava5015
What is html ? give a small description about html
Answers: 2
image
Computers and Technology, 24.06.2019 14:00, youcandoit13
In simple terms, how would you define a protocol?
Answers: 2
image
Computers and Technology, 24.06.2019 17:00, yobanajk
Aman travel 200m towards east< br /> from his house then takes left< br /> to turn and moves 200 m north< br /> find the displacement & distance.< br />
Answers: 3
You know the right answer?
What is the result of this program fragment, if the original input values are -15 for hours and 10.0...

Questions in other subjects:

Konu
Mathematics, 03.11.2020 18:10
Konu
Mathematics, 03.11.2020 18:10