Visual Programming Worksheet

* Q1)Given the following diagram, implement all the Classes and write a client code to test your application. (a,b,c,d,e)

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

* the ( Assignment.dox ) that is attached consist the exercise that should be solved.

*( LEC8 – LEC9 ) pdfs, that is attached. have a look on them to guide you for solving the exercises.

GC201
Assignment
___________________________________________________________________________________
Q1) Given the following diagram, implement all the Classes and write a client code to test
your application.
Emlpoyee
+ name
+Ssn
+CalculateEarning()
SalariedEmployee
CommissionEmployee
-weeklySalaryValue
+CalculateEarning()
-grossSales value
-commisionRateValue
+ CalculateEarning()
a. Class Employee:
CalculateEarning(): return double and it is must override method.
b. Class Salaried Employee:
CalculateEarning(): return the weekly salary employee
c. Class Commission Employee:
CalculateEarning(): return the commission rate multiply by gross sales values.
d. Write appropriate properties for each class.
e. The client program (Main()) should be test the application by creating 1 Salaried
employee object and display his salary. In addition to create 1 commission
employee object and display his salary.
I
notshared

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper
Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER