You are on page 1of 27

Java Programming

Creating a Final Project

1 Copyright 2013, Oracle and/or its affiliates. All rights


reserved.
Creating a Final Project

Overview

This lesson covers the following topics:


Develop a final project
Present the final project
Develop written documentation for the final project

2 Copyright 2013, Oracle and/or its affiliates. All rights


reserved.
Creating a Final Project

Getting Started on the Final Project

To apply your knowledge of Alice and Java and fine tune


your presentation skills, you will work on a final class
project.
Review the following project descriptions and choose a
project to develop.
Working in groups or individually, choose a project that
meets your interests and skill level.
At the end of the project, you will give an oral
presentation including visual aids to demonstrate your
project solution.

3 Copyright 2013, Oracle and/or its affiliates. All rights


reserved.
Creating a Final Project

Project 1: Space Tour

This project will be developed in Alice 3.


You are the captain of a spacecraft that gives tours in
outer space.
The tour begins in the center of the universe at the sun,
and should include at least three planets, including
Mercury, Venus, and Earth.
The passengers choose the planet of their choice to
visit.
The captain provides passengers a description about the
planet, including its distance from the sun and size.

4 Copyright 2013, Oracle and/or its affiliates. All rights


reserved.
Creating a Final Project

Project 1: Space Tour Requirements

Project requirements:
The animation must include an introduction.
The traveler uses mouse click event listeners to direct
the spacecraft.
The spacecraft must include collision control so it does
not go through a planet.

5 Copyright 2013, Oracle and/or its affiliates. All rights


reserved.
Creating a Final Project

Project 1: Space Tour Requirements (cont.)

Project requirements:
The planets must rotate and include titles. Titles must
rotate with the planet.
Planets must continue rotating in a continuous loop
throughout the journey.
Facts are provided at the arrival of each planet using
audio.

6 Copyright 2013, Oracle and/or its affiliates. All rights


reserved.
Creating a Final Project

Project 1: Space Tour Example Images

7 Copyright 2013, Oracle and/or its affiliates. All rights


reserved.
Creating a Final Project

Project 2: Jeopardy

This project will be developed in Java using Eclipse.

Jeopardy! is an American television quiz show featuring


trivia in a variety of subjects including: history, literature,
the arts, pop culture, science, sports, and geography.

8 Copyright 2013, Oracle and/or its affiliates. All rights


reserved.
Creating a Final Project

Project 2: General Requirements

In this project, create a variation on the television game.


The goal is to answer the most questions.
The game can be played as a quiz for one person or as
a game between two players or teams.
The player or team that accumulates the most points is
the winner.
The moderator should keep track of the points for each
team.

9 Copyright 2013, Oracle and/or its affiliates. All rights


reserved.
Creating a Final Project

Project 2: Jeopardy Round Categories

There are three categories of questions.


There are five questions in each category, each worth
100 to 500 points.
100 point questions are the easiest.
The questions get progressively harder as the point
values increase.

10 Copyright 2013, Oracle and/or its affiliates. All rights


reserved.
Creating a Final Project

Project 2: Jeopardy Round Categories Example

Here is an example of how the categories could look.

11 Copyright 2013, Oracle and/or its affiliates. All rights


reserved.
Creating a Final Project

Project 2: Jeopardy Round Functionality

One player/team clicks a cell in the grid (Ill take


operators for 100 points.).

A question is displayed. The moderator clicks to display


the answer.
If the answer is correct, the points are added to the
player/team score.
If the answer is incorrect, the team loses that amount.
The other player/team now gets to choose a cell in the
grid.

12 Copyright 2013, Oracle and/or its affiliates. All rights


reserved.
Creating a Final Project

Project 2: Question and Answer Example

13 Copyright 2013, Oracle and/or its affiliates. All rights


reserved.
Creating a Final Project

Project 2: Double Jeopardy Round

After all 15 questions have been attempted, the teams can


play the Double Jeopardy round.
In this round, the amounts range from $200 to $1,000.
This is double what the values were in the Jeopardy
round.
Play is the same in this round as it was in the previous
round, except there are three new categories.
In the two player/team game, the team that scores the
most points wins.

14 Copyright 2013, Oracle and/or its affiliates. All rights


reserved.
Creating a Final Project

Project 2: Double Jeopardy Round Example

15 Copyright 2013, Oracle and/or its affiliates. All rights


reserved.
Creating a Final Project

Project 2: Final Jeopardy Round

If a tie occurs, the Final Jeopardy round is played to


determine the winner.
In this round, one uncategorized question is displayed
and each team places a point wager on the answer they
believe is correct.
The maximum wager of a team is their total points
acquired thus far in the game. Each team that correctly
answers the question will add the points wagered to their
total score.
The team with the most points wins.

16 Copyright 2013, Oracle and/or its affiliates. All rights


reserved.
Creating a Final Project

Project 2: Final Jeopardy Round Example

17 Copyright 2013, Oracle and/or its affiliates. All rights


reserved.
Creating a Final Project

Project 3: Inventory Program

This project will be created in Java using Eclipse.

Create an inventory program that can be used for a range


of different products (cds, dvds, software, etc.).
For each part, build upon the last part so that both the
old and new requirements are met.
There are several parts to the project. The following
slides offer an overview of the parts.
See the practice for this lesson for the complete project
description.

18 Copyright 2013, Oracle and/or its affiliates. All rights


reserved.
Creating a Final Project

Project 3: Inventory Program Part 1

1. Choose a product that lends itself to an inventory (for example,


products in your home, school, or workplace: office supplies;
music CDs; DVD movies; or software).
2. Create a Product class.
3. Create two constructors.
4. Write getter/accessor and setter/mutator methods for four
instance variables.
5. Override the toString() method from the object class that will show
a description of each object that includes the variable values.
6. Create a Java main class called ProductTester that creates and
initializes six Product objects.
7. From ProductTester, display the product number, the name of the
product, the number of units in stock, and the price of each unit.
19 Copyright 2013, Oracle and/or its affiliates. All rights
reserved.
Creating a Final Project

Project 3: Inventory Program Part 2

1. Add a Scanner to ProductTester to ask the user if they would like


to add products.
2. Create a method in the Product class that will calculate the value
of the each inventory item, using the quantity on hand and price.
3. Display the information in ProductTester for these products as
was in Part 1. In addition, include the inventory value for each
product by modifying the toString() method in Product.

20 Copyright 2013, Oracle and/or its affiliates. All rights


reserved.
Creating a Final Project

Project 3: Inventory Program Part 3

1. Modify ProductTester so the application can handle multiple items


using an array.
A. Create a method in the Product class that will calculate the value of
the each inventory item, using the quantity on hand and price.
B. Display the information in ProductTester for these products as was
in Part 1. In addition, include the inventory value for each product by
modifying the toString() method in Product.
C. Implement the Comparable Interface to create another method in
the Product class to sort the array items by the name of the product.

21 Copyright 2013, Oracle and/or its affiliates. All rights


reserved.
Creating a Final Project

Project 3: Inventory Program Part 4

1. Modify the Inventory Program by creating a subclass of the


product class that uses one additional unique feature of the
product you chose (for the DVDs subclass, you could use movie
title, for example).
2. In the subclass, create a method to calculate the value of the
inventory of a product with the same name as the method
previously created for the product class. The subclass method
should also add a 5% restocking fee to the value of the inventory
of that product.
3. Modify the output to display this additional feature you have
chosen and the restocking fee.

22 Copyright 2013, Oracle and/or its affiliates. All rights


reserved.
Creating a Final Project

Presentation Requirements

Your final project will include a presentation which should


include:
Introduction and high level outline of what you are
presenting
Project overview
Demonstration
How the project requirements affected your design
Summary
Questions and answers

23 Copyright 2013, Oracle and/or its affiliates. All rights


reserved.
Creating a Final Project

Presentation Rehearsal

Be sure to sufficiently rehearse your presentation and


demonstration.

Review the following documents about public speaking


available in Section 0 Course Resources:
Steps to a Great Presentation document
10 Techniques for Effective Public Speaking

24 Copyright 2013, Oracle and/or its affiliates. All rights


reserved.
Creating a Final Project

Project Documentation Requirements

The project will include written documentation. This


document should include the following sections:
Overview: Describe the problem and mention the
development tool and most important features.
Design: Explain the high-level design of your solution.
Testing: Describe how you tested your solution.
Challenges: Explain any challenges you encountered.
Conclusion: Summarize the project including what you
learned from working on this project.

25 Copyright 2013, Oracle and/or its affiliates. All rights


reserved.
Creating a Final Project

Final Presentation Rubric

Your project will be evaluated using a rubric that evaluates


your work against the following criteria:
Organization
Animation/Interface
Code
Presentation/Demonstration
Documentation

The rubric is available in Section 0 Course Resources.

26 Copyright 2013, Oracle and/or its affiliates. All rights


reserved.
Creating a Final Project

Summary

In this lesson, you should have learned how to:


Develop a final project
Present the final project
Develop written documentation for the final project

27 Copyright 2013, Oracle and/or its affiliates. All rights


reserved.

You might also like