Quiz for Chapter 8

Let's have a quiz ! If you haven't read the lesson, you had better do it now before starting.

Practices (15 min)

  1. Make a set of FUNCTIONS to perform these tasks :
  2. Make a procedure to replace a substring within a string with another substring.
  3. Revise the makewin procedure in chapter 5. Use fillchar instead of dirty loops.

Entertainment (30 min)

  1. Make a text animation. Display a sentence in the center of the screen. Let all characters fall one by one. Skip the spaces !
  2. Make a text animation. Run 12.exe from 12.ZIP. It should be 4605 bytes.
  3. 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)

  1. 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.
  2. 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.

Advanced (14 days) (You may do it or not, optional)

User input a sentence. You must identify each word in a sentence, e.g. :
Yesterday, I walked around the park with my dog at 10am.

Output
Parsed WordsKind of Word
Yesterdaytime signal
Inoun
walkedverb
aroundverb remarks
thedefinitive particle
parknoun
withparticle
mypossessive particle
dognoun
atparticle
10amtime signal

That's all. If you do number 9 correctly within 14 days, you are superior in computer programming.


Where to go ?

Back to chapter 8
Advance to chapter 9, about records
To lesson 1 contents
My main tutorial homepage
My programming links
Contact me here


By : Roby Joehanes, © 1996, 2000