The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 408 Weeks Ago, 1 Day Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
a. Define a class named TaxReturn that contains a tax ID number, last name, first name, annual income, number of dependents, and amount of tax owed for a taxpayer. Include constant static fields that hold the tax rates for the situations shown in the following table.

Include a static function that displays the tax table. Write a main()function that contains a single statement that displays the tax table. Save the file as TaxReturn.cpp.
b. Add two public functions to the TaxReturn class: setAll(), which can set the field values and display(), which can display them. The setAll()function accepts arguments for the tax ID number, last and first names, annual income, and number of dependents. The setAll()function should then call a private function that computes the tax owed. Create an array of 10 TaxReturn objects. In a loop, prompt the user for ID number, first and last name, annual income, and number of dependents, then use these values to set a TaxReturn’s fields. At the end of the loop, display all the values for all 10 TaxReturn objects, including the tax owed. Save the file as TaxReturn2.cpp.
Â
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------.Pl-----------eas-----------e p-----------ing----------- me----------- on-----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be-----------