Professional Documents
Culture Documents
Q017 Vehicle Computation Details
Q017 Vehicle Computation Details
Q017 Vehicle Computation Details
Hiroshi car showroom has come up with a new idea of displaying the car details using touch
screen in order to reduce the burden of their staff to explain the details of each car. They want
to build an application where customer can touch the car of their preference and system will
ask some car details and display the same along with any discount applicable on it.
[Note : Strictly adhere to the object-oriented specifications given as a part of the problem
statement.
Follow the naming conventions as mentioned. Create separate classes in separate files.]
Consider a class called Cars with the following private member variables
DataType Attributes
string milage
string color
double price
int totalSeat
Create another class called Hyundai with the following private member variables which
implements the ICars interface and Cars class
DataType Attributes
string milage
string color
double price
int totalSeat
Create another class called RangeRover with the following private member variables which
implements the ICars interface and Cars class
DataType Attributes
string milage
string color
double price
int totalSeat
Consider class Program with Main method to get the details of the Car from the customer and
display the details using the Display() method along with calculative discount price using
DiscountAvailable() method of the respective class. Display “Invalid Choice!!” when user gives
invalid choice of Car.