On This Page
Overview
During this assignment, you will:
- Convert your algorithm from assignment 1 into a computer program
- Use a Scanner object to get input from a user
- Use expressions to calculate arithmetic
^ top
Specifications
Write a program to convert temperatures form Celsius to Fahrenheit that operates as follows:
- The application prompts the user to enter a temperature in Celsius degrees.
- The application displays the temperature in Fahrenheit degrees.
Sample Operation
Celsius to Fahrenheit Converter
Enter degrees in Celsius: 100
Degrees in Fahrenheit: 212
Goodbye
Additional Specifications
- The name of the program source code file must be:
TemperatureConverter.java
- Use your algorithm from A1: Information Please! and translate it into code.
If your algorithm was not correct, then either correct it or use the instructor's algorithm shown in WebCT.
- Note that the formula for converting Celsius to Fahrenheit is:
degreesFahrenheit = 9 / 5 * degreesCelsius + 32
- The application must accept decimal entries like
77.5.
^ top
Extra Credit
Adding the following are worth extra credit points:
- Complete the assignment using pair programming. (1 point)
- Read pages 104 to 1-5 and use a
NumberFormat class to display degrees Fahrenheit with one digit to the right of the decimal point. (1 point)
Make certain that your README.txt file describes any extra credit attempted.
^ top
Grading Criteria
The instructor will evaluate your assignment using the following criteria. Each criteria represents a specific achievement of your assignment and has a scoring guide. The scoring guide explains the possible scores you can receive.
Some scoring guides have a list of indicators. These indicators are a sign of meeting, or a symptom of not meeting, the specific criterion. Note that a single indicator may not always be reliable or appropriate in a given context. However, as a group, they show the condition of meeting the criterion.
For information on grading policies, including interpretation of scores, see the course information page.
Program Compilation
- 4: Source code compiles with no errors or warnings
- 2: Source code compiles with warnings
- 0: Does not compile or wrong file turned in
Functionality
- 10: Demonstrates mastery of the assignment
- Has extra features or demonstrates techniques beyond the assignment
- Applies concepts from the lesson(s) appropriately
- Meets all specifications (see above) with particularly elegant solutions
- No errors encountered during operation
- All test cases pass
- 8: Has all the functionality expected of the assignment
- Demonstrates many techniques from the lesson
- Meets all specifications (see above)
- Implementation seems more complicated than necessary.
- May have one minor error
- All test cases pass
- 6: Has most of the functionality expected of the assignment
- Demonstrates some techniques from the lesson
- Meets all but one of the specifications (see above)
- Implementation seems excessively complicated.
- May have 2-3 minor errors
- All but one test case passes
- 4: Has some of the functionality expected of the assignment
- Demonstrates some techniques from the lesson
- Meets at least 1/2 of the specifications (see above)
- Implementation seems excessively complicated.
- May have more than 3 minor errors
- At least 1/2 of all test cases pass
- 2: Serious functional problems but shows some effort and understanding
- Meets less than 1/2 of the of the specifications (see above)
- Has a major error or many minor errors
- Implementation seems very convoluted
- Demonstrates few techniques from the lesson
- Less than 1/2 of all test cases pass
- 0: Does not execute or no specifications met
Programming Style
- 4: Code is well-documented
- Name, date, and program description in file comment block
- Follows specified format for file comment block
- Proper use of spaces around operators
- No tab characters are present in the source code
- As described in How To Document and Organize Java Code
- 3: Code has minor documentation errors
- Has 1 documentation error
- 2: Code has some documentation errors
- Has 2-3 documentation errors
- 1: Code has many documentation errors
- Has more than 3 documentation errors
- 0: No apparent attempt to document code
REAME.txt File
- 2:
README.txt file submitted with specified information included
- 1:
README.txt file submitted but some information was missing
- 0: No
README.txt file submitted
Maximum Score: 20, plus extra credit
^ top
What to Turn In
Submit your assignment following the instructions for homework. Include the following items for grading:
README.txt file
TemperatureConverter.java
- Any other source code needed to make your program function.
You must submit all the files needed to make your assignment function properly. Do not assume that the instructors has any files. Your assignment must work as submitted.
^ top
Home
| WebCT
| Announcements
| Schedule
| Expectations
| Course info
Help
| FAQ's
| HowTo's
| Links
Last Updated: September 18 2005 @18:33:26
|