Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Big Data Concepts, Theories, And Applications

Authors: Shui Yu, Song Guo

1st Edition

3319277634, 9783319277639

More Books

Students also viewed these Databases questions

Question

these are all multiple choice: approximately 2.234

Answered: 1 week ago

Question

Explain the factors influencing wage and salary administration.

Answered: 1 week ago

Question

Examine various types of executive compensation plans.

Answered: 1 week ago

Question

1. What is the meaning and definition of banks ?

Answered: 1 week ago

Question

2. What is the meaning and definition of Banking?

Answered: 1 week ago