Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program for simple data entry. 1) Input the following data and assign it to variables. [15 pts] Name Age Address Telephone number Permission
Write a program for simple data entry.
1) Input the following data and assign it to variables. [15 pts]
- Name
- Age
- Address
- Telephone number
- Permission to work after 65
- Tax Rate
- Salary earned in 2019
- Salary earned in 2018
- Salary earned in 2017
2) Validate the following data and print validation status [ 25 pts]
- Age must be between 18 and 65 (18 and 65 included) or Age greater than 65 with special permissions
- Salary must be between 10,000 and 100,000 [3 pts]
3) Compute the following regardless of the validation status [60 pts]
- Print "All conditions valid: True" if both the above two conditions are met else print False
- Tax for years 2019, 2018 and 2017 and print to the user for each year. If salary is 1000$ then tax rate is 30% would be 300$
- Total tax paid during years 2017-2019
- Average tax paid during the three years 2017-2019 (no need to worry about precision, but needs to be float)
- Total income after tax gained during years 2017-2019. If salary is 1000$ and tax rate is 30% then income after tax is 700$
- Print True or False to answer whether the average tax paid was greater than the average income after tax during the three years 2017-2019
but has to be in python
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