Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write an 8086 Assembly code that will ask the user to enter 6 numbers (between 0 and 9) and then perform some arithmetic operations on

Write an 8086 Assembly code that will ask the user to enter 6 numbers (between 0 and 9) and

then perform some arithmetic operations on them. The program will work as follows

Please enter number 1 : 6

Please enter number 2: 17

The number you entered is not in the range from 0 to 9

Please enter number 2: 4

Please enter number 3: 1

Please enter number 4: 8

Please enter number 5: 2

Please enter number 6: 9

Thank you for entering all numbers,

Please select the operation you need (v, x, n, d, a, e, s, l, q, r or ? for help): ?

v for average

x for max

n for min

e for standard deviation

a to show numbers in ascending order

d to show numbers in descending order

s summation of all numbers

l for all of the above

q to quit

r to enter 6 new numbers

? for help

Please select the operation you need (v, x, n, d, a, e, s, l, r or ? for help): x

The max number is 9

Please select the operation you need (v, x, n, d, a, e, s, l, r or ? for help): s

The sum of all numbers is 30

Please select the operation you need (v, x, n, d, a, e, s, l, r or ? for help): l

The average is 5

The max number is 9

The min number is 1

The standard deviation is 2

Numbers in ascending order 1,2, 4, 6, 8, 9

Numbers in descending order 9, 8, 6, 4, 2, 1

The sum of all numbers is 30

Please select the operation you need (v, x, n, d, a, e, s, l, r or ? for help): j

Unrecognized character

Please select the operation you need (v, x, n, d, a, e, s, l, r or ? for help): q

Plz solve it with full code and explainanes

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

Professional IPhone And IPad Database Application Programming

Authors: Patrick Alessi

1st Edition

0470636173, 978-0470636176

More Books

Students also viewed these Databases questions

Question

6. Identify seven types of hidden histories.

Answered: 1 week ago

Question

What is the relationship between humans and nature?

Answered: 1 week ago