Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

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

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions

Question

Explain the concept of shear force and bending moment in beams.

Answered: 1 week ago