CPS 1 - Spring, 2000 - Ramm 2/2/00 #8

2. An Introduction to Programming: Coding Decision Trees

Strings and String Manipulation

 EXAMPLE:
(2) <statement> -> <name> = <expression>;
(1) <statement> -> person = <expression>;
(6) <statement> -> person = <str expression>;
(7) <statement> -> person = <str expression> + <str expression>;
(8) <statement> -> person = <string> + <str expression>;
(10) <statement> -> person = <name> + <str expression>;
(1) <statement> -> person = firstn + <str expression>;
(7) <statement> -> person = firstn + <str expression> + <str expression>;
(8) <statement> -> person = firstn + <string> + <str expression>;
(9) <statement> -> person = firstn + " " + <str expression>;
(8) <statement> -> person = firstn + " " + <string>;
(10) <statement> -> person = firstn + " " + <name>;
(1) <statement> -> person = firstn + " " + lastn;