PRF193_PE_SU25_B1_121891_3985.webp
Yuno_76

PRF193_PE_SU25_B1_121891_3985.webp

  • Media owner Yuno_76
  • Ngày thêm
☑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
Chưa có bình luận nào.

Thông tin

Category
PRF193
Thêm bởi
Yuno_76
Ngày thêm
Lượt xem
934
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom