Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Help! I need basic coding in python programming. Code, run and upload your code and the output, during the time specified. Write a Python program

Help! I need basic coding in python programming.

image text in transcribed
Code, run and upload your code and the output, during the time specified. Write a Python program that will: 1) Print your last name, first name and student ID, using a print() 2) Asks the user for the employee name. 3) Ask the user the number of hours an employee worked in a week. 3 marks 4) Compute and display the employee's weekly salary, taxes, and net income as 12 marks follows: a) If the hours worked are less than or equal to 40, the person receives $12.00 per hour b) If the hours are more than 40, the person receives $480.00 plus $18.00 for each hour worked over 40 hours. c) If the weekly salary is less or equal $500.00 the person pays 15% taxes, otherwise pays 20%. d) The net income is the weekly salary minus the taxes. 5) For any negative number entered for the hours, it should display an incorrect 6 marks entry and using a loop will keep asking the user for proper value. 6) The format should be like the sample run shown 4 marks 25 max Sample run 1 Sample run 2 Name : Passas Petros Name : Passas Petros Student ID: 123-456-789 Student ID: 123-456-789 Enter the employee name: John Lee Enter the employee name: Ravinder Babak Enter the hours the employee worked this week: -35 Enter the hours the employee worked this week: -46 You entered invalid number of hours. You entered invalid number of hours. Enter the hours the employee worked this week: -56 Enter the hours the employee worked this week: 44 You entered invalid number of hours. Employee name: Raviner Babak Enter the hours the employee worked this week: 35 Hours worked: 44.0 Gross salary: 552.00 Employee name: John Lee Taxes : 110.40 Hours worked: 35.00 Pay : 441.60 Gross salary: 420.00 Taxes : 63.00 Process finished with exit code 0 Pay : 357.00 Process finished with exit code 0

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

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855