Assignment 2 - Wheel of Fortune


Check for new announcements


Due Dates | Overview | Goals and Objectives | Rules and Game Analysis | Design | File Format | Example Output | Coding | Testing | Hints and useul classes | Questions | Handin | At Home | Announcements | Authors

Due Dates

Design: ???
Code: ???

Overview

Introduction to gameplay and purpose.

Goals and Objectives

With this assignment, you must analyze the problem, design an object-oriented solution, implement this solution, and test and debug the program to ensure it performs correctly. The goals of this assignment are to: The objectives of this assignment are:

Analysis

The first step of incremental software development is analysis; we need to understand the problem and what features the solution must incorporate. With this understanding, we then build a requirements specification that details the behavior the program should have. For this problem, the rules of the game serve as the requirements. The solution should meet the requirements specification outlined below.

Game Rules and Specification


Object-Oriented Design

After analyzing the problem, outlining the features that are required of the solution, we now need to design an object-oriented solution to the problem. Some of the design decisions have already been made, and our solution must make use of those features.

File Format

A specified file format has been provided for you. You can view Samples for each format:
You must follow the conventions for console output. Which are ....

Coding

After completing the analysis and object-oriented design, we can now begin to code the solution. You should think of this step as incremental development. You should start coding by finishing a small task that tests part of your solution. The first part of your coding may be to simply create all of the .java files, adding header comments and class stubs. Then, you can add a constructor method for the classes. After that, add the get/set methods.

As you are coding, don't forget to follow the commenting and style requirements. Also make sure to examine the file and output formats that are written for you already by viewing the examples. In addition, you should refer to your design document throughout the coding process. You are required to bring your design document to the lab so consultants and TAs can refer to it when answering questions.


Testing and Debugging

Throughout the coding process, you should test your code to make sure that methods you add are correct. Even after your code is completed, you are still not done until you have thoroughly tested your program. Some examples of things to test for are: This is only a short list of possible errors; you need to test for these and many others.

Hints and Useful classes


Hints


Useful Classes: What you will and won't need

Much of this program will reply upon good input/output to both the console and also various data files. Several standard JAVA classes work together in a fairly complex way to accomplish this. Use the following Java API classes to complete this program. Click on links below for Java API documentation.

Useful classes in the Java I/O package (import java.io.*): Useful classes in the Java util package: (import java.util.*): Useful objects (see the Java API documentation for System): DO NOT USE ANY OF THE JAVABOOK2 CLASSES!

Questions to answer

  1. Question 1
  2. Question 2

Handin Instructions

Design

See the design page.

Code

Use the handin program to handin all your source code and the questions document. You will need to handin all classes (.java files) you have written that are needed by your program to compile and run as well as questions.txt. See Step 5 of Lesson 2 for instructions on how to use the handin program. Make sure to review the commenting and style requirements. These files must be handed in anytime prior to the due date. Note: You may hand in your files before the deadline as many times as you wish. We suggest that you use your hand-in directory to keep your most recent working copy as you develop your solution.

At Home

Read the At Home Instructions before deciding to work from home. There are many details to get right before you can successfully complete course lessons and assignments from home.

Be sure to read the instructions for completing and handing in course work.

Download the assign2.zip file, unzip as explained in the athome instructions and open the project in CodeWarrior to begin work. The CodeWarrior versions installed at home are different from that in the lab. You may need to convert the project file. Just say "yes".


Announcements

Any revisions, answers to frequently asked questions, and other announcements will be posted here

Authors

© 2003 mc-clone