Question: Answer in C# with matching class and methods... uning Syetem; Create an application named SalesTransaction Domo that declares several SalesTraneaction objects and usinut #tatie Syates,

Answer in C# with matching class and methods...
Answer in C# with matching class and methods... uning Syetem; Create an

uning Syetem; Create an application named SalesTransaction Domo that declares several SalesTraneaction objects and usinut \#tatie Syates, Console: displays thoir values and their sum. The Salestransaction class contains the following using Systemialobalization: 4 claso Salestransactionbeno felds: b. I ntatic void Main() - Name - The salesperson's name (as a string) publie static void Display(Salestransaction a) - salesAmount - The sales amount (as a double) - commission - The commission (as a double) - RATE - A readonly fiold that stores the commission rate (as a double), Define a getRote() accossor method that returns the RATE 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 tate to 0 . The third constructor accepts a name and sets all the other Hlelds to 0 . An overloaded + operator adds the sales values for two Salestransaction objects and roturns a now

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!