Question: 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]

  1. Age must be between 18 and 65 (18 and 65 included) or Age greater than 65 with special permissions
  2. Salary must be between 10,000 and 100,000 [3 pts]

3) Compute the following regardless of the validation status [60 pts]

  1. Print "All conditions valid: True" if both the above two conditions are met else print False
  2. 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$
  3. Total tax paid during years 2017-2019
  4. Average tax paid during the three years 2017-2019 (no need to worry about precision, but needs to be float)
  5. Total income after tax gained during years 2017-2019. If salary is 1000$ and tax rate is 30% then income after tax is 700$
  6. 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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!