
Ross Sheppard High School
Computer Programming 20
Student Learning Guide
The Code Challenge
This project is intended to challenge your
programming skills and provide you with the opportunity to learn some programming troubleshooting skills. Learning
to troubleshoot is a skill that will be very valuable to you as you develop as a programmer. You may need to consult
books, your peers, or use the Internet resources on our Visual Basic
Link Page to get help.
- Copy the folder called Code Challenge from the Handouts folder to your personal
drive.
- In the folder, you will find the CodeChallenge.exe file, which is a working version
of the program. Use this file to understand how the program should work.
- The purpose of this program is to test the user's memory. A card is selected,
and the user must find the matching card until all pairs are matched. At that point, the game is over.
- The original of this program was a properly working program. However, in this
copy, several typical programming errors have been made. It is your task to troubleshoot the program and get it
running properly.
- As you troubleshoot the program to correct the code, you must add comments for
every change you make and mistake you find. If you find an error in the code, write a comment describing the error
and comment out the line of code. Then re-write the code properly.
- If you find code that does not follow the naming conventions your have learned,
write a comment describing the error, comment out the code, and re-write the code using the proper conventions.
Rename the objects and procedures if necessary.
- Note that there are spelling errors in the program as well - you should correct
these.
- One final challenge - the program allows the user to double cick on a card to
get a match. See if you can write the code that will not permit the user to do this.
- Continue this process until the program runs without errors.
- When you have finished, send an e-mail to your teacher and ask your teacher to
mark the Code Challenge.
© 1998-2000 N.F. Mathew, EdD
File name: CodeChallenge.htm
Last updated on June 9, 2000