Construct a program in C++ to calculate a net selling price of a car from variety of models. The requirement of the program are:
a. The program should be developed according to object oriented programming language which contain:
i. A class with a proper naming convention.
ii. A constructor with attributes - brand, model, year, price.
b. A static void method to calculate the discounted price with year and price as its parameters. In this method, test the input using single if control statement: - If the model produced in the year above 2020, then no discount will be given
- If the model produced in the year of 2018 until 2020, then the discount is 10% from the original price of the car
- If the model produced in the year of 2016 until 2017, then the discount is 20% from the original price of the car
- If the model produced in the year of 2014 until 2015, then the discount is 30% from the original price of the car
- If the model produced in the year of 2012 until 2013, then the discount is 40% from the original price of the car
- If the model produced in the year less than 2012, then the discount is 50% from the original price of the car
c. Construct main() as a driver which input the brand, model, year and price from the keyboard.
d. Loop the user input twice using iteration control statement where the looping should initiate from 1 until 2 respectively.
e. Create an object of the class to invoke the year and price into the discount method.
Please help me. Thank you.