☑Kizspy.me
Question 7:
(2 mark, file to be edited: Q7.cpp)
Write a C++ program to manage a list of instructors using arrays and object-oriented
programming (OOP).
Requirements:
1.
Define an Employee class (in the same file as the main() function) with
Attributes:

id (Employee ID): string
• name (Employee Name): string

salary: double

bonus: double
Methods:
A default constructor (no parameters).
• A constructor to initialize the employee's information.
A method netSalary(): double, return the salary after applying bonus that means
salary + bonus
Zoom
6 of 6
Paper No: 7
+92%
Close