Question: 5 . 1 1 HOMEWORK PROBLEMS 5 . 1 Work with a DVD player and develop an exhaustive set of events that you think the
HOMEWORK PROBLEMS
Work with a DVD player and develop an exhaustive set of events that you think the software
must sense and respond to
Identify the events and draw an STD for the behavior of a DVD player. Limit yourself to the
events generated by the DVD player ignore the remote control
Given a function GetRoomTemperature that returns the room temperature and a variable,
SetPoint, write a pair of functions in pseudocode called IsTemperatureTooHot and IsTemper
atureTooCool that return TRUEFALSE values and together implement a hysteresis band
around the SetPoint temperature.
Work with an answering machine to develop the list of events that the machine's software must
respond to
You are writing code to implement cruise control for a car. Given a function GetVehicleSpeed
that returns the speed of a vehicle, write a single function TestAccelDecel in pseudocode that
returns, NeedAccelerate, NeedDecelerate, or SpeedOK based on the speed relative to a set
point DesiredSpeed. To provide noise immunity, implement hysteresis around the switch point.
In an application, the state of a switch is determined by reading a variable called PortA. The state
of the switch is indicated by the state value of bit within the byte variable PortA. In pseudo
code, write an event checking function TestSwitch that returns Opened, Closed, or NoChange
depending on what has happened since the last time TestSwitch was called.
Work with a microwave oven to develop the list of events that the oven's software must respond to
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
