Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with my c# class. I have no idea how to even start the program below. It is for C# in Visual Studio

I need help with my c# class. I have no idea how to even start the program below. It is for C# in Visual Studio

Create a class named Taxpayer.

  • Data fields for Taxpayer class include the Social Security number (use a string for the type, but do not use dashes within the number), the yearly gross income, the tax owed, and totalTaxAmt (static variable).
  • The class includes the properties with get and set for the first two data fields, but make the tax owed a read-only property. The tax should be calculated whenever the income is set. Assume the tax is 15% of income for incomes under $30,000 and 28% for incomes that are $30,000 or higher. After the tax owed is calculated, the tax owed is added into totalTaxAmt.

Write a main function that prompts user to enter the number of Taxpayer and creates a dynamic array of the Taxpayer objects. Prompt the user for data for each object and display total tax amount. After the main function, write a function that compare each object based on tax owed; then display the objects in order by the amount of tax owed. Save the program as TaxPayerDemo.cs.

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

Spatio Temporal Database Management International Workshop Stdbm 99 Edinburgh Scotland September 10 11 1999 Proceedings Lncs 1678

Authors: Michael H. Bohlen ,Christian S. Jensen ,Michel O. Scholl

1999th Edition

3540664017, 978-3540664017

More Books

Students also viewed these Databases questions

Question

Let be an alphabet. Let xi g for 1 Answered: 1 week ago

Answered: 1 week ago

Question

Conduct an effective performance feedback session. page 360

Answered: 1 week ago