Question: ( 1 ) Create a masm program, LP 1 A to prompt the user to enter a number between 1 and 9 . Write a

(1) Create a masm program, LP1A to prompt the user to enter a number between 1 and 9. Write a nested loop to print the
numbers as follows:
For e.g. if the user entered 9, then the output would be:
Enter a value for length: 9
123456789
12345678
1234567
123456
12345
1234
123
12
1
You must create a procedure that prompts the user for input. You must create a procedure to output the numbers as required.
How are any arguments passed to the procedures?
(2) Create masm program, LP1B to prompt the user to enter a number between 1 and 9. Write a nested loop to print the
numbers as follows:
For e.g. if the user entered 9, then the output would be:
Enter a value for length: 9
1
12
123
1234
12345
123456
1234567
12345678
123456789
You must create a procedure that prompts the user for input. You must create a procedure to output the numbers as required.
How are any arguments passed to the procedures?
(3) Create masm program, LP1C to prompt the user to enter a number between 1 and 9. Write a nested loop to print the
numbers as follows:
For e.g. if the user entered 9, then the output would be:
Enter a value for length: 9
111111111
222222222
333333333
444444444
555555555
666666666
777777777
888888888
999999999
You must create a procedure that prompts the user for input. You must create a procedure to output the numbers as required.
Use a different method to pass arguments from (2) to the procedures?
(4) Modify the printLet procedure explained in class to print a Letter, followed by a Digit. Start with '0'.
So, the out put would be A0 B1 C2 D3... etc.
What happens after you reach digit 9?

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 Programming Questions!