Q1: Write a C++ program to implement the following level of inheritance. Write getter/setters, display function, parameterized, default and copy Write a calculateSalary() function in the Typist class and override the definition in permanent and Write a ‘main’ function and create objects of all classes in main and call the public methods of all image is for q1 only. Q2: Class student contains roll number, name and course as data members and Input_student and display_student as member functions. Create a class exam and publicly inherit it from student class. The derived class contains an array of marks and no_of_subjects as data members, and input_marks and display_result as member functions. Overload “<=”, “()” and “+=” operators and use the overloaded operators in the main function. Create an array of objects of the exam class and display the result of 5 students.

Principles of Information Systems (MindTap Course List)
12th Edition
ISBN:9781285867168
Author:Ralph Stair, George Reynolds
Publisher:Ralph Stair, George Reynolds
Chapter11: Knowledge Management And Specialized Information Systems
Section: Chapter Questions
Problem 18SAT
icon
Related questions
Question
100%

Q1:

Write a C++ program to implement the following level of inheritance.

  1. Write getter/setters, display function, parameterized, default and copy
  2. Write a calculateSalary() function in the Typist class and override the definition in permanent and
  3. Write a ‘main’ function and create objects of all classes in main and call the public methods of all
  4. image is for q1 only.

Q2:

Class student contains roll number, name and course as data members and Input_student and display_student as member functions. Create a class exam and publicly inherit it from student class. The derived class contains an array of marks and no_of_subjects as data members, and input_marks and display_result as member functions. Overload “<=”, “()” and “+=” operators and use the overloaded operators in the main function. Create an array of objects of the exam class and display the result of 5 students.

Staff
code
Name
Faculty
Officer
Department
Typist
Rank
Subject Taken
Office
Grade
Research Area
Speed
Permanent
Casual
Salary
daily wages
Transcribed Image Text:Staff code Name Faculty Officer Department Typist Rank Subject Taken Office Grade Research Area Speed Permanent Casual Salary daily wages
Expert Solution
steps

Step by step

Solved in 3 steps with 8 images

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
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning