Textbook Chapter 8, p. 419, Exercises 8, 12, 13
Textbook Chapter 10, pp. 510-511, Exercises 7, 15
8:
int hours:
int minutes:
cout: << "Enter hour of day";
cin >> hours;
cout: << "Enter minute":
cin >> minutes;
12: B-> 21 A-> (12+21) = (33) x 2 =66
13
cout: <<"Enter Width";
cin >> width;
cout: <<"Enter Height";
cin >> height;
area = (width * height);
cout: <<"The area is";
cout: <<area;
7
< identifier> ::= <letter><symbol>
<letter> ::= a|b|...z|A|B|...Z
<symbol> ::= (<letter>|<digit>|/\) <symbol>
<digit> ::= 0|1|2|...9
A
B
5
C
8
/\
letter
letter
digit
letter
digit
symbol
Symbol
Symbol
Symbol
Symbol
Identifier
15
THe store was too large
the shirt was too large
The store used to be too large
The shirt used to be too large
the shirt was new