RU beehive logo ITEC dept promo banner
ITEC 120
2010fall
ibarland

homeinfolectslabsexamshws
tutor/PIsObject120 + its docsjava.lang docsjava.util docs

lect04b
if-else-if


From last time:

We'll now evolve this qualifies100m:

AND,OR

Finally: We'll modify qualifies100m so that it just has a single return statement (!). This is not required, but some people prefer this version. (Note that if your function doesn't return a boolean, you won't be able to concentrate the code this much.)


Here is a slightly different set of notes.

We will look at alternate ways of writing orderPrice, where we (a) use variables differently; (b) add a third,fourth,fifth type of pastry;

Here is today's starting code and the finished code.

homeinfolectslabsexamshws
tutor/PIsObject120 + its docsjava.lang docsjava.util docs


©2010, Ian Barland, Radford University
Last modified 2010.Sep.22 (Wed)
Please mail any suggestions
(incl. typos, broken links)
to iba�rlandrad�ford.edu
Powered by PLT Scheme