feedback

(Solution document) 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...


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.

 







About this question:

Pay using PayPal (No PayPal account Required) or your credit card. All your purchases are securely protected by .
SiteLock