Question: What will be the output after the following code is executed and the user enters 7.55 at the first prompt def main(): try: hours -

 What will be the output after the following code is executed

What will be the output after the following code is executed and the user enters 7.55 at the first prompt def main(): try: hours - int(input("Enter total hours worked? ")) hourly_rate = float (input ("Enter rate per hour (QAR) ") ) payment = hours "hourly_rate f - open( 'Tax-txt', 'r') tax_rate - float (f, read ()) tax_amount = tax_rate*payment print(tax_amount) except FileNotFoundError: print('ERROR: file not found') except ValueError: print ('ERROR: total hours worked must be integer') main() BRROR: file not found RRROR: total hours worked must be integer ERROR: file not found RRROR: total hours worked must be integer Tax_amount will be displayed, based on the tx,rate in the Tax,txt file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!