Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In assembly code Write a program to read user input. User input consists of a formula. It's just one line. No spaces WHAT SO EVER!!

In assembly code Write a program to read user input. User input consists of a formula. It's just one line. No spaces WHAT SO EVER!!
Examples of input:
1+1
2-1
3*2
42
Do not worry about remainders in division, or two digit multiplication results. Assume we're only dividing whole numbers and only multiplying numbers that result
in a result 9 or less.
Write a program to READ ONE formula only. Based on that formula, it will display the result.
So if I ran your code on
1+1
it should print
1+1=2
If I ran your code on 3**2
it should print
2**3=6
Remember, JUST ONE formula, NO SPACES in input so your variables are 1 byte long.In assembly code Write a program to read user input. User input consists of a formula. It's just one line. No spaces WHAT SO EVER!!
Examples of input:
1+1
2-1
3*2
4/2
Do not worry about remainders in division, or two digit multiplication results. Assume we're only dividing whole numbers and only multiplying numbers that result in a result 9 or less.
Write a program to READ ONE formula only. Based on that formula, it will display the result.
So if I ran your code on
1+1
it should print
1+1=2
If I ran your code on 3*2
it should print
2*3=6
image text in transcribed

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_2

Step: 3

blur-text-image_3

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

Joe Celkos Data And Databases Concepts In Practice

Authors: Joe Celko

1st Edition

1558604324, 978-1558604322

More Books

Students also viewed these Databases questions

Question

18 Impact of total rewards on recruitment and retention.

Answered: 1 week ago

Question

Provide examples of Dimensional Tables.

Answered: 1 week ago