COP 2250 – Project #2
Please turn in your assignment as a zip file!
This project is designed to help you better understand the use of:
Since we have not covered the power of classes in-depth, your assignment will require that you only use methods to help you create the Random Game. In order for your program to receive any points, it must first compile and then fulfill the requirements listed below.
Create a class namedRandomGamewith a main method and any additional methods that you think will help your program be efficient and readable. For this project, you must create averysimple simulation of a game between a human player and the computer. TheRandomGameworks as follows: A human player competes against the computer by randomly receiving points between 0 and 100. Every turn, the human player can choose to either continue playing the game or end the game. If the human player chooses to end the game, the computer gets a 15% bonus to its final score. Whichever player has the highest final score wins.
The criteria for your code are as follows:
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here