|
home—info—labs—hws—exams
textbook—java.lang docs—java.util docs—archive
Due Oct.29 (Wed).
For the problems on the javabat web site: If your solution does not pass all the tests, clearly indicate how many tests your code doesn't pass.
1. for (int i = 0; i < 10; i++) 2. { 3. for (int j = 0; j < 10; j++) 4. System.out.print(i * j % 10); 5. System.out.println(); 6. } |
class Bio580 { static String birdWatchingLog( int numDays ) { int currentDay = 1; String messageSoFar = "Sightings:\n"; while (currentDay <= numDays) { messageSoFar += "Day " + currentDay + ": saw " + (numDays-currentDay) + " bird(s)\n"; currentDay = currentDay + 1; } return messageSoFar; } } |
1Point values are guidelines -- your section's professor might award points differently. ↩
2The ITEC department does not condone smoking cigars (neither by humans nor squirrels). ↩
3The ITEC department does not condone forging scientific data. ↩
home—info—labs—hws—exams
textbook—java.lang docs—java.util docs—archive
©2008, Ian Barland, Radford University Last modified 2008.Nov.03 (Mon) |
Please mail any suggestions (incl. typos, broken links) to ibarlandradford.edu |