Question: C++ programming assignment...please read entirely and carefully! The Chameleon is an animal that can change color. Most people believe that the chameleon changes color to

C++ programming assignment...please read entirely and carefully!

The Chameleon is an animal that can change color. Most people believe that the chameleon changes color to match its environment. Actually, his color is controlled primarily by temperature and emotional state. Examine the state diagram and then write a C++ program that models the diagram.

Design a Chameleon class.

Write a class method to process each type of event. Note that in the diagramtempis both an event and a guard variable. This is a challenge we did not have in class with the Stapler example.

Invoke event methods through an array of function pointers.

Use functionmainas a driver. Prompt the console for event number.

After processing each event, output the current state, color, and temperature of the chameleon.

Submissions that are function correctly, but do not follow the design guidelines will receive a grade of 85.

Please look at the included pictures to see the UML and output picture.

Submissions that do not compile will receive a grade of 0.

Submissions that are function correctly, but do not follow the design guidelines will receive a grade of 85.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!