Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assembly language x86 Write a complete program that: 1. Prompts the user to enter 5 numbers then 5 letters. 2. Saves the numbers to a

Assembly language x86

Write a complete program that: 1. Prompts the user to enter 5 numbers then 5 letters. 2. Saves the numbers to a 32-bit integer array, numArr. 3. Saves the letters to charArr where each element reserves one byte. 4. Prints the numbers and letters. 5. prints the mean of the number array,numArr 6. copy all the elements from the numArr and the charArr to a quadword array, newArr in a reverse order. where each qword in newArr contains a letter that occupies 4 bytes and a number that occupies 4 bytes, 7. Prints out the newArr. 8. dumps out the memory for each array. This is done for you. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; You MUST use loop and indirect addressing. You MUST use the SIZEOF, TYPE, and LENGTHOF operators to make the program as flexible as possible if the arrays' size and type should be changed in the future. NO IMMEDIATE NUMBERS AT ALL IN THE CODE SEGMENT. Add comments to make your program easy to read. Your lines must not exceed 80 columns. Look at the sample run for clarification. Don't delete anything already written for you. Copy paste 2 of your runs and paste them at the end of your code

Peer review:if you deduct any points from your classmate assignment, make sure to add some explanation to the rubric.Failing to do so will result in losing some points on your assignment.

sample run:

Please enter a number: 3 Please enter a number: 55 Please enter a number: 6 Please enter a number: 7 Please enter a number: 3 The integer array you entered is: 3 55 6 7 3 Please enter five characters: The characters you entered are: a l a m e The mean of the integer array is: 14 4/5 The elements in the new array are: e3 m7 a6 l55 a3 Dumping out charArr Dump of offset 00406040 ------------------------------- 61 6C 61 6D 65 Dumping out numArr Dump of offset 00406045 ------------------------------- 00000003 00000037 00000006 00000007 00000003

Dumping out newArr

Dump of offset 00406145

-------------------------------

00000065 00000003 0000006D 00000007 00000061

Dump of offset 00406159

-------------------------------

00000006 0000006C 00000037 00000061 00000003

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

Understanding Oracle APEX 5 Application Development

Authors: Edward Sciore

2nd Edition

1484209893, 9781484209899