Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

Assignment No. 03
SEMESTER Spring 2018
CS304- Object Oriented Programming



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.


  • Note: You are supposed to submit your assignment in .cpp Any other formats like scan images, PDF, zip, doc, rar and bmp etc will not be accepted. All types of plagiarism are strictly prohibited.


For any query about the assignment, contact at

Student Learning Outcomes

Students will be able to:

  • Define base and derived classes with their respective data members and member functions
  • Implement Multiple Inheritance.


For any query about the assignment, contact at



Problem Statement

Consider yourself working as a software engineer in a marketing company of both hardware and software. The IT manager has given you a task to model a part of their simple advertising system. In this system, there will be four classes named Item, Sales, hwItem (Hardware Item), swItem (Software Item)

Steps to follow:

  1. Create a base class Item that should store the title of the item (a string) and its price (a float).
  2. Then create another base class called Sales which should contain an array of three floats so that it can record the sale in rupees of a particular item for the last three months.
  3. After that derive two classes hwItem (hardware item) and swItem (software item) from both Item and Sales The hwItem class should hold category of the item and its original manufacturer (om), whereas the swItem class should contain the type of the software and the Operating System (os) under which it works.
  4. Each class should have its own getData() and displayData() functions to input and output data respectively.

The following hierarch of classes should be used for the assignment solution.

Sample Output:


Lectures Covered:  This assignment covers Lecture # 23-32.

Deadline:  Your assignment must be uploaded/submitted at or before.

Views: 3620

Replies to This Discussion

Please Discuss here about this assignment.Thanks

Our main purpose here discussion not just Solution

We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions. Read More>>

Discussed & be touched with this discussion. After discussion a perfect solution will come in a result at the end.



For Important Helping Material related to this subject (Solved MCQs, Short Notes, Solved past Papers, E-Books, FAQ,Short Questions Answers & more). You must view all the featured Discussion in this subject group.

For how you can view all the Featured discussions click on the Back to Subject Name Discussions link below the title of this Discussion & then under featured Discussion corner click on the view all link.

Or visit this link 

Click Here For Detail.


.•°How to Download past papers from study groups°•.


Please Click on the below link to see…

.... How to Find Your Subject Study Group & Join .... 


P.S:    Please always try to add the discussion in proper format title like “CS101 Assignment / GDB No 01 Solution & Discussion Due Date: ___________”

is it correct solution?

plz code word format min dy deny

CS304 Assignment #3 Complete Solution due date 9 Aug 2018

CS304 Assignment #3 Complete Solution due date 9 Aug 2018

CS304 Assignment 3 Solution Spring 2018

Assignment File in .Cpp Format:

                            CS304 Assignment 3.Cpp

object oriented programming Assignment No.3 is also uploaded here

plz cpp formt myn code dyeny dy

CS304 assignment #3 complete solution is here>>


yaar plz ye bta do just code cpp ki file send krni hai ya output ki screen shot bhi krni hai?


© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service