Lecture #7

An Introduction to Programming: Coding Decision Trees

Strings and String Manipulation

 EXAMPLE:
<statement> -> <name> = <expression>;
<statement> -> person = <expression>;
<statement> -> person = <str expression>;
<statement> -> person = <str expression> + <str expression>;
<statement> -> person = <string> + <str expression>;
<statement> -> person = <name> + <str expression>;
<statement> -> person = firstn + <str expression>;
<statement> -> person = firstn + <string> + <str expression>;
<statement> -> person = firstn + " " + <str expression>;
<statement> -> person = firstn + " " + <string>;
<statement> -> person = firstn + " " + <name>;
<statement> -> person = firstn + " " + lastn;