Program 1: Simon Says

(Due beginning of class Mon. Oct. 6, 1997)

Write a C++ builder program that allows a user to play the "Simon Says" game. The game tests the player's skill at remembering a sequence of numbers by displaying longer and longer sequences of numbers. The game stops when the player misses a number or when the player can correctly remember a sequence of seven numbers.

Your program will allow the user to start the game by pressing a button. The program should then display one random number. If the player correctly repeats the number, your program will then display two random numbers and continue until the player misses a number or correctly remembers a sequence of seven numbers. The player should also be allowed to stop the game at any time.

You will need to decide on the appearance of the game, how long the numbers will be displayed and how the numbers will be displayed. Be creative.

You will need to use the Randomize function to insure that each game will be different and the function Random to insure that each number generated is random. [Use the C++ Builder help screens for assistance and examples]

BONUS 1 (5 pts): Use large colored buttons instead of numbers.

BONUS 2 (5 pts): Add sound to your program.

REMEMBER THAT THIS IS AN INDIVIDUAL ASSIGNMENT. I DO NOT WANT TEN COPIES OF THE SAME PROGRAM. WORK BY YOURSELF.


Program 2: Towers of Hanoi

(Due beginning of class Fri. Oct. 31, 1997)

The Towers of Hanoi puzzle tests the user's skill at moving a sequence of disks from one platform to another. You can only move one disk at a time and you can only place a smaller disk on top of another. A simple version of this program is available on the CS350 share drive on JARING. You are to take this version and improve it by:

  1. Create a user interface that asks the user if they want to play the game before displaying the game.
  2. If the user succeeds in solving the puzzle, your interface should display the number of moves it took to complete the puzzle and the amount of time taken to complete the puzzle.
  3. The user should have the option of quitting the puzzle at any time.
  4. If the user requests, you should display the correct solution to the Towers of Hanoi puzzle for the specified number of disks. <
  5. Allow the user to select the number of disks to start with.
  6. Document any problems you encounter with this program.

REMEMBER THAT THIS IS AN INDIVIDUAL ASSIGNMENT. I DO NOT WANT TEN COPIES OF THE SAME PROGRAM. WORK BY YOURSELF.


Program 3 : Developing a Database Application for Best Byte Computer Store

You have been asked by BBCS to develop a prototype front-end program for some of their database applications. Your prototype will use two tables, Clients and Salespersons [located in the C350/PROGRAM3 directory on JARING]. Your prototype should allow the user to

  1. Add or view clients,
  2. View the list of salespersons,
  3. Print the following reports:
    1. List of all clients
    2. List all salespersons
    3. List all clients for each salesperson

Note 1: a user might want to view both the client table and the salesperson table simultaneously.

<

BBCS would like to have your prototype completed by Nov. 24, 1997. They expect a copy of the program to preview the screens as well as printed copies of the reports generated by your prototype.

REMEMBER THAT THIS IS AN INDIVIDUAL ASSIGNMENT. I DO NOT WANT TEN COPIES OF THE SAME PROGRAM. WORK BY YOURSELF.