subject

The ice cream kiosk has a set of freezers for storing ice cream. If a freezer malfunctions, then Margaret needs to be informed. • The perfect temperature for storing ice cream is -18°C. • A permissible temperature tolerance is plus or minus one degree Celsius. • An output message must be displayed to show the number and temperature of any freezer falling outside tolerance. • The output message for each freezer must be on a single line. • No other messages should be displayed. • A global data structure holding the temperatures is provided and must be used as part of the solution. SET freezers TO [-20, -19, -18, -17, -16, 0, 1] • The solution should work even if the number of freezers in the data structure is changed. An example output is shown. Freezer 0 is out of tolerance: -20 Freezer 4 is out of tolerance: -16 Freezer 5 is out of tolerance: 0 Freezer 6 is out of tolerance: 1 Write an algorithm to inform Margaret if any of the freezers are faulty.

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:10, AleciaCassidy
Consider a direct-mapped cache with 216 words in main memory. the cache has 16 blocks of 8 words each. it is a word-addressable computer (rather than a byte-addressable computer which we normally discuss). (a) how many blocks of main memory are there? (b) what is the format of a memory address as seen by the cache, that is, what are the sizes of the tag, cache block, and block offset fields (if they apply)? (c) to which cache block will the memory reference db6316 map?
Answers: 1
image
Computers and Technology, 22.06.2019 17:00, juandguardado7045
Your company has 1,500 desktop computers running windows 7. you want to upgrade them to windows 10. which type of microsoft license would be best suited in this situation?
Answers: 3
image
Computers and Technology, 23.06.2019 06:00, sebcbal
When is a chart legend used a. all the time b. whenever you are comparing data that is the same c. whenever you are comparing multiple sets of data d. only for hand-drawn charts
Answers: 2
image
Computers and Technology, 24.06.2019 19:20, maehardy4134
Kiesha has a worksheet with a range of cells using the following columns: name, score, group, study group, and date. kiesha needs to sort the worksheet on the date field. which option she use to most efficiently complete this task ? a use the cut and paste option to reorganize the data to fit that order b use the filter function to organize the data based on the date c use the order function to organize the data based on the date d use the sort function to organize the data based on date order
Answers: 3
You know the right answer?
The ice cream kiosk has a set of freezers for storing ice cream. If a freezer malfunctions, then Mar...

Questions in other subjects: