OFFERS! offer image Get Expert-crafted assignments
Save 51%

CS304 Object Oriented Programming Assignment 2 Spring 2025 | VU

Looking for Plagiarism-Free Answers for Your US, UK, Singapore, New Zealand, and Ireland College/University Assignments?

Talk to an Expert
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
60-Second Quote

Get Your Free Academic Quote

No hidden fees · Instant response · 100% confidential

Latest Free Samples for University Students

Supply Chain Analytics and Technology Management CWK Assignment Answer Sample PDF

Category: Assignment

Subject: Management

University: University of Bradford

Module Title: Supply Chain Analytics and Technology Management

View Free Samples

NCFE CACHE SWSC1: Understand schools and colleges as organisations Assignment Sample

Category: NCFE CACHE L2 Certificate in Supporting Teaching and Learning

Subject: Education

University: _

Module Title: SWSC1: Understand schools and colleges as organisations

View Free Samples

FDY3001 Preparing for University Success Portfolio Example SOLUTION PDF | Arden University

Category: Portfolio (Assignment)

Subject: Education

University: Arden University

Module Title: FDY3001 Preparing for University Success Portfolio

View Free Samples

Digital Marketing Assignment Sample PDF For Students

Category: Assignment

Subject: Marketing

University: Wrexham University

Module Title: Digital Marketing

View Free Samples

AUEC3-059 Obtaining resources for engineering activities Assignment Answers Solution PDF

Category: Assignment

Subject: Engineering

University: _

Module Title: AUEC3-059 Obtaining resources for engineering activities

View Free Samples
Online Assignment Help in UK