Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions

Question

Question Can a Roth IRA invest in stock of the IRA owners business?

Answered: 1 week ago