- Case StudyHelp.com
- Sample Questions
1. Purpose of the programming
: You will write a baseball program. The user plays against the program.
The program randomly chooses 3 different numbers. The user wins when he/she guesses those 3 numbers.
The user enters the 3 numbers that he/she guesses, the program produces the total number of “strike” or “ball.” When the user correctly guesses both the number and its place, it is “strike” When the user correctly guesses the number, but not its place, it is “ball” The game is over with 3 strikes. At the end of the game, the program displays the final score. The final score is calculated by (100- (number of attempts*5).
Say the program chose 1, 3, 7
% Enter three numbers >> 2 4 6
% 0 strike 0 ball
% Enter three numbers >> 9 8 7
% 1 strike 0 ball
% Enter three numbers >> 3 5 7
% 1 strike 1 ball
% Enter three numbers >> 1 3 7
% 3 strike out % Your score is 80.
(1) The Source code of your program
(2) Word document that contains:
1) The structure of your program
2) Explanation of your class member and its related function
: You may include some important parts of your codes with its related explanation.
3) 5 or 6 snapshots of your execution output
4. Grading Criteria
Please pay attention to indents in your coding. Lack of or inappropriate indents will
deduct your points.
(2) The quality of the word document.
How well your program is executed will be considered in grading.
Please CHAT WITH LIVE programmer Advisor to know more about your assignment
Chat with our 24 x 7 Online Agents CLICK CHAT NOW
Ask Your Java Assignment Question?
Check out our Java Programming Assignment Help Services
Find Your Assignment Experts