Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write an assembly language program (windows32) The main procedure should prompt the user to enter 15 integers between the values of-100 and 100 inclusively, one

image text in transcribed
Write an assembly language program (windows32) The main procedure should prompt the user to enter 15 integers between the values of-100 and 100 inclusively, one at a time. The main procedure should store these values into an array in the ordered entered as they are entered. .Only after the array has been populated should the main procedure then display the contents of the array, in the order they were entered, all in one single output. Then the main procedure should traverse the array. For each element in the array, the value and it position in the array (its index value) should be passed to a procedure called positionalMath. This procedure should do the following: If the value is even, then multiply this value by its index position plus one. Otherwise, if the value is odd, divide this value by its index position plus one. (For instance, if the value passed is 8 and the index position passed is 5, then the procedure should multiply 8 and 6 and obtain the value 48. If the value passed is 9 and the index position passed is 0, then the procedure should divide 9 by 1 and obtain the value 9.) The procedure should return this new value The main procedure should receive this new value and overwrite the original value with this new value. Once all the values in the array have been processed, the main procedure should display the contents of the array again, all in one single output

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

Intelligent Image Databases Towards Advanced Image Retrieval

Authors: Yihong Gong

1st Edition

1461375037, 978-1461375036

More Books

Students also viewed these Databases questions

Question

Using Language That Works

Answered: 1 week ago

Question

4. Are my sources relevant?

Answered: 1 week ago