RU beehive logo ITEC dept promo banner
ITEC 120
2008spring
ibarland,
jdymacek

homeinfoarchiveexamslectureslabshws
RecipeLawsliessyntaxjava.lang docsjava.util docs

lab04b
if-else-if, continued

We will spend most of today finishing up the ebay lab from Tuesday (including the three-tiered price structure for items over $1000.)

Practicing with quotient, remainder

First though, we'll take ten minutes to look at / for doubles vs. / for ints vs. % (remainder).

Remember that /, if given two integers, returns the quotient. The remainder can be obtained by % (pronounced “mod” or “modulo” in addition to “remainder”). Predict the result of each expression to your partner, then try them out:


Okay, go ahead and finish up the ebay lab.
A couple of points:

homeinfoarchiveexamslectureslabshws
RecipeLawsliessyntaxjava.lang docsjava.util docs


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