Create a class named Taxpayer. Data fields for Taxpayers include Social Security number(use an int for the type, and do not use dashes within the Social Security number) and yearly gross income. Methods include a constructor that requires values for both data fields, and two get methods that return each of the data field values. B。 Write a program that declares an array of 10 Taxpayer objects. Set each Social Security number to 999999999 and each gross income to zero. Display the 10 Taxpayer objects C. Modify your program so each Taxpayer has a successive Social Security number from 1-10 and gross incomes that range from 10000 to 100000, increasing by 10000 for each successive Taxpayer.
Create a class named Taxpayer. Data fields for Taxpayers include Social Security number(use an int for the type, and do not use dashes within the Social Security number) and yearly gross income. Methods include a constructor that requires values for both data fields, and two get methods that return each of the data field values.
B。 Write a program that declares an array of 10 Taxpayer objects. Set each Social Security number to 999999999 and each gross income to zero. Display the 10 Taxpayer objects
C. Modify your program so each Taxpayer has a successive Social Security number from 1-10 and gross incomes that range from 10000 to 100000, increasing by 10000 for each successive Taxpayer.
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 2 images