|
ProjJ1_BowlersDelight :
Create a class called ProjJ1_BowlersDelight. Create a method called
BowlerStat
public void BowlerStat()
It will ask bowlers to input scores until they type in -1. Each time they enter a grade, comment on it by saying:
- If they enter 0-100 tell them they bowl great (for a 4 yrd old)
- if they enter 101-150 tell them its decent.
- 151-199 tell them its very impressive
- 200-249 tell them they spend way too much time bowling.
- 250-300 tell them they are a liar.
- If it is out of that range, tell them scores only go from 0-300.
- If the score is valid: keep track of it:
At the end you will display average, range, and the high score and the
low score.
Rubric. This counts as a project! - 8 points:
- 1 ask users correctly until they type in -1
- 2 average works correctly
- average calculated (.5 points)
- -1 not calculated in average (.5 points)
- invalid scored not calculated in average (.5 points)
- double used correctly (like if scores are 5 and 10, average is 7.5) (.5 points)
- 1 high score works
- invalid scores dont affect high score (.5 points
- 1 low score works
- invalid scores dont affect high score (.5 points)
- 1 it detects range correctly
- 1 it displays correct messages
- 1 indented and variables named correctly
Extra Credit:
- Streak meter - at the end say how many games their scores have been improving for (like if they type 234, 200, 212,245 it would say Your have improved for 3 games in a row
- doubles - so if you type in scores of 184, 190, 184 it would say - you already got that score or something; its tough - read about arraylists(here)
- Make it more graphical. Using this about gui and this about textarea
- Anything else you can think that would be useful/cool.
|