Students particularly those in elementary school sometimes


Students, particularly those in elementary school, sometimes have to make a line such as "I will not chew gun in class." on the board a number of times. Modernize this process. The program will interactively ask the user for the message and the number of times it must be written, and then write the message to the screen the required number of times. Display 20 lines on the screen and stop until the user wants another screen's worth. The lines should be numbered. For example, if the user wants to write the message "I will not chew gum in class." 100 times. Then, the program must write the message to the screen 20 times, numbered 1 through 20, and stop. When the user wants another screen's worth, the program must write the message to the screen 20 more times, numbered 21 through 40, and stop. So on and so forth until the message has been written 100 times to the screen

Use SCREEN SECTION to capture the message, as well as the number of times to write the message, and to display the output to the screen. For this assignment extended ACCEPT and DISPLAY statements ARE NOT ALLOWED.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Students particularly those in elementary school sometimes
Reference No:- TGS02674303

Now Priced at $10 (50% Discount)

Recommended (91%)

Rated (4.3/5)