Thread: Case Competition Help !

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    3

    Unhappy Case Competition Help !

    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:

    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--
    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.
    Last edited by kashahyah; 04-08-2008 at 03:26 PM. Reason: wrong format

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Format Precision & Scale
    By mattnewtoc in forum C Programming
    Replies: 1
    Last Post: 09-16-2008, 10:34 AM
  2. Base converter libary
    By cdonlan in forum C++ Programming
    Replies: 22
    Last Post: 05-15-2005, 01:11 AM
  3. Creating pop up menus
    By Ti22 in forum C++ Programming
    Replies: 22
    Last Post: 01-18-2005, 09:27 PM
  4. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  5. Basic Data types continue
    By viryonia in forum C Programming
    Replies: 6
    Last Post: 03-10-2003, 10:21 AM