Question: C# Create a program named SalesTaxDemo that declares an array of 10 Sale objects. Prompt the user for data for each object and display the

C#

C# Create a program named SalesTaxDemo that declares an array of 10

Create a program named SalesTaxDemo that declares an array of 10 Sale objects. Prompt the user for data for each object and display the 10 objects. Data fields tor Sa le objects include an inventory number, amount of the sale, and tax owed. a. Include a property with get and set accessors for the first two data fields, but make the tax owed a read-only property. The tax should be calculated whenever the amount of the sale is set. Assume that the tax rate is 8 percent for the first $100 and 6 percent for any amount greater than $100. b. Create a program named Sales TaxDemo2 so that after the 10 Sale objects are displayed, they are sorted in order by the amount of tax owed and displayed agair Modify the Sale class so its objects are comparable to each other based on tax owed. NOTE: Put together the requirements in questions a and b together in one program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!