Question: Write an Assembly Program to work with an array of 10 integers, allowing the user to remove or edit values and see the result. When
Write an Assembly Program to work with an array of 10 integers, allowing the user to remove or edit values and see the result. When exiting, the program computes the sum and product of the remaining values. The menu of options is as following:
"Please enter 10 integer values: " // ask the user for initial input of the array
"Menu (enter an int as your choice): "
("1) Replace an element at a certain position") // ("What position from the array do you wish to replace? ") ;("What value to you want to change it to? ") --> Then print out the new array
("2) Remove the max element ") // Then print out the new array
("3) Remove the min element ") // Then print out the new array
("4) Compute values and exit ") // ("The summation of all values in the array is: " + sum + ", the product of all values in the array is: " + product) --> to print out the sum and product, and exit the program
("What would you like to do? ");
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
