TASK #1 In the domain class you will create a loop that will prompt the user to enter a value of 1, 2, or 3, which will in turn, be translated to a floor number in the game. Make sure the user only picks a selection you are expecting (1, 2, or 3) with a while-loop. Then you will create a switch or if-else statement. If you are more comfortable with if-else then do switch, or if you are more comfortable with switch then do if-else. Based on the number the user chooses you will set the floor variable to the appropriate value. When they select 1 floor should be set to 3, when they select 2 floor should be set to 6, and when they select 3 floor should be set to 10. TASK #2 In the domain class you will create a constructor with 6 parameters, representing all the data loaded from the input file that was saved from a previous adventure. This constructor receives 6 parameters: aName, anAttack, aDefense, aHealth, aCurrentFloor, & aMaxFloor. TASK #3 In the domain class you will create a save method that will allow the user to save their progress using a PrintWriter object. This file will overwrite whatever was there before, so no need to use FileWriter, only PrintWriter. There are 6 attributes that you need to write to the file: name, attack, defense, health, currentFloor, & maxFloor public void saveFile() { String filename = “game.txt”; PrintWriter pw = new PrintWriter(filename); pw.println(name); pw.println(attack); pw.println(defense); pw.println(health); pw.println(currentFloor); pw.println(maxFloor); pw.close(); } TASK #4 In the driver class you will create a load method that will allow the user to pick up from where they left off. You will do this using a File object and a Scanner object. Remember to use the File and Scanner classes, and to close the file object after you’re done. There are 6 attributes you will need to load from the file to successfully continue an Adventure: name, attack, defense, health, currentFloor, & maxFloor After you read the record from the file, and store the data in these 6 variables, you can create a new Adventure object called JavaQuest with those 6 variables. Remember JavaQuest is a global variable defined at the beginning of the driver class. Then, within the load method, invoke the startAdventure() method for the newly created Adventure object. public static void load() { String filename = “load.txt”; File myFile = new File(filename); Scanner myScan = new Scanner(myFile); String name; int attack, defense, health, currentFloor, maxFloor; name = myScan.nextLine(); attack = myScan.nextInt(); myScan.nextLine(); defense = myScan.nextInt(); myScan.nextLine(); … javaQuest = new Adventure(name, attack, defense, health, currentFloor, maxFloor); } javaQuest.startAdventure(); The Files package Adventure; import java.io.BufferedWriter; import java.io.File; import java.io.IOException; import java.io.PrintWriter; import java.util.Random; import java.util.Scanner; public class Adventure { int health, defense, attack; String mons.