CpSc 246
Introduction to Object Oriented Programming

15 Points


The objective of this assignment is for you to learn to correctly define a class, implement methods, and and test the defined class. We will work on this in class.

Define a class named Treadmill that contains the appropriate data members and methods. The class must have these private data members

The class must have these public methods Compare the format of your code to rational number code
In addition, these constructors must be provided:

In order to test your class, create a main with three test treadmills:

Output from printTreadmill should include the 3 data members with associated verbage. For example:
Treadmill with maximum speed of 7.5 mph and maximum incline of 12.5
Client has burned 100 calories