CS304 Assignment No. 2 Spring Solution Fall 2022

0

Vu All Subjects Assignment Quiz GDB Handouts Available here


Aslam U Alaikum!

Dear Students

In this post we are providing you CS304 Assignment No. 2 Spring Solution Fall 2022 100% correct or right solution. You'll Download assignment Solution File From below download (Click Here For Download File) link interface.

You should never copy paste the same answer which we are providing. Please do make some changes in the solution file.

Instructions:

This is to inform you that Assignment No. 2 has uploaded on LMS; its due date is Tuesday, August 23, 2022. Submit your solution within the due date through LMS.

Note: Solution file should be in .cpp format.

 

Objective

To give you the idea of practical implementation of C++ Classes, Constructors, Pure Virtual Functions, and Polymorphism.

 

Uploading instructions:

 

  • Your assignment should be in .CPP format (Any other formats like scan images, PDF, zip, doc, rar and bmp etc. will not be accepted).
  • Save your assignment with your ID (e.g. bc000000000.CPP).
  • No assignment will be accepted through email.

 

Rules for Marking:

 

It should be clear that your assignment will not get any credit if:

 

·         The assignment is submitted after due date.

·         The submitted assignment does not open, execute or file is corrupted.

·         Your assignment is copied from internet, handouts or from any other student.

      (Strict disciplinary action will be taken in this case).

 

Lectures Covered:

 

This assignment covers Lecture # 13-33

 

Assignment No. 01

 

An organization “Virtual University of Pakistan” needs a system which will be able to keep record of the data of their students and teachers. It is difficult to maintain the records in a traditional manner. That is why the organization wants to store the records of their students and teachers digitally. You are hired as an application developer by “Virtual University of Pakistan”.

 

You are required to implement the following hierarchy:


Following are the data members and member functions for the classes mentioned in the class diagram:

 

Class name

Data Members

Member Functions

User

name(string)

gender(char)

age(int)

Person()

Getter functions for the data members

DisplayData()

Student

StudentId(string)

degreeProgram(string)

feePerSemester(float)

Student()

DisplayData()

Teacher

salary(float)

allocatedStudents(int)

Teacher()

DisplayData()

 

Write the code keeping in mind the following instructions:

 

ü  Create three classes Person, Student and Teacher according to the hierarchy mentioned in the above diagram.

ü  Create Parameterized constructors for each of the class and use these constructors to set the Student and Teacher records.

ü  Make DiplsayData() pure virtual function in the Person.

ü  Implement the above scenario using Inheritance, Polymorphism and Dynamic Binding.

ü  You have to enter one record for the Teacher and one record for the Students using the constructor. Use Dynamic Binding and Display the Data on the screen as shown in the screenshot.

ü  Use your VU Student Id and name in the assignment.

 

Note: You need to print your name and your own VU ID, otherwise you will get zero marks.

Solution: 

File in Word 

You'll Download File in Word CS304 Assignment No. 2 Spring Solution Fall 2022  From below download (Download) link interface.

         

File in CPP

You'll Download File in CPP CS304 Assignment No. 2 Spring Solution Fall 2022 From below download (Download) link interface.

 

If you appreciate our work, please share our website vuonlinehelp.blogspot.com with your friends.

We are here to provide Latest Virtual University Assignment Solutions, GDB Solutions, Quiz  Solution, Midterm Past Papers, and Final term Past Papers in this website.



Post a Comment

0Comments

Thanks everone

Post a Comment (0)