Write an assembly program that prompts the user to enter


Problem

Write an assembly program that does the following:

Prompts the user to enter the number of rows R and read it.

Prompts the user to enter the number of columns C and read it.

Prompts the user to enter a two-dimensional array of RxC unsigned integers. Elements of a single row should be separated by a single space and each row is read in a new line.

Print the entered array in a new line printing also its entered dimensions.

Prompts the user to enter a row number

Print the selected row.

Print the sum of the elements of the selected row.

Note: Do not use multiplication instructions in your solution.

A sample execution of the program is shown below:

Enter number of rows in the array: 3

Enter number of columns in the array: 5

Enter the array:

0 1 2 3 4

5 6 7 8 9

0 1 2 3 4

The entered 3x5 array is:

0 1 2 3 4

5 6 7 8 9

0 1 2 3 4

Enter a row number: 1

The elements of Row 1 are: 5 6 7 8 9

The sum of Row 1 = 35

 

 

Request for Solution File

Ask an Expert for Answer!!
Business Management: Write an assembly program that prompts the user to enter
Reference No:- TGS02780915

Expected delivery within 24 Hours