Question: I need help with finishing this program. I am struggling with having it write to a external file(notepad), as well as a couple of other

I need help with finishing this program. I am struggling with having it write to a external file(notepad), as well as a couple of other things. My code and program requirements are below.

I need help with finishing this program. I am struggling with havingit write to a external file(notepad), as well as a couple ofother things. My code and program requirements are below. Create a programthat will track high scores. You wil need to get the name

Create a program that will track high scores. You wil need to get the name and score of the player. All data will be stored in an external file. When your program starts, you wl need to load all data from the file and before Welcome to the my High Score App! Please select an option: 1- Add a new score 2 Display a list of all scores 3-Display the TOP 10 scores 4- Exit OK Cancel the program ends, you need to save the data back to the file. Other requirem ents are below Ihave attached the code for the class "Score" You must use this file and cannot modify the class o You do not need to use all methods in the Class Score. Use only what you need You need to create a menu were the user can select a number to run different parts of your code. Menu options should include . o Option 3 -Top 10 is Extra Credit +20 o To support [tabls in the Class Score, use the following line to print a message that contains t' JOptionPane.showMesageDialog(null, new JTextArea(msg)); . You should allow the user to continue using the program until they select Exit" from the menu - If a user enters a option not on the menu, your program should return an error to the user All scores need to be integers Since array have very strict uses and can't grow as you add new scores, you must use an ArrayList Score> to store the player's name and score using the class Score . Array Lists have many helpful methods and can grow as needed. They can also store primitive data types up to complex objects like Classes. Page 467 in your book talks about ArrayList Please review this diagram on the use of ArrayLi sts o package oecs 195finalproject.as import javax.swing.JOptionPane, public class OECS195Final ProjectAS public stati c void m ain(String[] args) ( JOpti onPane.showInputDial og(null, "Welcome to my High Score App!+ "nn" + "Please select an option1-Add a new score"+"n" +"2-Display a list of all scoresn + "3-Display the TOP 10 scores"+ "In+ "4-Exit")

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!