Car Class
Write a C++ program that create a class named Car that has the following private member variables:
In addition, the class should have the following constructor and public member functions:
In the main function, create a Car object and display Car object’s model, make, and speed, and then calls theacceleratefunction five times, and then callpressbrakefunction two times. After calls to those member functions, get the current speed of the car and display it.
After writing the code for each problem, debug and test your program to make sure there is no syntax and logical errors. Create a testing report to show at least two testing cases and program outputs
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here