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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started