Graphical User Interface - Manage Pet Frame - Engineering Assignment Help

Download Solution Order New Solution
Assignment Task :

Overview 

A VirtuPet is a virtual pet that must be taken care of by an owner. Each owner can have a number of pets which he/she has to take care of. The owner must feed pets or they will go hungry and die. Some pets need different types of care, like Cats which need to be played with. The assignment will be split up into two sections, first you will develop the base classes for the program and then the graphical user interface for the classes.

 

Section 2: Graphical User Interface 

Your application will execute for one owner at one time, the owner’s username and a program time interval will be passed in at the command line. If the owner is new, then no user name should be given and a new owner is created (with CreateOwnerFrame) and a default time interval of 10 seconds is used. The time interval represents the real time it take for 1 hour to elapse for a pet. For example, if 30 seconds is entered in the command line then 1 hour passes every 30 seconds. The ClockThread which is provided will take care of the timing for you and execute the ManagePetFrame.update() method every time interval. The state of each owner pet is stored in a file which is loaded and save when the application starts and exits. 

 

Create Owner Frame 

This frame allows a new owner to be created by entering a username and name as shown in the screen shot. A GridLayout could be used for this frame. When the CreateOwnerButton is pressed, the Manage Pet Frame should be created and the Create Owner Frame should disappear. If the cancel button is pressed, the application should exit. 

 

Create Pet Frame 

This frame appears when the Create Pet button is pressed in the Manage Pet frame. This frame allows new pets to be created for the current owner. This frame may also use a GridLayout. The pet type selector must be a JcomboBox. Look up the documentation on how to use this. Once the Create Pet button is pressed a new pet should appear in the Manage Pet Frame. If the cancel button is pressed, no new pet should be created/ 

 

Manage Pet Frame 

The manage pet frame is the main frame of the game. It contains two panels, a setting panel and a pets panel. The setting panel which has been provided, allows the owner to create new pet and save and exit the application. The setting panel also shows the current time in hours from when the application is started. The pets panel is where the pets that the owner owns are displayed. Each pet has its own panel with the pets panel. Each type of pet will extend the basic pet panel. The pets panel must contain an update() method which will be called by the Clock Thread every hour. 

 

Section 2: Requirements 

1. The following classes should be implemented with appropriate methods and attributes 

2. At least one of the classes must be abstract with at least one abstract method. 

3. All classes including PetGame, which has a main method, will have one or more constructors. 

4. An error message should be displayed if the user tries to interact with a dead pet.

 

This Engineering Assignment has been solved by our Engineering  Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.

Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.