Question: Write an assembly program makes the following: 1- Gives the following output when it starts (a menu for choosing 1 of the given options): 2-

Write an assembly program makes the following: 1- Gives the following output when it starts (a menu for choosing 1 of the given options): 2- If A is chosen, then the program acts this way: After program execution as shown above the program waits for a key press from the user. When a key is pressed, control returns back to the main menu to allow the user make more choices or exit the program. A: Convert a small English letter character (a-z) to capital letter (A-Z) B: Enter your name into an array and print it vertically and Horizontally in the opposite order: C: Enter 10 array elements (numbers from 0 to 4) then find how many times an element of your choice exists in the array D: Exit the program. Enter an English small letter character (a-z): b The letter is: B 3- If B is chosen, then the program acts this way: After finishing execution as shown above the program waits for a key press from the user. When a key is pressed, control returns back to the main menu to allow the user make more choices or exit the program. Reads the characters of your name (character by character) . stores them in an array. Changes the order of entered characters by using the stack. Then prints the name in an inverted order For example: if I enter my name in the following order .. Enter a character: N Enter a character: A Enter a character: S Enter a character: S Enter a character: E Enter a character: R The output will be: R E S S A N RESSAN 4- If C is chosen, then the program acts this way: After finishing the execution as shown above the program waits for a key press from the user. When a key is pressed, control returns back to the main menu to allow the user make more choices or exit the program. 5- If D is chosen, then the program terminates and returns control to operating system: The program should ask the user to enter 6 digits and stores the entered digits in an array. Digits to be stored in the array are limited to values from 0 to 4 only. If other values (rather than from 0 to 4) are entered, an error message should appear and asks for inputting another correct value. The wrong entered value will not be stored in the array. After finishing the right entry of the 6 elements, the program will ask the user for inputting a digit between 0 and 4 to give an input how many times this digit has been entered by the user . Example : Enter a digit between 0 and 4: 3 Enter a digit between 0 and 4: 4 Enter a digit between 0 and 4: 2 Enter a digit between 0 and 4: 3 Enter a digit between 0 and 4: 4 Enter a digit between 0 and 4: 6 Wrong entry Enter a digit between 0 and 4: 3 What number do you want to count: 3 Number of appearance: 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!