We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

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

 

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.

 

  • 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 CS304@vu.edu.pk

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 cs304@vu.edu.pk

GOOD LUCK!

__________________________________________________________________

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.

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 3055

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Replies to This Discussion

just cpp file

thank u brother.

YES SIRF CPP FILE UPLOAD KARNI HA

object oriented programming code is here https://bit.ly/2LWNEJY

object oriented programming code is here https://bit.ly/2LWNEJY

RSS

Latest Activity

hafiz shahzad ahmad liked + M.Tariq Malik's discussion CS408 Mid Term Papers Spring 2019 (15~28-June 2019) & All Solved Past Papers, Solved MCQs & Helping Material
20 minutes ago
Ali replied to + ℱȺℋ££M ᏕȺQǐβ's discussion ╰☆╮Mid Term Papers Solving Techniques During Paper Do These Steps╰☆╮
24 minutes ago
hareem mughal replied to A.B !!!AWAN!!!'s discussion happy brthday
45 minutes ago
hareem mughal liked A.B !!!AWAN!!!'s discussion happy brthday
46 minutes ago
AaLu_BukHaRa updated their profile
46 minutes ago
+ ! ! ! ❣ Sanam ❣ !+ updated their profile
48 minutes ago
Profile IconAoon Abbas, Benjumon, Ali Farhan and 6 more joined Virtual University of Pakistan
1 hour ago
+ !!!R❤G posted a discussion
1 hour ago
Maryam updated their profile
1 hour ago
〘٢٧ دن〘بریانی updated their profile
1 hour ago
Ittequa Ahmed posted a status
"Girls don't HEAL. We might look like we are all better, but if you look close, we're covered in CONCEALER."
1 hour ago

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

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

.