![]() |
![]() |
|
home—info—labs—exams—hws
—D2L—MediaSamples/—breeze (snow day)—tutor/PIs
The type
There are some functions in Java which take two numbers, and return a boolean.
(2+2 == 4) 2+2 == 5 2+2 != 5 2+2 != 4 // "Is it true, that 2+2 is *not* four?" 5 > 4 5 > 99 5 > 5 5 >= 5 double x = 5; double y = 43.2; (x+y)/2 >= Math.sqrt(x*y) // is the arith.avg less than geom.avg., for the current value of x,y? |
We will work through the following codingbat problems (some in class, some individually — will not be checked off):
CodingBat > Python > Warmup-1 > diff21 CodingBat > Python > Warmup-1 > sum_double CodingBat > Python > Warmup-1 > front3 CodingBat > Python > Warmup-1 > not_string CodingBat > Python > Warmup-1 > near_hundred
home—info—labs—exams—hws
—D2L—MediaSamples/—breeze (snow day)—tutor/PIs
©2014, Ian Barland, Radford University Last modified 2014.Apr.09 (Wed) |
Please mail any suggestions (incl. typos, broken links) to ibarland ![]() |
![]() |