Schedule‎ > ‎

Lab 17: Class Car

1)  Create 3 files using the tabs in the Arduino IDE:  car.ino,  car.h and car.cpp
2)  You will create a Class Car,  following the example of the Class Student from the 12A Slides Ex. 1:  click here for a copy
3)  Start with the cars.h file.  Give your class car some information to store like:  Make, model, year, etc. 
4)  Your class must have at least 2 constructors.
5)  Your class must have at least 2 "Get" member functions.
6)  Your class must have at least 2 "Set" member functions.
7)  In cars.ino,  Create at least 3 instances (objects) of Class Car.  They may not be the same Make & model.  
8)  Use 2 of your Set functions to change something about one of your objects.
9)  Print out information you have stored for all 3 instances of your Class Car.
pp,
Submit all 3 files to Canvas.  Zip up all 3 files before submitting.
Points:  20 points - 2 points per instruction above, plus 2 points for header & method/function headers.




Comments