Assignment GDB Solution: CS304 Object Oriented Programming

loading...

CS304 Assignment 1 Solution Fall 2018

Case Study Suppose ABC is a car rental company. To facilitate all type of customers the company bought different types of vehicles like car, coaster and bus for their drivers. These vehicles are composed of best engines and tires. Company will also keep these vehicles in separate garages to protect it from any damage. Q […]

CS304 Assignment 3 Solution Fall 2017

Problem Statement: Suppose METRO Cash & Carry Pakistan has given you a task to develop an automatic checkout system in C++. All items are identifiable by means of a merchandise computer code (barcode) and the item name. Groceries are either sold in packs or by weight. Packed items have fixed prices. The price of groceries […]

CS304 Assignment 3 solution Fall 2017

Suppose METRO Cash & Carry Pakistan has given you a task to develop an automatic checkout system in C++. All items are identifiable by means of a merchandise computer code (barcode) and the item name. Groceries are either sold in packs or by weight. Packed items have fixed prices. The price of groceries sold by […]

CS304 Assignment 2 Solution Fall 2017

Problem Statement: We have the following part of class diagram showing composition relationship: You are required to implement above class diagram (complete program) in C++ with all data members, constructors, member functions and concept (composition) given in the class diagram/table 1. See the sample output to view the messages you need to print in constructors […]

CS304 Assignment 2 Solution Fall 2017

Problem Statement: We have the following part of class diagram showing composition relationship: You are required to implement above class diagram (complete program) in C++ with all data members, constructors, member functions and concept (composition) given in the class diagram/table 1. See the sample output to view the messages you need to print in constructors […]

CS304 Assignment 1 Solution Fall 2017

Problem Statement Suppose XYZ is a fashion designing company. To attract more customers the company bought different types of latest sewing machines like lockstitch sewing machine, over edging machine and embroidery machine for their tailors. These machines are composed of different parts like hook gear, needle bar and main shaft. To protect these expensive sewing […]

CS304 Assignment 3 Solution Spring 2017

Problem Statement: In continuation of Assignment No. 1 and 2, we have the following part of class diagram: Car, SUV and HDV are concrete classes as opposed to Vehicle with a pure virtual function. You are required to implement polymorphism in the above scenario by writing a complete C++ program with the mentioned data members […]

CS304 Assignment 1 Solution Spring 2017

CS304 Assignment 1 Solution Spring 2017 Problem Statement: There are broadly three kinds of vehicles: Cars Sports Utility Vehicles (SUVs) Heavy Duty Vehicles (HDVs) Every vehicle has an engine and a gearbox. A gearbox is composed of pulleys working according to predefined gear ratios. Cars have smaller engines with 4-6 gears while Sports Utility Vehicles […]

CS304 GDB Solution feb 2015

Can Aspect Oriented Programming (AOP) replace Object Oriented Programming (OOP). Give your opinion with solid arguments. Solution: Aspect Oriented Programming (AOP) Aspect Oriented Programming works at the complex software system as combined implementation of multiple concerns like business logic, data persistence, logging, security, multithread safety, error handling, and so on. Separates business logic code from the system level code. In […]