Question: can have it print out yellow or red. using c++ notes given The temperature readings of two furnaces are being monitored by a microcontroller. A


can have it print out yellow or red. using c++ notes given


![five readings from the second furnace is stored in x21]. Each reading](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f2f28499cdb_82866f2f2840c196.jpg)
The temperature readings of two furnaces are being monitored by a microcontroller. A set of five readings of the first furnace, recorded by five thermal sensors, is stored in array x1[). A corresponding set of five readings from the second furnace is stored in x21]. Each reading from the first set is expected to be higher than the corresponding reading from the second set. For example, the temperature reading at x1[0] is expected to be higher than the temperature reading at x210]. 3. Write a program to check whether each reading from the first set is higher than the corresponding reading from the second set. If all readings from the first set are higher than the corresponding readings from the second set, turn on the yellow LED. If any one of the readings of the first set is lower than the corresponding reading of the second set, stop the process and turn on the red LED as an Emergency signal. Trail Data Set 1: 82, 89, 78, 81, 87 Set 2: 71, 78, 79, 82, 77 Lesson 8: Advanced features of arrays Reading in an Array coute>a [i] ; Printing Out an Array for(i-0; ikenum_ elements-1; i++) cout "max) max=a [i] ; 61 LINEAR SEARCH It is used to find out whether a given number is present in an array and if it is present then at what location does it occur. Here we implement a sequential search. You continuously compare each element until it is found or the list ends. // Input the array cout>search; // Make a function call position linear search (array, n, search) ; //After function call if (position1) cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
