Answered step by step
Verified Expert Solution
Link Copied!

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]

  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

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

Database Security

Authors: Alfred Basta, Melissa Zgola

1st Edition

1435453905, 978-1435453906

More Books

Students also viewed these Databases questions

Question

1. Where will you recommend that she hold the focus group?

Answered: 1 week ago

Question

3. What might you have done differently

Answered: 1 week ago