T
TheJoker1990
Guest
I just need an example on how to start coding this since i am a noob when it comes to programming and i didnt understand the school book at all. I dont need anybody to do the code for me I just need somebody to tell me how to start coding this. This is the program I need to built :A company pays its employees on a weekly basis. The employees are of 3 types: Salaried employees are paid a fixed weekly salary regardless of the hours worked, hourly employees are paid by the hour and receive overtime pay (1.5 )for all hours worked in excess of 40 hours, commission employees are paid a percentage of their sales. This application is to calculate the payroll polymorphic ally. Create an abstract class named Employee which has three private members (lastName, firstName, and SSN). Employee class contains one abstract method called Earnings() (returns weekly pay) which will be implemented by its derived classes( Salaried Employee , Hourly Employee , and Commission Employee). Besides inheriting from its base class, Salaried Employee has weekly Salary field, Hourly Employee has hourly Wage and hours Worked fields, Commission Employee has gross Sales and comm Rate fields. Write Constructors, Properties, ToString() method for each class and implement Earnings() method for each derived class. Use Program.cs to test all classes and displays the weekly earnings.
Continue reading...
Continue reading...