Question: Write an ASM program which: ( USING BASIC LEVEL ASM ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
Write an ASM program which:USING BASIC LEVEL ASM
Fills in an array Vector with at most signed doubleword integers from the keyboard;
Computes the sum of all the negative values in Vector;
Counts the number of all the positive values in Vector;
Finds the minimum value between position I and position of Vector;
Checks whether Vector is a palindrome or not
Your program will display the following interaction with you things in reds are your inputs
What is the size of Vector?
What are the values in Vector?
Size of Vector is
The sum of all the negative values in Vector is: Sum
The number of all the positive values in Vector is: Count
Please give me two values I and such that
and and
The minimum value between position and of Vector is: Minimum
Vector is a palindrome because it reads the same way in both directions.
Repeat with a new Vector of different size andor content?
If is negative, the program should display "Size must be positive or zero" and
prompts you for Nagain.
If or or I, or or I or the program should display "Invalid I or
and prompts you for I and again.
If Vector is not a palindrome, the program should display "Vector is NOT a palindrome".
The program repeats again from the first prompt if you type to the last question, otherwise it exits.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
