Question: Write a program that displays the word UP on the bottom line of the screen a couple of inches to the left of center and

Write a program that displays the word UP on the bottom line of the screen a couple of inches to the left of center and displays the word DOWN on the top line of the screen a couple of inches to the right of center. Moving about once a second, move the word UP up a line and the word DOWN down a line. when the word UP reaches the top row (row 0), it should re-appear on the bottom row of the screen. Similarly, when the word DOWN reaches the bottom row, it should re-appear on the top row of the screen. Have the two words traverse the screen three times before the program terminates. Hint: You'll need to include the windows.h header file. Use the SLEEP function contained in windows.h. It takes a single int argument which is the number of milliseconds to delay
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
