Question: I need help with this JAVA programming problem. Please be sure to post copyable code as well as screenshot of the relevant outputs. Also please
I need help with this JAVA programming problem. Please be sure to post copyable code as well as screenshot of the relevant outputs. Also please do follow all the requirements

Contents of Dog.java file below
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */
/** * This class implements a Dog * @author */ public class Dog { private String name; private int cuteness = 1; private boolean barky; private int idTag = 0; private static int numDogs = 0; /** * Default constructor for a Dog. Sets instance variables to default settings. */ public Dog() { name = "unknown"; cuteness = 1; barky = false; setIdTag(); } /** * Full parameter constructor for a Dog. * @param inName a String representing the name of the Dog * @param inCuteness an int representing how cute the Dog is * @param inBarky a boolean representing whether the Dog barks a lot */ public Dog(String inName, int inCuteness, boolean inBarky) { setName(inName); setCuteness(inCuteness); setBarky(inBarky); setIdTag(); } /** * This method returns the name of the Dog * @return a String representing the name of the Dog */ public String getName() { return name; } /** * This method returns the cuteness level of the Dog. * Cuteness is defined as a value between 1 and 10. * 1 is an ugly dog and 10 is a very cute dog. * @return an integer value representing the cuteness. */ public int getCuteness() { return cuteness; } /** * This method returns whether a dog barks a lot * @return True if a dog barks a lot, false if a dog doesn't bark much */ public boolean getBarky() { return barky; } /** * Returns the ID tag of the Dog * @return an integer representing the ID tag */ public int getIdTag() { return idTag; } /** * Sets the name of the Dog * @param name the name of the Dog */ public void setName(String name) { this.name = name; } /** * Sets the barkyness of the Dog * True means the Dog barks a lot. False means the Dog doesn't bark a lot. * @param inBarky a boolean indicating how barky a Dog is. */ public void setBarky(boolean inBarky) { barky = inBarky; } /** * Increments the number of Dogs created in the program and using that value for the ID tag of the Dog. */ private void setIdTag() { numDogs ++; idTag = numDogs; } /** * Sets how cute the Dog is. * Cuteness is an integer from 1 to 10. 10 is very cute. 1 is ugly. * @param inCuteness the cuteness of the Dog */ public void setCuteness(int inCuteness) { if (inCuteness > 0 && inCuteness
Contents of the PetNames.txt file
Acorn Alvin Asia Audi Bagel Balou Barclay Barney Beck Bellatrix Bianca Biloxi Birdie Biscuit Blanca Bobbafett Bodie Bono Booboo Bootsie Bordeaux Brandy Bren Bronco Bruin Bubbles Buffy Burt Butler Button Calvin Candy Carter Cece Cessa Chandler Chaucer Chevy China Choochoo Cisco Claire Cleopatra Clooney Coco(nut) Connor Cosmo Crosby Cupcake Daisy Dallas Daphne Delilah Diva Doc Domino Donna Donovan Dulus Dutch Ebony Ed Elton Elwood Ernie Faith Faya Felix Fig Fiona Foxy Fritz Fuse Giblet Gibson Gingi Goofy Graysen Greystoke Guinness Hershey Holly Honey Huck Finn Hudson Hutch Ike Indira Iris Ivory Jade Jasmine Jasper Jazzy Jeeves Jenna Jenne Joy Kai Kalua Kaly Kassie Kaya Keanna Keesha Keiko Kiefer Kingston Koby Kona Laguna Landon Larissa Lefty Leia Lexi Lilbit Lilypie Linus Logan Lola Luca Lucy Luke Madonna Malble Malibu Margo Marshmellow Marti Max Maya Meadow Mercedes Merlot Merry Mia Midnight Midori Mika Milan Mira Mischa Mitzi Moby Mochi Monet Monkey Mooshie Mozart Mr Big Muggles Mulder Mulligan Murphy Mylo Nanda Nate Nell Niana Nico Noodle Nugget Olive Onyx Otis Owen Ozzie Paddington Paisley Paris Parker Paulie Pazzo Peanut Pearl Pepper Persia Pesci Phoenix Picasso Pinot Pipsie Pixie Porche Quattro Ramona Redford Reece Rico Robin Hood Rocco Rocky Romeo Roxie Rufus Rusty Scotty Scout Shadow Shaggy Shane Shaq Sheba Silas Skip Skitty Skyler Smitty Snooky Snoopy Sookie Spark Sprite Stitch Strsky Sugar Summer Sunny Sushi Sweetpea Syrah Tallulah Tango Tank Tanner Tatertot Theo Tibbs Timber Tink Toast Toffee Tonka Vegas Wednesday Wilbur Willow Winnie Wolfie Yoshiko Zach Zara Zeke Zelda Zeppelin ZsaZsa
This assignment will be to create work with an ArrayList of Dogs to give you practice working with ArrayLists of Objects Create a new project (NetBeans users, remember to make certain the "Create Main Class" check box is NOT checke Once your empty project has been created, download and copy the Dog.java file attached to this assignment into your project (should go INSIDE of your project's src folder) Also download the attached PetNames.txt file and copy this file into your project (should go OUTSIDE of your project's src folder) Then create a new Driver/Main class for your project which should do the following: Create an ArrayList to hold Dogs Create a Random Create a Scanner to read from the PetNames.txt file Use a loop to create new Dogs and put those Dogs into your ArrayList. Data for the Dogs should be generated by O Name: read a name from the file of pet names o cuteness: randomly generate a value from 1 to 10 o barky: randomly generate a boolean value o [Your ArrayList will have the same number of Dogs in it as there are names in your PetNames.txt file] Use a separate loop to go through your ArrayList of Dogs and determine the percentage of Dogs with an adoptability value greater than 50.0 (use the adoptionOdds) method!) Print out the value you calculated above Use a separate loop to go through your ArrayList of Dogs and change all of the Dog's barky value to false Use a separete loop to go through your ArrayList of Dogs and determine the percentage of Dogs with an adoptability value greater than 50.0 now that they are all well behaved and don't bark. Print out the value you calculated above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
