Computers and Technology

Coding problem! please review my work!Part 1: Design a ClassYoull design a class named Car that has the following fields:yearModelAn Integer that holds the cars year modelmakeA String that holds the make of the carspeedAn Integer that holds the cars current speedThe class should have the following constructor and other methods:The constructor should accept the cars year model and make as arguments. These values should be assigned to the objects yearModel and make fields. The constructor should also assign 0 to the speed field.Design appropriate accessor methods to get the values stored in an objects yearModel, make, and speed fields.The accelerate method should add 5 to the speed field each time its called.The brake method should subtract 5 from the speed field each time its called.--------------------------------------------------------------------------------------------my coding (its in pseudocode!)Class CarPrivate Integer yearModelPrivate String makePrivate Integer speed// ConstructorPublic Module Car(Integer y, String m)Set yearModel = ySet make = mSet speed = 0End Module// AccessorsPublic Function Integer getYearModel()Return yearModelEnd FunctionPublic Function String getMake()Return makeEnd FunctionPublic Function Integer getSpeed()Return speedEnd Function// MutatorsPublic Module accelerate()Set speed = speed + 5End ModulePublic Module brake()Set speed = speed - 5End ModuleEnd Class---------------------------------------------------------------------------------------------Part 2: Design a ProgramYoull create both pseudocode and a flowchart to design a program that creates a Car object and then calls the accelerate method five times.Review Appendices B and C in your textbook for guidance when working on your project. Use free trials of any of the programs listed in CSC105 Graded Project 1 to create the flowchart. Write your pseudocode in a plain-text editor such as Notepad or TextEdit and save as a text file (*.txt). 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.----------------------------------------------------------------------------------------------My coding (its in pseudocode)Module Main()// Create a new car objectSet car = new Car(2022, "Tesla")Call accelerate(5)End ModuleModule accelerate(Interger times) If times > 0 Then Display " The car has increased its speed by 5" Display "The vehicle's current speed is " + speed; getSpeed() Call accelerate (times - 1) End ifEnd ModuleModule Main()Call brake(5)End ModuleModule brake (Interger times) If times > 0 Then Display " The cars brake has been Increased by 5" Display "The vehicle's current speed is " + speed; getSpeed() Call brake(times - 1) End IfEnd Module----------------------------------------------------------------Thank you!