Description
Object Oriented Programming 2 – MSC1052
Practical Laboratory Assignment # 1
Topic covered: Introduction To Class and Object with set and get method
1 Define a class student with the following specification
Student
-Student_ID: String
-Student_Name: String
-OOP2_Score:double
-Maths_Score:double
-English_Score:double
-Total_Score:double
-ctotal():a function to calculate eng
+ math + OOP-2 with double return type.
+Takedata() Function to accept values for student id, Student Name, eng, OOP-2,maths and invoke ctotal() to calculate total.
+Showdata() Function to display all the data members on the screen.
Special Note : In class diagram + for public, – for private
Object Oriented Programming 2 – MSC1052
2. Write C++ header file Employee.h with class Employee with following details.
Employee
-Employee_ID: String
-Employee_Name: String
-No_of_Hours_Work:int
-Rate_per_Hour:int
+setEmployee_ID(String)
+getEmployee_ID():String
+setEmployee_Name(String)
+getEmployee_Name():String
+set No_of_Hours_Work (int)
+get No_of_Hours_Work ():int
+set Rate_per_Hour (int)
+get Rate_per_Hour ():int
+getTotal_Monthly_Salary():double
Write C++ program to in your program and write menu driven program to get employee details, display employee details, and display monthly salary details of employee.
Special Note : In class diagram + for public, – for private




Reviews
There are no reviews yet.