Computer Class

tech class

Thursday, August 24, 2006

pseudocode to make a sandwich.

Ask user what kind of bread user wants.
Out put their type of bread.
ask user if he/she wants peanut butter,jelly,mayo,or mustard.
Output peanut butter if they want it.
Output Jelly if they asked for it.
Output Mayo if asked for.
Else output mustard.

Then ask for Ham,Turkey,Salami,Cheese,and/or lettuce and tomatoes.
Out put what ever they ask for.

Then PUt it all together and output a sandwich.:]

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home