Starting from:

$25

Game Cards Management System Solved

Overview
This assignment aims to establish a basic familiarity with the JDK development system and its associated on-line Java API class documentation. Students should apply the appropriate fundamental programming concepts (such as variables, constants, arrays, strings, methods, selection and repetition constructs etc.) and make use of appropriate Java API classes (such as Scanner, PrintWriter, String etc.) that they have learnt to solve the given problem.

 

Objectives
On completion of this assignment a student should be able to write simple Java application

that:

Makes use of selection and repetition constructs to achieve desired outcomes
Stores data to and reads data from arrays
Generates output to and reads input from the console window
Reads data from and writes data to text file
Manipulates string using Java API "String" class
Handles basic errors
Applies object-oriented concepts
 

Scope
This assignment is based on individual effort. You are required to design, develop and test a Game Cards management system for a game application.

Besides providing the required functionalities, your program should incorporate appropriate error handling. Comments are also to be inserted to improve program clarity. Before you start coding your program, you are strongly advised to carry out proper problem analysis and program design.  You are required to use JDK 1.5 developer version or later.

 

Requirements
This application allows the admin to

Admin login
Create a game card
Delete a game card
Edit a game card information
Search and display game cards information
Export game cards information
Change admin password
Logout
 

 

This application will have access to two text files.

 

The first text file (Admin.dat) contains the administrator-hashed password (SHA-256).

For example

be4b826c27636ab54a8bf15d73fc1bf2a533f547f2343d12a499d45643453ad4
 

The second text file (GameCards.dat) contains the game card information in the following format

<Name|<Description|<Earth Element Power|<Water Element Power|<Air Element Power|<Fire Element Power

 

For example

Zeus|God of the Sky|30|15|40|15

Poseidon|God of the Sea|20|50|15|15

Demeter|Goddess of Agriculture|55|25|15|5

Ares|God of War|20|10|10|60
Note: When a game card is created, all the elements power should add up to 100.

 

Error Handling

Your program should be able to handle error situations. For example where a game card name already existed (for Create a game card) or game card name not found (for delete game card). You should look out for other possible exceptions and handle them too.

 

For Export game card information requirement, the program should produce a file (GameCardsData.dat) with the following format:

CSCI213 Game Cards Management System

 

Game Card 1

Name: Zeus

Description: God of the Sky

Earth Element Power: 30

Water Element Power: 15

Air Element Power: 40

Fire Element Power: 15

 

Game Card 2

Name: Poseidon

Description: God of the Sea

Earth Element Power: 20

Water Element Power: 50

Air Element Power: 15

Fire Element Power: 15
 

More products