Show how the Environmental Control pattern could be used as the basis of the design of a system to control the temperature in a greenhouse. The temperature should be between 10 and 30 degrees Celsius. If it falls below 10 degrees, the heating system should be switched on; if it goes above 30, the windows should be automatically opened.

What will be an ideal response?





Again there are several possible answers here. Students will often over-complicate


the diagram by considering situations such as too cold and ventilator open. It is best


to have a simple diagram as shown here + a separate table showing the signals to


be produced.


Computer Science & Information Technology

You might also like to view...

You can click the Line button on the ____ tab to draw a line on a report.

A. Standard B. Formatting C. Toolbox D. Design

Computer Science & Information Technology

Write a program called myrm that takes as arguments the names of files to be removed. If the global variable MAXFILES is set, take it as the maximum number of files to remove without question. If the variable is not set, use 10 as the maximum. If the number of files to be removed exceeds this count, ask the user for confirmation before removing the files.

$ ls | we -l 25 $ myrm * Remove them all Remove 25 files (y/n)? n files not removed $ MAXFILES=l00 myrm * $ ls $ All files removed If MAXFILES is set to zero, the check should be suppressed.

Computer Science & Information Technology

Most newer computer languages are unstructured and use syntax that lets you deal efficiently with sequence, selection, and looping.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

A section break separates a document into two sections that can be ________ separately

Fill in the blank(s) with correct word

Computer Science & Information Technology