Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Only need 2nd part completed. How to make the menu. Introduction The intention of this assignment is to demonstrate skills in designing and implementing classes

image text in transcribed

image text in transcribed

image text in transcribed

Only need 2nd part completed. How to make the menu.

Introduction The intention of this assignment is to demonstrate skills in designing and implementing classes using Object-oriented programming paradigm. Additionally, it will give you experience working with testing tools, and creating/testing your own code as well. Team work - You MUST work with a partner on this project Assignment Instructions 1. Use only Eclipse IDE (Only JDK 8 or 11). 2. The due date for this assignment is posted in D2L. The Problem In this assignment you will implement a game called Punto Banco. Your software will also save stats and balances for each player, and allow a user to generate reports based on this data. New players will be given a starting balance at their first game, and returning players will continue with their previous balance. The program must have the following features: 1. Data Storage: - Player information is stored in the text file res/Cas inoInfo. txt - Each row of text stores data for one player, formatted as "name, balance, numberofwins" - for example: Khosro, 100,21 - If the text file does not exist at startup, your program must create it. - Player data must be saved back to the text file when the program ends - that file serves as a sort of database. - When the program starts, the player data in res/Cas inoinfo. txt must be loaded into an arrayList of Player objects 2. Menus and Navigation Note: The program should treat all user input as case-insensitive, and all menus should display an error message and re-prompt if an invalid input is entered. - At startup, the program must present a main menu as follows: Select one of these options: (P) Play game (S) Search (E) Exit Enter a choice: - (P) Play Game: This option lunches the Punto Banco game. The rules will be explained later. 2. Menus and Navigation Note: The program should treat all user input as case-insensitive, and all menus should display an error message and re-prompt if an invalid input is entered. - At startup, the program muct nracant a main manul ac follniwe - (P) Play Game: This option lunches the Punto Banco game. The rules will be explained later. 2/8 - (S) Search: This option shows a sub-menu to the user: Select one of these options: (T) Top player (Most number of wins) (N) Looking for a Name (B) Back to Main menu Enter a choice: I - (T) Top player: This option shows the player(s) with most wins and returns to the main menu after the user presses "Enter": - (N) Search for a Name: This option prompts the user for a name, and displays that player's information if they exist in the database. The user is informed if that player is not in the database. Returns to the main menu after pressing "Enter". (B) Back to main menu: This option will take the user to the main menu 3/8 - (E) Exit: This option in the main menu ends am. All player data must be saved before the Getting back to the main menu after pressing "Enter" (N) Search for a Name: This option prompts the user for a name, and displays that player's information if they exist in the database. The user is informed if that player is not in the database. Returns to the main menu after pressing "Enter". (B) Back to main menu: This option will take the user to the main menu (E) Exit: This option in the main menu ends the program. All player data must be saved before the program ends. Select one of these options: (P) Play game (S) Search (E) Exit Enter a choice: e Saving... Done! Please visit us again! Introduction The intention of this assignment is to demonstrate skills in designing and implementing classes using Object-oriented programming paradigm. Additionally, it will give you experience working with testing tools, and creating/testing your own code as well. Team work - You MUST work with a partner on this project Assignment Instructions 1. Use only Eclipse IDE (Only JDK 8 or 11). 2. The due date for this assignment is posted in D2L. The Problem In this assignment you will implement a game called Punto Banco. Your software will also save stats and balances for each player, and allow a user to generate reports based on this data. New players will be given a starting balance at their first game, and returning players will continue with their previous balance. The program must have the following features: 1. Data Storage: - Player information is stored in the text file res/Cas inoInfo. txt - Each row of text stores data for one player, formatted as "name, balance, numberofwins" - for example: Khosro, 100,21 - If the text file does not exist at startup, your program must create it. - Player data must be saved back to the text file when the program ends - that file serves as a sort of database. - When the program starts, the player data in res/Cas inoinfo. txt must be loaded into an arrayList of Player objects 2. Menus and Navigation Note: The program should treat all user input as case-insensitive, and all menus should display an error message and re-prompt if an invalid input is entered. - At startup, the program must present a main menu as follows: Select one of these options: (P) Play game (S) Search (E) Exit Enter a choice: - (P) Play Game: This option lunches the Punto Banco game. The rules will be explained later. 2. Menus and Navigation Note: The program should treat all user input as case-insensitive, and all menus should display an error message and re-prompt if an invalid input is entered. - At startup, the program muct nracant a main manul ac follniwe - (P) Play Game: This option lunches the Punto Banco game. The rules will be explained later. 2/8 - (S) Search: This option shows a sub-menu to the user: Select one of these options: (T) Top player (Most number of wins) (N) Looking for a Name (B) Back to Main menu Enter a choice: I - (T) Top player: This option shows the player(s) with most wins and returns to the main menu after the user presses "Enter": - (N) Search for a Name: This option prompts the user for a name, and displays that player's information if they exist in the database. The user is informed if that player is not in the database. Returns to the main menu after pressing "Enter". (B) Back to main menu: This option will take the user to the main menu 3/8 - (E) Exit: This option in the main menu ends am. All player data must be saved before the Getting back to the main menu after pressing "Enter" (N) Search for a Name: This option prompts the user for a name, and displays that player's information if they exist in the database. The user is informed if that player is not in the database. Returns to the main menu after pressing "Enter". (B) Back to main menu: This option will take the user to the main menu (E) Exit: This option in the main menu ends the program. All player data must be saved before the program ends. Select one of these options: (P) Play game (S) Search (E) Exit Enter a choice: e Saving... Done! Please visit us again

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions