Syllabus: Grading, Policies, Office Hours
Calendar of Events: topics & homework

Homework #1: Fahrenheit/Celsius Conversion
50 points, due 9/26/2000 at the beginning of class for sections -01 & -02, due 9/28/2000 at the beginning of class for section -50.

Create an Java application that will convert Fahrenheit temperatures to Celsius and vice versa. The first Input Dialog box should ask the user to pick the direction of conversion.The directions should be labeled with numbers, not letters.

The second Input Dialog box should ask for the temperature to be converted. See below for examples of each box.

The program should respond to the inputs with a Message Dialog box that gives both temperatures (the original temperature and the converted temperature). Be sure to label the two temperatures. You decide what icons to use and what text to put in the title bars.See below for two examples.

Helpful hints:

  1. Think of the user when designing the Dialog Boxes: is it obvious to the user what he/she is supposed to do?
  2. Is it obvious what the result Message Dialog box is saying?
  3. Use proper style conventions in your source code.
  4. A formula for converting Celsius temperatures to Fahrenheit is as following: F = C * 9/5 + 32 .

Turn in a printout of your source code and a diskette with the Java file on it. Name the Java program with your last name and first initial and the number "1". EX: BookA1.java (note: I'm VERY picky about the name of the file, including capitalization.) Be sure that your diskette is labeled with your name.

Grading criteria:

1. does it compile & run? 22
2. correct processing of the information 15
3. user-friendliness: good labeling in the dialog boxes 5
4. program source code is commented, logically laid out, and follows style conventions 5
5. files properly labeled 3
TOTAL POINTS POSSIBLE: 50

syllabus | calendar (day) | calendar (evening) | grades
DSMIS Dept. | SLU School of Business | Saint Louis University
 
all rights reserved. copyright 2000, Ann Book.