BCIS JAVA HOMEWORK

profileMark1987
hw.pdf

Student:

BCIS 3680 Assignment 1 Grade Sheet

Points Grades

Uses JOptionPane method correctly to get daily temperatures 2

Uses parseDouble method correctly to convert string to double 2

Declares the daily temperature array 1

Stores daily temperatures to proper elements in array 2

Calls calcAverage() method to obtain weekly average 1

Calls convertTemp() to convert Fahrenheit to Celsius 1

Calls displayResults() to show results dialog box 1

Defines return type (double) correctly 1

Defines parameter (double array) correctly 1

Uses for loop properly to access every element in double array

Number of iterations controlled by array length 2

Loop index used to access array element 2

Array element added to total 1

Calculates average and returns it as double 2

Defines return type (float) correctly 1

Defines parameter (double) correctly 1

Conversion is done correctly 1

Casts conversion result before returning it 1

Defines return type (void) correctly 1

Defines parameters (double and float) correctly 1

Creates DecimalFormat object with correct formatting pattern 2

Uses proper method of DecimalFormat object to format numbers 1

Displays information correctly 2

Uses class and method names as specified in instructions 3

Folders named and zipped properly 2

Hard Coding

Any hard coding (per occurrence) -5

Total 35 -

main() Method (10)

calcAverage() Method (9)

Other (5)

convertTemp() Method (4)

displayResults() Method (7)