Just need a little help about how to approach this problem for my high school C-Club Case Competition about Scrolling text:
Your program should update the screen once a second as follows:
When your program first starts it should display the first character of your message, in the right-most position of the display (position 7).
After one second it should update the display by scrolling your message one character to the left (i.e. first character at position 6, second character at position 7).
Your program should continue to update the display by scrolling your message one character per second until it has completely scrolled off the left end of the display.
Once your message has scrolled off the display, your program should start again at the first step above, i.e. first character at position 7.
Your program should continue this process until you quit the program.
As an example, suppose your message is "dog". The following would appear on the screen, where each column is the corresponding position on the screen, and each row represents the updated screen after one second has elapsed:
Note that "dog" is not a valid message - while all the letters can be displayed on the screen, it does not meet the minimum length requirement.Code:d do dog dog dog dog dog dog og g -- note a completely blank display here for 1 second -- d do dog dog -- etc--