Write a program that reads in the name and salary of an employee. Here the salary...

50.1K

Verified Solution

Question

Programming

  1. Write a program that reads in the name and salary of anemployee. Here the salary will denote an hourly wage, such as$9.25. Then, ask how many hours the employee worked in the pastweek. Be sure to accept fractional hours. Compute the pay. Anyovertime work (over 40 hours per week) is paid at 150 percent ofthe regular wage.4 pts
    1. Your code with comments
    2. A screenshot of the execution

Test Cases:

Enter name: Jorge

Enter wage: 9.25

Enter hours: 10

                 Total pay is: $92.50

Enter name: John

Enter wage: 20.00

Enter hours: 50

Total pay is: $1100 ($800 + $300overtime)

python, keep it simple

Answer & Explanation Solved by verified expert
4.0 Ratings (737 Votes)
Here I have implemented python code as per your requirementalso I have attached a screenshot of the output Let me know in thecomment section if you have any query regarding    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students