CS304 Assignment 2's solution is now available here at VUAssist.blogspot.com. You are NOT advised to completely rely on this solution. This is only for idea.
Instructions:
Please read the following instructions carefully before submitting assignment:It should be clear that your assignment will not get any credit if:
- The assignment is submitted after due date.
- The assignment is submitted via email.
- The assignment is copied from Internet or from any other student.
- The submitted assignment does not open or file is corrupt.
- It is in some format other than .cpp.
Objectives
The objectives of this assignment is:
- To make you enable to understand real world scenario and implement it into computer program.
- To give you the idea of practical implementation of some concepts like, Hierarchy of Inheritance, Types of Inheritance, Private Inheritance, Protected Inheritance and Specialization (Restriction) etc.
For any query about the assignment, contact at cs304@vu.edu.pk
Problem Statement
Write a program containing three classes Person, Student, and Exam for an Examination database using Inheritance. Class Person is the base class, Student is the intermediate base class, and Exam is the derived class. The Student class should inherit the properties of Person class whereas, the Exam class should inherit the properties of Student class (directly) and properties of Person class (indirectly). Implement the model shown in figure using the following hints.
Data Members
Person Class: Name, Gender Age
Student Class: RollNo, Subject
Exam Class: Sub1Marks, Sub2Marks
Member Functions
You are required to write the following member functions for all three classes:
- readData()
- displayData()
Note: You are required to submit your assignment solution in .CPP format. Any other formats like scan images, PDF, zip, doc, rar and bmp etc will be marked as Zero.
Lectures Covered: This assignment covers Lecture # 22 - 27
Deadline: Your assignment must be uploaded/submitted at or before Due Date 30/01/2019.
Solution File:
- CS304 Assignment 2 Solution Idea 2019 - Download [DOC file]
- CS304 Assignment 2 Solution Idea 2019 - Download [CPP file]
Recommended: CS304 Final Term Past Papers
Recommended: CS304 Final Term Past Papers
