Pascal Quiz 8
 

Practices (15 min)



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

  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.That's all. If you do number 9 correctly within 14 days, you are superior in computer programming.

(c) Shilpa Sayura Foundation 2006-2017