Lesson 12 Bools and Chars
This completes our set of classic Data types everyone should know.
Idea for project:
Declare a couple of Boolean variables. Set one equal to true and the other equal to false. Print out the values of both. Label your output.
Declare a char variable and set it equal to a value. Print out both its character value and its integer value. Label your output.
Declare a second char variable and prompt the user to give a value for it. Print out both versions of the char value. Label your output.
Lesson 13 If
"If" is our first "decision structure." We can start getting the computer to make choices.
Idea for project:
Prompt the user to guess something that is one of a set (e.g. month of the year) and use only "if" statements to tell him if he is correct, close to, or wrong with his guess.