I want python coding

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

I want python coding.

Based on the tax system program:

code

print("TAX COMPUTATION SYSTEM\n")
count = 0
while(True):
    empId = input("\nEmployee ID: ")
    empName = input("Employee name: ")
    salary = int(input("Taxable Yearly Salary: RM "))
    print("Employee ID:", empId)
    print("Employee Name:", empName)
    print("Taxable Yearly Salary: RM", salary)
    tax = 0
    if salary>=0 and 20000>=salary:
        tax = (salary-5000)*0.01+150
    elif salary>=20001 and 50000>=salary:
        tax = (salary-20000)*0.05+300
    elif salary>=50001 and 100000>=salary:
        tax = (salary-50000)*0.21+1800
    elif salary>=100001 and 400000>=salary:
        tax = (salary-100000)*0.24+6000
    elif salary>=400001 and 1000000>=salary:
        tax = (salary-400000)*0.26+78000
    else:
        tax = (salary-1000000)*0.30+234000
    print("Tax: RM", tax)
    count = count + 1
    k = int(input("\nDo you want to continue?[yes=1, no=0]:"))
    if k==0:
        break
print("\nThank you, you have computed", count, " employees tax")

Question : Create the following features to make the application easier to maintain:

1. employee_Info in the relevant file to allow the user to insert employee information (ID, name, and yearly salary).

2. Use determine_Tax in the relevant file to calculate the tax that the employee must pay.

3. print_output in the relevant file to print out the employee information and tax amount. 

All functions should be called in the main file programme, and your output should be comparable to that of the prior tax system programme.

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY