The program is to input the number character-by-character


Write an Arduino program that requests a floating point number from the user console that is between -1000 and 1000. The program is to input the number character-by-character and then assemble them together so that the original number is put into a floating point variable and displayed back to the monitor.

1. Do the computing in a function that is passed the floating point number. The number should be passed from the main function. 

2. A check should be made to see if the number is in the appropriate range.

3. This should be done using the Serial.read() command. (The comparable C command is gets()).

4. The program is intended to be used in a larger program that receives the floating point number from the console to be used within the Arduino program.

 5. Carefully comment your code.

6. Suggest ways to make the code more efficient.

Request for Solution File

Ask an Expert for Answer!!
Electrical Engineering: The program is to input the number character-by-character
Reference No:- TGS0566726

Expected delivery within 24 Hours