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 |
The objective of this assignment is to enable students to learn about inheritance, abstract class, concrete classes, and polymorphism.
After completing this assignment, students will be able to implement the following concepts in C++:
It should be clear that your assignment will not get any credit if:
Lectures Covered: This assignment covers lectures 22-30.
Do You Need Assignment of CS304 Assignment 2
Order Non Plagiarized AssignmentIn 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:
Vehicle class has the following member functions:
Normal Car class has the following member functions:
The Luxury Car class has the following data member:
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.
Achieve Higher Grades CS304 Assignment 2
Order Non Plagiarized AssignmentGet 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!
Let's Book Your Work with Our Expert and Get High-Quality Content