Friday Jan. 20
1) Copy folder from object oriented c++ folder on s: drive. Begin saving all of your programs there.
Do the following exercises.
pp. 104 , 105 # 7, 10 , 12, 16
Notes:
Use parallel arrays on # 7
Use a switch statement on # 10 Add " Invalid entry " if a number less than 1 entered.
Thurs. Feb. 2
p. 155 # 19 - Do the debugs and save to your folder.
p. 154 # 9, 13, 16
Thurs. Feb. 16th
Write a program that creates a series of magic squares from 3 x 3 to 11
x 11 and displays them on the screen. To do this you will need to
learn about 2 - d arrays - in the book or on internet and learn about
magic squares here.
Fri. Mar. 3
Design a program that plays hangman. Your words should come from
a data file and hold up to 15 characters. Players shhould get a
finite number of guesses to get the word before getting "hanged". Draw
some graphics of the player being hanged as he makes more guesses.
Output something like this:
Guess a letter in the word **********
s
Sorry, s is not in the word **********
+---------+
|
|
|
|
========
Guess a letter in the word **********
e
The letter e is in the word ****ee*e*
+---------+
|
|
|
|
========
Guess a letter in the word ****ee*e*
t
Sorry, the letter t is not in the word
+---------+
| |
|
|
|
========
The player keeps guessing until he gets the word or is hanged.