KRHS Internet Lesson

Teacher Name:Mr. Rung                          Date of Lesson: January

Course Name: C++                    Lesson Name: Chap 10.3b

Student Name

Password


Objective
To complete the workbook exercises.


Primary Focus
Match the appropriate letter from the second column.

Site Links
Course Home Page

Additional Resources

Site Links


Write a statement that declares an enum type called month that allows the values June, July, and August.
AMy_Birthday = July;
Write a statement that declares a variable named My-Birthday of the type month, which you declared in question 1.
BYesNo completed;
Write a statement that assigns the value July to the variable My -Birthday that you declared in the ques- tion above
Cmonth My_Birthday;
Write a statement that uses typedef to rename the keyword int to integer .
Dcompleted = YES;
Write a statement that renames the enum type month that you declared in problem 1 to Birthmonth.
Etypedef month Birthmonth;
Write statements that will create a boolean data type like the one shown in the chapter. Call the new type YesNo. Make your boolean data type respond the constants YES and NO, rather than TRUE and FALSE
Fenum month{June, July, August};
Write a statement that will declare a variable named completed of type YesNo (the type created in ques- tion 6 above).
Gtypedef int integer;
Write a statement that assigns the value YES to the variable you declared in question 7 above.
Htypedef int YesNo;
const int YES = 1;
const int NO = 0;