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)
- 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.
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.
OutputParsed Words | Kind of Word |
Yesterday | time signal |
I | noun |
walked | verb |
around | verb remarks |
the | definitive particle |
park | noun |
with | particle |
my | possessive particle |
dog | noun |
at | particle |
10am | time 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