Computer Science Gce Projects: Class: Comp. SC By: Dzeugang Placide
Computer Science Gce Projects: Class: Comp. SC By: Dzeugang Placide
Progressive
&
Comprehensive High School Peace – Work – Fatherland
PCHS Mankon – Bamenda School Year 2013/2014
Department of Computer Studies
The project examination will last eight weeks, making sis weeks for candidates
and two weeks and two weeks the evaluation and transmission to the GCE
Board. The initial assessment of this report shall be by the teacher and shall be
subjected to modification by the GCE board.
School are required to transmit ALL project reports in sealed envelopes to
appropriate examination centres during Part II of the Practical Tests.
→ The machine guesses a number between a given intervals [min, max] and ask to the
student to find it.
→ The max, the min and the number of tries are defined as constant values (use
#define).
→ For any number guessed by the user, the machine should see whether the number is
bigger or smaller than the searched number and reduce the interval accordingly.
→ The program stop when the user actually guess the right number, in which case the
sentence “Bravo you win in x tries” (x to be given) is printed, or the maximum
number of tries are reached, in which case the sentence “Sorry exceeded number of
tries, you failed” is printed.
→ The output will look like the following snapshoot below.
(Use the rand() function in the library “stdlib.h” to generate a random number.)
Extend the program to allow user to play or to modify settings of the program. Modify setting
include
1) The first menu enable the user to modify game settings as it is shown of the figure
below. A password is needed to enter into this menu.