C++ Prgramming - class for a sales person

profileCSpro
 (Not rated)
 (Not rated)
Chat

Design a class for a sales person that has the following members variable:
 EID: To holds the sales person’s employment ID
 Firstname: To holds the sales person’s first name.
 Lastname: To holds the sales person’s last name.
 Date: To holds the sales person’s birth date
 TotalAnnualSales: To holds the sales person’s total sales in a year.
In addition, the class should have the following member functions.
 Constructor: The constructor should accept the sales person’s data as arguments and assign these values to the object’s member variables.
 Mutators: Appropriate mutator functions should be created to allow values to be set for each object’s data members.
 Accessors: Appropriate accessor functions should be created to allow values to be retrieved from an object’s data members.
 calculateCommission: This function should calculate and display the commission amount for a sales person based on his totalAnnualSales. See below.

 TotalAnnualSales Commission percentage
 Under $10,00 No commission
 $10,000-$20,00 2% of TotalAnnualSales
 Greater than $20,000 4% of TotalAnnualSales
Demonstrate the class in a program that creates a sales person object, and then calls each of the functions in the class

 

 

    • 12 years ago
    A+ Answer- expert solution
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      salesperson_class.zip