Maurice Tutor

(5)

$15/per page/Negotiable

About Maurice Tutor

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Algebra,Applied Sciences See all
Algebra,Applied Sciences,Biology,Calculus,Chemistry,Economics,English,Essay writing,Geography,Geology,Health & Medical,Physics,Science Hide all
Teaching Since: May 2017
Last Sign in: 398 Weeks Ago, 2 Days Ago
Questions Answered: 66690
Tutorials Posted: 66688

Education

  • MCS,PHD
    Argosy University/ Phoniex University/
    Nov-2005 - Oct-2011

Experience

  • Professor
    Phoniex University
    Oct-2001 - Nov-2016

Category > Computer Science Posted 27 Aug 2017 My Price 13.00

social security number

2) Create 3 files for this program. Taxpayer.h, Taxpayer.cpp, and main.cpp

Create a class called Taxpayer. Data members (private variables)include a social security number, a full name, a yearly gross income, and the tax owed.

  • Your class should have a constructor that takes in a name, social security number, and a yearly gross income.
  • Provide get and set methods for all the data members.
  • The set methods should do validation:
  1. Make sure numbers entered are not negative. Make them zero if they are.
  2. Make sure names entered are not blank, if it is default to "No Name"
  3. Make sure social security number, has appropriate number of digits, if it doesn't default to "123-45-6789"
  • The tax should be calculated whenever the income is set. The tax has this formula:

15% for incomes under $30,000
28.5% for incomes $30,000 or higher.

  • main program
  1. Should ask for TaxPayers in a loop. Keep allowing taxpayers to be entered, until they enter QUIT for the name.
  2. Once the user is done entering values, your program shouldask the user for a taxpayer to search on: If the taxpayer exists, print out their social, income, and taxOwed. If the taxpayer does not exist, print that out. Also, print out all the taxpayers in the same tax bracket as the taxpayer searched on
  3. Allow users to search until they enter QUIT

Sample Execution:

Enter Tax Payer Name (QUIT to Quit): Mike Stevens

Enter SSN for Mike Stevens: 123-33-3333

Enter Income for Mike Stevens: 45000

Enter Tax Payer Name (QUIT to Quit): Cindy Etter

Enter SSN for Cindy Etter: 123-33-3334

Enter Income for Cindy Etter: 95000

Enter Tax Payer Name (QUIT to Quit): Joe Blake

Enter SSN for Joe Blake: 123-33-3337

Enter Income for Joe Blake: 25000

Enter Tax Payer Name (QUIT to Quit): QUIT

Enter Tax Payer Name to Search For (QUIT to Quit): Mr. K

Mr. K is not found.

Enter Tax Payer Name to Search For (QUIT to Quit): Cindy Etter

Social Security Number: 123-33-3334

Income: $95000

Tax Owed: $27075

Other Tax Payers in this same bracket: Mike Stevens

Enter Tax Payer Name to Search For (QUIT to Quit): QUIT

Answers

(5)
Status NEW Posted 27 Aug 2017 09:08 AM My Price 13.00

Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll

Not Rated(0)