Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Paragraph Question 1 Compute the allowance of the ABC Company staff. The program will prompt the user to enter the employee ID and the salary
Paragraph Question 1 Compute the allowance of the ABC Company staff. The program will prompt the user to enter the employee ID and the salary amount of the staff per week, and allowance code. Write a python program to solve the above problem using function without parameters concept. The function will get the above inputs, perform the calculations and print the output. The function will perform as follows: 1. Hourly rate is computed as salary amount divided by 25. 2. The allowance is computed based on the allowance code of the staff as shown in the table below. Allowance code Allowance >=200 5% of hourly rate Other 3% of hourly rate Note: your program should print what is the allowance based on the allowance code. Following is an example of the input and the output of your program: Enter the Employee ID: 147 Enter salary amount: 1000 Enter the allowance code: 250 The allowance is: 2.0
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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