Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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...
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
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