Practices (15 min)
- Make a set of FUNCTIONS to perform these tasks :
- Make all letters in a string upcase.
- Eliminate trailing spaces.
- Eliminate leading spaces.
- Change leading spaces with leading zeroes.
- Count the number of word in a sentence
- Make a procedure to replace a substring within a string with another substring.
- Revise the makewin procedure in chapter 5. Use fillchar instead of dirty loops.
Entertainment (30 min)
- Make a text animation. Display a sentence in the center of the screen. Let all characters fall one by one. Skip the spaces !
- Make a text animation. Run 12.exe from 12.ZIP. It should be 4605 bytes.
- Make a game of garbled word. Suppose you have a word. Garble it so that the sequence can not be read. User must guess the word.
Challenge (45 min each)
- Make a simple calculator that can perform addition, substraction, multiplication and division. User input the equation then press enter. You should give the answer. Example :
Input : 6*3+4*(5+3)
Output : 50
You MUST regard the precendence of operators.
- Make a game just like Wheel of Fortune, for 3 players. All the rules are the same as Wheel of Fortune. You may use random number to simulate spin wheel.That's all. If you do number 9 correctly within 14 days, you are superior in computer programming.