Design a class named Fan to represent a fan. The class contains:

Design a class named Fan to represent a fan. The class contains:

an int data field named speed that specifies the speed of the fan. A fan has three speeds indicated with a value 1, 2, 3.

A bool data field named on that specifies whether the fan is on.

A double data field named radius that specifies the radius of the fan.

A no-arg constructor that creates a default fan with speed = 1, on = false and radius = 10

The accessor and mutator functions for all the data fields.

NOTE: JUST CREATE fan.h and fan.cpp – no need to create the main.cpp – I just want to see the design of the class.

CIS/247 Week8
CIS247 Week 8
CIS 247 Week 8
CIS-247 Week

Use the order calculator below and get started! Contact our live support team for any assistance or inquiry.

[order_calculator]