Question
Please help me code this project in Java. I have to use tokenizing ( make sure the tokenizing works because when I program my program
Please help me code this project in Java. I have to use tokenizing ( make sure the tokenizing works because when I program my program was not working ) and split as well as files to read and to print. use methods where its applicable. Please do not use arraylists or BufferredReader. keep it simple and comment a lot of comments so I understand what are you doing. please make sure that the same file that you get the information from should be updated at the end, with either new user and the tokens they have or or a returning user with the tokens they have.
Thank you!
Slot Machine Simulator The goal of this assignment is to create a program which simulates the idea of a user gambling with a slot machine. You should keep track of every user and the number of tokens they have in a separate text file, so that they are able to continue with their game when reopening the game. Your program must meet the following conditions. For this program you must use a text file called SlotScores.txt. It will contain the names of each player, followed by the number of tokens they have (separated by a comma, then space). These must be on the same line. You will be updating this text file with any changes in score, as well as new players who begin the game. For example: Jimbo, 90 Alejandro, 30 Mark, e Sammy, 70 Bryan, 180 Your program will begin by prompting the user to select an account, such as in the following fashion: Welcome to the slot machine! Are you a... 1) Returning User 2) New user o If they are a returning user, present them with a menu of current accounts that exist in your data base, and ask them to choose a player to use. Please select an account: 1) Jimbo 2) Alejandro 3) Mark 4) Sammy 5) Bryan o If they are a new user, ask them to input their name. Your program should not allow more than 10 different users.
Step by Step Solution
3.32 Rating (155 Votes )
There are 3 Steps involved in it
Step: 1
The required java file is code import javaioFile import javaioFileNotFoundException import javaioFileWriter import javaioIOException import javaioWrit...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started