[solved]-Write Class Named Car Following Data Attributes Yearmodel Car S Year Model O Make Make Car Q38992950

Write a class named car that has the following data attributes: _year_model (for the car’s year model) O make (for the make of the car) speed (for the car’s current speed) The Car class should have an method that accepts the car’s year model and make as init_ arguments. These values should be assigned to the object’s attributes. It should also assign 0 to the make data year model and speed data attribute The class should also have the following methods: o accelerate The accelerate method should add 5 to the speed data attribute each time it is called o brake The brake method should subtract 5 from the speed data attribute each time it is called o get_speed speed The get_speEd method should return the current object then calls the accelerate method five times. Next, design a program that creates a Car After each call to the accelerate method, get the current speed of the car and display it. Then call the brake method five times. After each call to the brake method, get the current speed of the car and display it Show transcribed image text Write a class named car that has the following data attributes: _year_model (for the car’s year model) O make (for the make of the car) speed (for the car’s current speed) The Car class should have an method that accepts the car’s year model and make as init_ arguments. These values should be assigned to the object’s attributes. It should also assign 0 to the make data year model and speed data attribute The class should also have the following methods: o accelerate The accelerate method should add 5 to the speed data attribute each time it is called o brake The brake method should subtract 5 from the speed data attribute each time it is called o get_speed speed The get_speEd method should return the current object then calls the accelerate method five times. Next, design a program that creates a Car After each call to the accelerate method, get the current speed of the car and display it. Then call the brake method five times. After each call to the brake method, get the current speed of the car and display it
Expert Answer
Answer to Write a class named car that has the following data attributes: _year_model (for the car’s year model) O make (for the m… . . .
OR

