Question: 1. Create a 6 element array. 2. Prompt the user to enter 6 numbers to fill the array. 3. Exchange the number at position 2

1. Create a 6 element array.

2. Prompt the user to enter 6 numbers to fill the array.

3. Exchange the number at position 2 with the number at position 5 of the array. (Don't forget that the array positions are counted from zero, in our case 6 element array positions are counted 0, 1, 2, 3, 4, 5)

4. Display the array numbers one by one to show that you did the exchange correctly. Show messages like this:

"The number at position 0 is " and display the number,

"The number at position 1 is " and display the number, etc.

This way, your program user knows what each number represents.

** Program is written in Assembly language using the Irvine 32 library in Visual Studio 2019. **

Please include a comment along each line explaining it.

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!