Question: 2 (45 pts) Work Programming Exercise 9.2 (elass Fan) in the texthook on page 367. Additional specifications: Use separate header and implementation files. The main
2 (45 pts) Work Programming Exercise 9.2 (elass Fan) in the texthook on page 367. Additional specifications: Use separate header and implementation files. The main program (not the functions) should display the values of Speed, On, and Radius after calling the functions. nto eccosar ler and nuiater cel tactins foraOn, nd Radius). This means the following functions should be included o getSpeed) o geton(O: o getRadius o setSpeed); o setOn o setRadius() Run the program for the test case described in the textbook and add a 3rd fan object that uses the default values assigned by the constructor. The program should use the accessor functions to display Speed, On, and Radius for all 3 fan objects . Turn in printouts of o o o o o The main function The class implementation file The class header file The program output The class diagram (UML diagram)-create this in Word or Excel
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
