Question: Its assembly language MEXAM (A) FALL 2017 A weather station has two temperature sensors, Sensor A an ends of a town. Each h Sensor A
MEXAM (A) FALL 2017 A weather station has two temperature sensors, Sensor A an ends of a town. Each h Sensor A and puts the value in a 24 element byte any o uts the value in time it reads an 8-bit temperature va element byte array called TEMPB. After 24 hours, the control program calis a procedure to generate a rounded average for each pair ot h the returned average in a third 24 byte array called rounded average for each p a pair of values to a procedure that does the actual computation. The procedure passes each hourly average back to the mainline to be put in the TEMPAV array 3A d Sensor B, at opposite our a control program reads an 8-bit temperature value from y called TEMPA. At the same TEMPAV. To compute th air of hourly temperatures, the mainline program passes o, if an average value is 32 degrees or less, the procedure will wrte a value of OxEF to a memory location called FREZWARN, The averages for the past 24 hours and, if appropriate, a Freeze Warning will be shown on the evening weather report. Is 7a. Using STANDARD PROGRAM STRUCTURES shown in Chapter 3, write the ALGORITHM for the mainline section of the program. Include the steps required to pass the required parameters to the procedure, call the procedure for each pa vorogovalue in the TFMPAV array. Assume the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
