Your Perfect Assignment is Just a Click Away
We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!


University of Wisconsin Madison Monster Collector Project

University of Wisconsin Madison Monster Collector Project

Question Description

I’m working on a Java project and need support to help me understand better.

All of the instructions are within the Java doc header comments and the example output is attached in a file.

Please make the code as simple as possible only using the provided imported tools(Random, Scanner, etc).

import java.util.Random;
import java.util.Scanner;
public class MonsterCollector {

* This method is for trying to catch a monster of your very own!
* Generate a random number from 1 to 5 inclusive. If the user did NOT guess this number, they caught the monster.
* Add that monster to the next null spot in the myMonster array. If they were successful
* in catching the monster print “Congratulations, you caught [monster]!”
* otherwise print “You almost had it, but the monster escaped.”
* If monster, myMonsters, or rand is null, return before doing ANYTHING else in the method.
* @param userGuess – user guess between 1 and 5
* @param monster – monster retrieved from getMonster
* @param myMonsters – array of monsters user has caught
* @param rand – random number generator
public static void catchMonster(int userGuess, String monster, String[] myMonsters, Random rand) {


* This method is for retrieving your next monster to encounter.
* Search through the array starting at index 0 until you find an index that is not null;
* this will be the monster you encounter. Set that monsters index to null and return
* the monster.
* @param monsters – the array of monster left to encounter
* @return String – next monster to encounter. If monsters is null, return null.
* If you search through the entire monsters array, and all indexes are null, return null.

public static String getMonster(String[] monsters) {
return null;

* Count the number of monsters the user caught, and print it to the console.
* If the user caught all the monsters, they are the master! Otherwise,
* they must continue to train.
* The number of monsters the user caught will be the number of non-null elements in the user’s monster array,
* while the total possible monsters is the size of the myMonsters array.
* (See assignment page for example output)
* @param myMonsters – monsters the user has caught
public static void printResult(String[] myMonsters) {


* This is the main method.
* Config.MONSTERS is an array provided in, full of cool monsters to encounter!
* Create a new array the same size as Config.MONSTERS, then copy all the entries from Config.MONSTERS
* into your new array.(Hint: A loop could be useful here)
* Welcome your user to the game, and start your game loop. The game ends when the user has encountered
* all monsters in our monsters array.
* First get the monster we are going to encounter. If the monster is null, inform the user there are no more
* monsters to encounter, and end the game. If the monster is not null, prompt the user for a number between
* 1 and 5 and begin the encounter. If the user input is out of range of 1 – 5, prompt the user again until we
* receive correct input.
* When the game ends, print the results.
* (See assignment page for example output)
* @param args unused

public static void main(String[] args) {



//Below is the file that needs to be utilized in the main program along with the seed that cannot be changed. file

public class Config {

public static final String[] MONSTERS = new String[] {“pikamoo”,”bulbaroar”,”chubaboo”,”nubat”,”qualimer”};
public static final int SEED = 365;


Order Solution Now

Our Service Charter

1. Professional & Expert Writers: DESTINY PAPERS only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of master's and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by DESTINY PAPERS are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. DESTINY PAPERS is known for the timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At  DESTINY PAPERS, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.