Danielle Gardner
Fundamentals of Computing
Professor Kihlstrom
November 9, 2006
Chapter 8 p. 419
Exc. 8, 12, 13
8. cin<<hours<<please input hour
cin<<minutes<<please input minutes
cout<<time=hours<<endl;
cout<<time=minutes<<endl;
12. A=12;
B=20;
B=B+1;
A=A+B;
Cout<<2*A<<endl;
A=12+21=33
2 *33=66
output=66
13.
cin<<width<<please input width
cin<<height<<please input height
cin<<area=width*height
cout<<width*height<<endl;
Chapter 10 p.
510-511
7.<identifier>::=<first> <second>
<first> ::=k|l
<second> ::= <letter> | <digit> | A
<letter>::= A| B | C É| Z
<digit> ::=0 | 1 | 2 | É| 8
b. A B 5 C 8
| | | | |
<symbol> <symbol> <number> <symbol> <symbol>
\ | | | /
\ | | | /
\ | | | /
\ \ | / /
\ | | / /
-------------------------------<Identifier>--------------------------------------
15. I bought a shirt in the new store that was too large
Interpretation #1: The person bought a shirt that was too large in a new store.
Interpretation #2: The person bought a shirt in a very large and new store.