write a class named car that has the following member varibles: YEAR: an int tha
ID: 3630561 • Letter: W
Question
write a class named car that has the following member varibles:YEAR: an int that holds the car's model year
MAKE: a string that holds the make of the car
SPEED: an int that holds the car's current speed
in addidtion the class should include:
constructor that should accept the car's year and make as arguments and assign these values to the objects year and make member varibles. The constructor should initialize the speed member varible to 0.
Appropriate accessor functions should be created to allow values to be retrieved from an objects year,make,and speed member varibles.
The accelerate function should add 5 to the speed member varible each time called. The Brake fuction should subtract 5. Demonstrate the class and then call accelerate function 5 times. After each call to accelerate function, get the current speed of car and display it. Then, call the brake fuction 5 times, and display. For this project store class delarations and member functions in their own seperate files, place main in another file.