Question: Insert appropriate code comments in your source code. 2. Create procedures in the program Create two procedures, located in the correct position in the code

Insert appropriate code comments in your source code. 2. Create procedures in the program Create two procedures, located in the correct position in the code file. The first procedure should display a CR/LF character combination to move the cursor to the beginning of the next line. The second should accept multiple, digit-only input from the user. It should display an error message if the user presses any key outside 0 to 9. It should return the numeric value of the user input in the AX register. 3. Collect user input Prompt the user to input a character using this text: Enter a character to display ---> Collect a single character from the user. Be sure to echo the character so that the users sees what key they pressed. Prompt the user to input a number using this text: How many rows should display ---> Use the procedure you created for step 2 above to collect a number from the user. 4. Display user input Display the character selected by the user for the number of rows the user indicated, starting with one character and progressing to the last row. The output should produce a cascading effect on the console. mbmt1 Fig. 1 - Sample output 5. Hints Initialize your integer variables with zeros to help you find possible bugs in your code. Use a for loop for the line number count. It tests at the top of the loop so if the input is 0 then it will not run. Embed a second loop inside the loop that tracks line count with a loop that counts characters. Best is an automatic loop. Use only the BX and CX registers for loop control as the AX and DX registers get used to display characters.

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!