ABC car showroom sells various types of cars such as Hatchback, Sedan, SUV and MUV. Due to year end sale, the showroom provides 3%, 5%, 10% and 15% discount for various car models Hatchback, Sedan, SUV and MUV respectively. Also applies 12% of GST for the total amount of purchase . Write a C++ program for the given scenario as follows:

Create a class Car with some fields (Type, price, extrafitting, GST, discount and NetPrice) and methods such as NAME_1(), Compute() and Display()

NAME_1() method will NAME_1 the type, price and extrafitting of the car

Compute() method will check the type of car and estimate the Net amount to be paid to the showroom. If the type of car is other than Hatchback, Sedan, SUV and MUV then display “Invalid Type”.

Estimation is done as given below: (For example-if the purchased car is Hatchback)

    Total=price+extrafitting

    discount=total*0.03           // 0.03 denotes 3% wastage

    gst=(total-discount)*0.12  // 0.12 denotes 12% GST

    net=total-discount+gst