PROGRAMMING LANGUAGE: Arduino C

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

PROGRAMMING LANGUAGE: Arduino C

Post by answerhappygod »

PROGRAMMING LANGUAGE: Arduino C
Programming Language Arduino C 1
Programming Language Arduino C 1 (128.8 KiB) Viewed 62 times
Read a simple mathematical expression (e.g. 24 * 55) in a null terminated string from the terminal • Parse the input and perform calculations Check that the number can be displayed as an unsigned 10-bit integer Print an error if the result will not fit. Display the result in binary on bar graph. • If the result of the calculation is an even number print out the result in decimal and binary with a message telling the user the number is even • If the number is odd print out the result in decimal and binary with a message telling the user the number is even Submission Requirements Submit the working and commented sketch of your program as 108_A1_firstname_surname.ino • The Loop() should contain only function calls. Put all the functionality you need into separate functions and pass the parameters as you need them. Do not use Global variables Use global constants or arrays of constants as required. You can use a global array for reading the terminal input if required. Building your solution on code from stack overflow or other sources is ok as long as you cite the source in the comment and that you clearly understand how it works.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply