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)
* 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
Top-quality papers guaranteed
100% original papers
We sell only unique pieces of writing completed according to your demands.
Confidential service
We use security encryption to keep your personal data protected.
Money-back guarantee
We can give your money back if something goes wrong with your order.
Enjoy the free features we offer to everyone
-
Title page
Get a free title page formatted according to the specifics of your particular style.
-
Custom formatting
Request us to use APA, MLA, Harvard, Chicago, or any other style for your essay.
-
Bibliography page
Don’t pay extra for a list of references that perfectly fits your academic needs.
-
24/7 support assistance
Ask us a question anytime you need to—we don’t charge extra for supporting you!
Calculate how much your essay costs
What we are popular for
- English 101
- History
- Business Studies
- Management
- Literature
- Composition
- Psychology
- Philosophy
- Marketing
- Economics