Question: 3 . 5 Lab 5 Calculator ( UART Application ) Lab Objectives To apply knowledge on the use of serial ports gained in lab 4
Lab Calculator UART ApplicationLab Objectives To apply knowledge on the use of serial ports gained in lab to solve adesign problemProblemYour group needs to develop a simple calculator program. Unlike theprevious labs, this lab will be done in C to provide some insight into howhigher level languages operate on microprocessors. The calculator will usethe serial routines from lab to handle the data input and output interfacewith the user. All code for this program can only use base C instructions andthe functions developed in lab Use of other libraries, for examplestring.h stdlib.h and stdio.h is prohibited in the solution of thisproblem.It can be useful to approach the problem it functionality tiers. Each tier isslightly more advanced than the previous one.For tier the calculator needs to take in fourdigit numbers separated bya plus sign and return the answer after an equals sign.Examples: User enters, Program returnsNotice that the user is always entering four digits, even for values less than Also, notice the result is always five digits. The four digit decimalvalues have a range of to giving the range of the sum to be to For tier functionality is removing the need to enter the leading zeros.Examples:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
