Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

none of the answers that have been provided work. needs to be in c# and use the terms provided. it also needs to have sale

none of the answers that have been provided work. needs to be in c# and use the terms provided. it also needs to have "sale objects are comparable using IComparable interface"
image text in transcribed
Jsing the SalesTaxDemo program you wrote Exercise 6A. modify that program so that afte the 10 Sale objects are displayed, they are sorted in order by the amount of tax owed an displayed again. Modify the Sale class so its objects are comparable to each other based o 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: {}". value. Tostring ("c". cuitureInfo, GetcuitureInfo("en(us")))

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

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions