![]() |
New Mexico Supercomputing Challenge | ||||||||||
|
|||||||||||
|
|
Cryptography - Part I: Basic C++ Phase I: Editing and Compiling Phase III: Beginning Programming
Phase I: Editing and Compiling This phase of the project is intended to introduce the participant to the basic C++ programming environment on the Challenge servers. Note: Helpful (but not necessary) instructions are in italics.
Phase II - Understanding C++ Congratulations on finishing the previous milestone. Not challenging enough? Well, here's something that should keep you busy for a while... The objective of this milestone is to get you thinking about the various parts of C++ code: variables, functions, arrays, and comments. You will be given a C++ program for decoding the enciphered text that was generated in the previous phase. The code looks daunting, but with extensive and creative analysis of the code, you should be able to advance to the next step. Note: Helpful (but not necessary) instructions are in italics.
Hints 1. Don't try to do the code in one complete analysis. Break up the code by functions and loops, then assign each team member a piece of code to analyze. 2. If you understand a function or other piece of code, comment it. Put in comments into the code so that others looking at your work will understand what's going on. 3. This is not a closed book affair. Use books, the Internet, and other resources to help you in this task. If you already understand all of this without looking up anything, you should not be in this Challenge category. 4. This is difficult stuff. If you find yourself going nuts, take a break. Many things do not become apparent on the first look. 5. If you are questioning what the code does, compile it and compare the program running with the source.
Phase III - Basic Programming In this phase, you will finally begin to start some coding. A variety of basic C++ operations will be required, so be sure that you are familiar with the following before starting: 1. Input / Output
The source code you will receive is mostly incomplete. It is your task to complete the source so that it operates as directed. The program in question is a tool that will assist in later crypto-analyses. It will read in a string of ASCII text and report a number of properties about the string: 1. Number of occurrences of each character
Tips 1. Many of the functions that need to be written have already been implemented in previous programs. Check the previous programs for possible solutions. 2. The main data in the program will be the string[ ] array and the letters[ ] array. string[ ] should contain the string being analyzed and letters[ ] should be used to count the number of letter occurrences. 3. Use a for loop to count the length of the string. | ||||||||||
|
For questions about the Supercomputing Challenge, a 501(c)3 organization, contact us at: consult @ challenge.nm.org New Mexico Supercomputing Challenge, Inc. Post Office Box 30102 Albuquerque, New Mexico 87190 (505) 667-2864 Supercomputing Challenge Board of Directors Board page listing meetings and agendas If you have volunteered for the Challenge, please fill out our In Kind form. |
|