Question
in 8086 assmbly asystem Write an assembly language program (windows32) that: Prompts the user to enter 15 integers between the values of -10 and 10
in 8086 assmbly asystem Write an assembly language program (windows32) that:
Prompts the user to enter 15 integers between the values of -10 and 10 inclusively, one at a time. The program should store these values into an array as they are entered.
Only after the array has been populated should the program then display the contents of the array, in the order they were entered, all in one single output.
Then the program should sort the array from smallest value to largest value. The smallest value must be at the address where the array starts. (You decide the sorting algorithm to use.)
Then the program should display the contents of the array again, in the new sorted order, all in one single output.
Then the program should search through the array and display all even values. These can be displayed one window at a time.
Notes:
Your program should guard against integers outside the required range. If the user enters an invalid number, your program should display an error message, and repeatedly ask for a new value until the user enters a valid number.
You MUST use exactly one numerical array. No more. Of course, you will have a string (or array of characters for the display). That's OK.
Your output should have message headers that are informative as to what you are displaying (e.g. "The array as entered", "The sorted array", etc.)
You MUST include ample, meaningful comments. Points will be deducted for hard to read code. Comments really help readability.
You MUST have a comment in the program, in the appropriate spot where the sorting code begins, indicating what type of sorting algorithm you are using. The algorithm you choose is up to you.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started