Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program that computes your gross pay. Your code should get two numbers: hours and rate per hour. You should give the employee 1
Write a program that computes your gross pay. Your code should get two numbers: hours and rate per hour. You should give the employee times the hourly rate for hours worked above hours. Using try and except handles nonnumeric inputs gracefully by printing a message and exiting the program.
Input:
a python C:Users
edaDataProgrammingMassignpy
b python C:Users
edaDataProgrammingMassignpy ten
c python C:Users
edaDataProgrammingMassignpy forty
d python C:Users
edaDataProgrammingMassignpy
Output:
a Your gross pay is $
b Error, please enter numeric input.
c Error, please enter numeric input.
d Your gross pay is $
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started