Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What Will Be Accomplished Develop, test, and execute a graphic application for simulations using Java. Create a Java application. Given a set of events, choose

What Will Be Accomplished

Develop, test, and execute a graphic application for simulations using Java.

Create a Java application.

Given a set of events, choose the appropriate programming actions.

Work with Java in a way that demonstrates an understanding of the principles behind the programming language.

Demonstrate an understanding of the principles of object-oriented programming including classes and inheritance.

Integrate an understanding of XML and apply this understanding to Java.

Deliverables

.java files as requested below

XML files

Basic Requirements

The final project game: The scenario is based on the Pennsylvania State University system. A character (a student, a football player, a famous Penn State icon, etc.,) will be walking around the state of Pennsylvania and will enter five campuses, one at a time. At each campus, the character will face challenges such as answering questions, solving a puzzle, or playing a game. The character will collect points in each location. After five visits, the game will end. Then a final screen will be shown, displaying the character's rankings according to his/her performance.

Detailed Requirements

The Map

The character will move on a map. It might be a sketch built with graphics (panels, buttons, etc.,) and a picture background.

The application has to have more than five campuses so the user has a choice of where to go. Find a creative way to also represent World Campus. It might be a special key or place for the character to enter World Campus. In order to enter the other campuses, the character has to be moved over the campus position on the screen.

The Campuses

As the character enters a campus, a new panel should show up. The panel will have one or more questions, or a challenge (a puzzle or a game). When the answer is given or the challenge is over, the character should be put back on the main map screen where he/she was last. You should keep score of the character's performance to use it in the final ranking.

The Character

The character has to be picked from a list of three choices. Each choice should make the character different; for instance, it might move faster, it might, more or less, be able to answer the questions, or have more or less speed or strength when he/she plays the games at each campus.

The Character's Movement

The character will be moved using the mouse and clicking on buttons to enter each campus. The mouse should have an icon representing the character.

The Theme

The user might choose from three different options for a game theme. For instance, the theme might be Penn State football and the questions and games will be themed around that. Also, the theme might be Math and the questions and puzzles will regard Math. The theme options are your choice.

Game Over

When the character has entered and interacted with five campuses, the game is over and a final screen with the character's score should be displayed.

XML

For extra points:

The text of the questions and of the final ranking can be kept in a file and read when needed. You have to use what you learned in the XML lesson to read and write the file. XML is the required format, and it should be used as explained in the lesson.

The Timer

The time (duration of gameplay) should be kept, displayed at all times (you might use a progress bar, for instance), and be part of the final ranking. You might choose to give a time limit and require players to enter five campuses before the time limit is reached. A final screen with score and timing should be shown anyway.

Class Structure

All the projects:

Have to start the basic class with the main method. It will create a JFrame, specified below

Will have their own JFrame extending from Java's JFrame. This JFrame will create a JPanel specified below

Will have their own JPanel extending from Java's JPanel

Java Code

It has to be based on the examples given in class and in the textbook. If you intend to use advanced code, clear it with the instructor first.

Suggestions

Use inheritance where appropriate. Use parameters to reuse code. For instance, the questions panel might use a one-panel class that receives different parameters (number of questions, the name of the file with the questions, theme). Use the course examples and your own labs to get started. Start simple: start with something you might be more comfortable with. It might be the main screen, the character movement, or creating one questions/answers panel. Try to follow the lesson's examples and standards.

The instructor will interact with groups and will answer direct questions. Students are expected to think, explore issues, and do research.

Groups do better work than individuals and must pull together. Every member of a group is responsible for the group product. Each member must be involved with all of the activities. Group activity will be closely monitored and necessary changes to groups will happen where appropriate.

Groups have their own unique group space right within this course environment. In groups (accessed through people), you have the ability see who is in your group, post announcements to all members at once, start discussions, add files, and initiate conference meetings with group members.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Database Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

More Books

Students also viewed these Databases questions

Question

Summarize job design concepts.

Answered: 1 week ago