Answered step by step
Verified Expert Solution
Link Copied!

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...
image text in transcribed
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

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

Handbook Of Relational Database Design

Authors: Candace C. Fleming, Barbara Von Halle

1st Edition

0201114348, 978-0201114348

More Books

Students also viewed these Databases questions

Question

fscanf retums a special value EOF that stands for...

Answered: 1 week ago

Question

What does the start( ) method defined by Thread do?

Answered: 1 week ago

Question

Classify delivery styles by type.

Answered: 1 week ago