Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Keil uVision5 software: Using ARM Sample format: Your assignment is to write A WORKING CALCULATOR project. The specifications of the project are as follows

Using Keil uVision5 software: Using ARM

image text in transcribed

Sample format:

image text in transcribed

Your assignment is to write A WORKING CALCULATOR" project. The specifications of the project are as follows * Numbers are represented as unsigned integer * Only the basic four math operations +, -, *, and / are provided. . Division by zero is not allowed. It will give an error message. The user may keep repeating the program by entering Y'. The main part of the calculator program calls a number of subroutines to perform its job These subroutines are GETNUM GETOP Get a number from the user and save it in the memory Get a math operation from the user. The math operation entered by the user is stored in MATHOP. Users do not have to enter carriage return to enter their choice. Perform the desired math operation and display the result. MATH A sample run of the program should look like Hello there! Welcome to the Calculator Project! Please enter the first integer: 4 Please enter the second integer: 2 Please enter your desired MATH operation: + Sum of NUMI and NUM2 is: 6 Would you like to continue (YIN): Y Hello there! Welcome to the Calculator Project! Please enter the first integer: 4 Please enter the second integer: 0 Please enter your desired MATH operation: / Divide by O ERROR occurred. Would you like to continue (YIN): N Thanks for your time! Byeeeeeeeeeeee! Your assignment is to write A WORKING CALCULATOR" project. The specifications of the project are as follows * Numbers are represented as unsigned integer * Only the basic four math operations +, -, *, and / are provided. . Division by zero is not allowed. It will give an error message. The user may keep repeating the program by entering Y'. The main part of the calculator program calls a number of subroutines to perform its job These subroutines are GETNUM GETOP Get a number from the user and save it in the memory Get a math operation from the user. The math operation entered by the user is stored in MATHOP. Users do not have to enter carriage return to enter their choice. Perform the desired math operation and display the result. MATH A sample run of the program should look like Hello there! Welcome to the Calculator Project! Please enter the first integer: 4 Please enter the second integer: 2 Please enter your desired MATH operation: + Sum of NUMI and NUM2 is: 6 Would you like to continue (YIN): Y Hello there! Welcome to the Calculator Project! Please enter the first integer: 4 Please enter the second integer: 0 Please enter your desired MATH operation: / Divide by O ERROR occurred. Would you like to continue (YIN): N Thanks for your time! Byeeeeeeeeeeee

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

8th Edition

013460153X, 978-0134601533

More Books

Students also viewed these Databases questions

Question

How wide are Salary Structure Ranges?

Answered: 1 week ago