Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In C# Please ! Instructions SalesTransactionDe...T 1 using static Systen.Console; 2 class SalesTransactionDemo Create an application named SalesTransactionDemo that declares several SalesTransaction objects and displays
In C# Please !
Instructions SalesTransactionDe...T 1 using static Systen.Console; 2 class SalesTransactionDemo Create an application named SalesTransactionDemo that declares several SalesTransaction objects and displays their values and their sum static void Main) The SalesTransaction class contains the following fields: // Write your main here Name - The salesperson's name (as a string) public static void Display(SalesTransaction s) 8 salesAmount - The sales amount ( as a double ) 10 // Write your Display() nethod here . co mission . The commission (as a double ) public static void DisplayTotal(SalesTransaction S) 12 RATE A readonly field that stores the commission rate (as a double ). Define a getRate) accessor method that returns the RATE 13 14 15 16 // Write your DisplayTotalC) method here Include three constructors for the class. One constructor accepts values for the name, sales amount, and rate, and when the sales value is set, the constructor computes the commission as sales value times commission rate. The second constructor accepts a name and sales amount, but sets the commission rate to 0 The third constructor accepts a name and sets all the other fields to 0 An overloaded + operator adds the sales values for two SalesTransaction objects and returns a new SalesTransaction objectStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started