Programming Assignment #1: Runner's Calculator
Due Date: Friday, March 31

Late Penalty

If not turned in on the due date, there will be a late penalty of 5 points per day up to a maximum of 25 points.

The Problem

Write a program that allows the user to calculate his or her running pace, given the numbers of miles run and the time. The user should be able to input total running time in terms of hours, minutes and seconds. The user should be able to input total miles run in terms of miles or kilometers. Upon user's request, the program should report the runner's pace in minutes per mile.

The RunnersCalculator Applet.The user interface for this program should be a Java applet.


Sample Solution to Assignment 1

Sample Calculator

Design Specification: The Runner's Calculator

Optional Features

The specifications laid our here are minimum specifications. Feel free to give your program whatever optional features you like. Enhancements might include providing additional calculations (e.g., miles per hour), or adding functionality so that the user's inputs are tested for validity--e.g., an error message could be displayed if the user puts a negative number into the miles field.

Evaluation Criteria. Your program will be evaluated on the following basis:

General Hints and Suggestions.

Upload Source Files

Use the Trinity College Blackboard CourseInfo Digital Drop Box to submit your files: RunnersCalculator.java and RunnerCalcGUI.java classes. NOTE: Always select the LOGOUT option to exit CourseInfo. Closing the browser window Does Not terminate your CourseInfo session

Hand In Hardcopy

Hand in a hard copy of your source programs in class on the due date.

PLAGIARISM: READ THIS CAREFULLY!

This is an individual or partner programming project. You may choose to work on it completely by yourself or with 1 other classmate as your partner. If you choose to work alone, it is expected that the work you submit will be your work entirely. If you choose to work with a partner, then the work you submit should be done entirely by you and your partner. It is assumed that you and your partner worked on every aspect of the program together. In this case a single copy of the program can be handed in. If you feel you can write the program by yourself, you should do so since that will probably give you the most effective learning experience.
This does not mean that you cannot talk to classmates about your work. It is okay to discuss in general how you are tackling a particular problem -- e.g., "I used a String to store the value input by the user." You may also give help to or receive help from a classmate about a particular error message or program bug. "That error means you must have forgotten a semicolon."

However, you may not copy another person's code or solution, whether from a classmate or from someone who took the course before or from someone you find on the Internet, in whole or in part, either by hand or electronically, and submit it as your own. If you need help with either design or programming, you should consult with the Instructors or TAs or with the CPSC Study Hall Consultants. If you receive substantial help from another student or a TA or an Instructor, you must document it in your program's header by providing the name of the person who helped you and a brief description of the type of help you received. Getting help on an assignment and not documenting it is a form of plagarism.