Question: needs to be in c# and use the following code. needs to have the class Sales with IComparable and the IComparable.CompareTo() Using the SalesTaxDemo program

needs to be in c# and use the following code. needs to have the class "Sales" with IComparable and the IComparable.CompareTo()
needs to be in c# and use the following code. needs to
have the class "Sales" with IComparable and the IComparable.CompareTo() Using the SalesTaxDemo
program you wrote in Exercise 6A, modify that program so that after

Using the SalesTaxDemo program you wrote in Exercise 6A, modify that program so that after the 10Sale objects are displayed, they are sorted in order by the amount of tax owed and displayed again. Modify the Sale class so its objects are comparable to each other based on tax owed using IComparable.CompareTo(). Name this modified program SalesTaxDemo2. Each item should be displayed as follows: Sale \#1 Amount: 567 Sale $1.00 Tax is $0.08 In order to prepend the $ to currency values, the program will need to use the CultureInfo. GetCultureInfo method. In order to do this, include the statement using System.Globalization; at the top of your program and format the output statements as follows: Writeline("This is an example: {0} ", value. Tostring("C", CultureInfo. GetCultureInfo("en(US"))): using static Syste.i.Console; using Systen.Gtobatizationt class 5atestaxbeno static vold Main() I 11 Write your main here. satelisatese new sate (20]t for (int x=0tx

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!