Q1) Given the following diagram, implement all the Classes and write a client code to test your application. Emlpoyee + name +Ssn +Calculate Earning() Salaried Employee Commission Employee -weeklySalaryValue +Calculate Earning() -grossSales value -commisionRate Value + Calculate Earning() a. Class Employee: Calculate Earning(): return double and it is must override method. b. Class Salaried Employee: Calculate Earning(): return the weekly salary employee c. Class Commission Employee: Calculate Earning(): 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 obiect and display his salary.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 9RQ
icon
Related questions
Question

Can you help me solve it in Visual Basic language?in consol VB

Q1) Given the following diagram, implement all the Classes and write a client code to test
your application.
Emlpoyee
+ name
+Ssn
+Calculate Earning()
Salaried Employee
Commission Employee
-weeklySalaryValue
+Calculate Earning()
-grossSales value
-commisionRate Value
+ Calculate Earning()
a. Class Employee:
Calculate Earning(): return double and it is must override method.
b. Class Salaried Employee:
Calculate Earning(): return the weekly salary employee
c. Class Commission Employee:
Calculate Earning(): 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.
Transcribed Image Text:Q1) Given the following diagram, implement all the Classes and write a client code to test your application. Emlpoyee + name +Ssn +Calculate Earning() Salaried Employee Commission Employee -weeklySalaryValue +Calculate Earning() -grossSales value -commisionRate Value + Calculate Earning() a. Class Employee: Calculate Earning(): return double and it is must override method. b. Class Salaried Employee: Calculate Earning(): return the weekly salary employee c. Class Commission Employee: Calculate Earning(): 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.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Data members
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage