CS304P Assignment 2 Solution 2021

CS304P Assignment 2 Solution 2021

Assignment No. 02
Semester: Fall 2020

CS304P Assignment 2 Solution 2021


Total Marks: 20

Due Date:

January 03, 2022

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:

  1. The assignment is submitted after due date.
  2. The submitted assignment does not open, execute or file is corrupted.
  3. 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 Lab 4-6 which includes the Lecture # 10-18.

Problem Statement CS304P Assignment 2 Solution 2021  

For Paid Work Contact 0347-8749900


Pakistan had faced terrorism when it was on peak. There were different unregistered companies that were present and they had accounts in the banks. The purpose of these accounts was money laundering. FIA wants to keep the record of all the companies. They hired you as a developer to develop the system that shows the company name, where its headquarter is located. It also shows the information about its department i.e. number of department and employee information i.e. How many employees are working in the company.

Keeping in mind the above scenario, consider the following class diagram showing the composition relationship between Company and Employee classes and Company and Department classes.



Now, you are required to write a C++ program for above for above class diagram.

Solution Guidelines:

·         Carefully analyze the given class diagram and write code according to classes, attributes, functions and relationship mentioned in class diagram.

·        There is one main point to consider when display the company information. If there is more than one department in the company system should print the plural for department i.e. Departments and if the company has one department, it should display the singular department.

Sample Output:

 Best of luck!

NOTE:  Do not put any query on MDB about this assignment, if you have any query then email at cs304@vu.edu.pk.

Furthermore, if any student found cheating from any other student or from online forums then he/she will be awarded ZERO right away and strict disciplinary action will be taken against the student.

Deadline: Your assignment must be uploaded/submitted on or before January 03, 2022.


CS304P Assignment 2 Solution 2021   Download Here