Question: The code doesn't work. Need to show the max number and minimum number. If type 0 then it's min and 9 is max. Please give

The code doesn't work. Need to show the max number and minimum number. If type 0 then it's min and 9 is max. Please give all the code.  The code doesn't work. Need to show the max number and
minimum number. If type 0 then it's min and 9 is max.

Lab 2 Given an array that has 5 float numbers, find the max and min numbers. Use "for" and "if/else" statements. (note: not 2 'for loops) Display the max number on serial monitor when '9' is typed in the serial monitor; and display the min number when '0' is typed. Display a warning message if any other number or letter is typed. IS Functions used: Serial.available, Serial.read, Serial.printlrn EMT2461 Dr. L

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!