CS304 Object Oriented Programming Assignment 2 Spring 2025 | VU

Published: 16 Jun, 2025
Category Assignment Subject Programming
University Virtual University ( VU) Module Title CS304 Object Oriented Programming
Assignment no.: 2
Semester: Spring 2025
Due date: 20 June 2025

CS304 Objective:

The objective of this assignment is to enable students to learn about inheritance, abstract class, concrete classes, and polymorphism.

Learning Outcome of CS304:

After completing this assignment, students will be able to implement the following concepts in C++:

  • Inheritance
  • Polymorphism

CS304 Submission Instructions:

  • Your assignment should be in .cpp file format (Any other format like scan images, PDF, zip, doc, rar, and bmp, etc. will not be accepted).
  • You can use any C++ compiler for implementation. However, the solution file must be in .cpp format.

Rules for Marking:

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

  • The assignment is submitted after the due date.
  • The submitted assignment does not open or execute, or the file is corrupted.
  • Your assignment is copied from the internet, handouts, or any other student. (Strict disciplinary action will be taken in this case).

Lectures Covered: This assignment covers lectures 22-30.

Do You Need Assignment of CS304 Assignment 2

Order Non Plagiarized Assignment

CS304 Assignment No. 2

Problem Statement:

In this assignment, you will implement the Vehicle Purchase System. In this system, there are two types of Vehicles: Normal Car and Luxury Car. Normal Car and Luxury Car classes are inherited from the Vehicle class in which Vehicle is an abstract class, whereas Normal Car and Luxury Car are the concrete classes.

The Vehicles price/rate needs to be calculated for each type of vehicle based on the following requirements.

Vehicle class has the following data members:

  • baseRate taxRate

Vehicle class has the following member functions:

  • getBaseRate()
  • calculate Taxes()
  • calculate TotalCost()

Normal Car class has the following member functions:

  • Parameterized constructor for baseRate.
  • Use the same parameterized constructor to assign a 15% tax rate.
  • Override the base class functions.

The Luxury Car class has the following data member:

  • Eduty

The Luxury Car class has the following member functions: Parameterized constructor for baseRate.

Use the same parameterized constructor to assign a 20% tax rate and 30000/- as excise duty for luxury cars.

Tax for normal cars will be calculated based on the following formula: 
Tax-tax Rate *base Rate

Tax for luxury cars will be calculated based on the following formula:
Tax-taxRate* baseRate + Eduty

The total cost for both types of cars will be calculated based on the following formula:
Total cost - Tax + baseRate

In the main() function, create two objects, one object of the normal car and another object of the luxury car class. Use the concept of polymorphism to calculate the costs and taxes of both types of cars and only display their total cost.

CS304 Object Oriented Programming Assignment 2

Achieve Higher Grades CS304 Assignment 2

Order Non Plagiarized Assignment

Get expert assignment help for CS304 Object Oriented Programming Assignment 2? We specialize in offering high-quality Programming Assignment Help, with an option for students to pay our experts to take on their assignment challenges. Need a reference? We also provide a free list of assignment example sample to help you get started. With years of experience, our writers deliver 100% plagiarism-free content and offer unlimited revisions to meet your needs. Trust us to help you excel in your studies!

Workingment Unique Features

Hire Assignment Helper Today!


Latest Free Samples for University Students

MARK723-Contemporary Marketing Assignment Sample 2025-26 | LBU

Category: Assignment

Subject: Marketing

University: Leeds Beckett University

Module Title: MARK723-Contemporary Marketing

View Free Samples

HC70025W Public Health Health Systems (PHHS) Formative And Summative Assessment Sample Answers

Category: Assignment

Subject:

University: Leeds Beckett University

Module Title: HC70025W Public Health Health Systems

View Free Samples

Level 7 Research Methods and Event Evaluation Assessment 1 –Research Report Sample

Category: Assignment

Subject: Management

University: Leeds Beckett University

Module Title: L7 Research Methods and Event Evaluation

View Free Samples

LCBM7024 Marketing Management Level 7 Assignment 1 Sample 2025

Category: Assignment

Subject: Management

University: University of Wales

Module Title: LCMB7024 Marketing Management

View Free Samples

AFE_4_MAC Managerial Accounting Assignment 1 Answer | LSBU 2025

Category: Assignment

Subject: Accounting

University: London South Bank University (LSBU)

Module Title: AFE_4_MAC Managerial Accounting

View Free Samples
Online Assignment Help in UK