Quiz review: Strings, file reading, arrays
posted by: Ms. Martin
10 January 2011
No Comment
NOTE: I will keep adding to this until Thursday!! Check back for more goodies.
Indefinite loops
- While loop mystery
- Dice sum (use Math.random())
File reading
- Read entire f ile (cumulative sum)
- evenNumbers (cumulative sum)
Strings
- sameDashes (recall that methods can return any type including booleans)
- printReverse (String traversal using charAt)
Arrays
- array mystery
- array mystery (hard!)
- range
- mode (arrays for tallying)
- evenNumbers (arrays for tallying)
- rotateRight (note that it may sometimes make sense to loop over the array from right to left)
- isSorted
- longestSorteSequence





