Question: What will be the output after the following code is executed and the user enters 215.0 at the first prompt and 9.35 at the second
What will be the output after the following code is executed and the user enters 215.0 at the first prompt and 9.35 at the second def main ()4 try: hourly rate - Froat (input ("Enter rate per hour (OAR) ")) bours - int (inpiat ("Enter total boues worked? ")) payment - hoors thourly_rate file a open ("taxitit", 're") tax rate = float (fi ile read()) tax_amount = tax_raterpaysent print(tax_amount) file.elose () except FileNotFound Error: print ('Thicil: file not found') except ValueError: print ('ERAOR: total hours workod nust be integur') main() Tax_amount will be displayed, based on the tx_rate in the Tax.txt file ERROR: file not found ERROR: total hours worked must be integer ERROR: file not found ERROR: total hours worked must be integer As Click Submit to complete this assessment
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
