Jared Madrazo

Dr. Kihlstrom

Fundamentals of Computing

6 November 2007

Compose a second page for your website using Kompozer

Chpt. 8 #’s 8, 12, 13

Chpt. 9 #’s 7, 15

 

Look here for my Website on Kompozer: http://homepage.westmont.edu/jmadrazo/InterestsPage.html

 

 

Chpt. 8:

 

  1. int hour;

int min;

cout<< “Please enter the hour:”;

cin>>hour;

cout<< “Please enter the min:”;

cin>>min;

 

12.    The output is 66 because 2*A=66 when A=33.

 

13.    cout<< “Please enter the length:”;

cin>>length;

cout<< “Please enter the width:”;

cin>>width;

Area= Length * Width;

cout<< “The area is” <<Area;

 

 

Chpt. 9:

 

     7.   a)   <Identifier> :: = <letter> <body>

                 <letter> :: = A|B|C|D|… |Z| a|b|…|z

                 <body> :: = <symbol> <body> |/\

                 <symbol> :: = <letter> | <digit>

                 <digit> :: = 0|1|2|…|9

                 <identifier> is the goal symbol

 

b)  

 

 

 

 

 

       A          B          5          C          8          /\

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


15.   This statement could mean:

The shirt was too large or the store was too large.