Assignment
Number
1 2 3 4 5 6 7 8 9
Assignment
Number
Assignment Due
Date
Points
1 Write a program that prompts the user for the number of ounces of a package and prints the cost based on the following table:
WeightRate
Up to 16 oz $3.50
Up to 32 oz $3.95
Up to 48 oz $5.15
Up to 64 oz $6.35
Up to 80 oz $7.55
6/1
Graded 6/4
10

2 Write a program that prompts the user for a grade and the number of credits of a course and computes the GPA for the courses. The program should prompt the user to see if there is another course. You will need to use the RgInput.java file and in particular the methods readChar() & readDouble().

Note: The GPA is computed by GPA = sum of (credits * grade_point)/sum of credits. Where the grade_point is 4 for A, 3 for B, 2 for C, 1 for D and 0 for F. Do not implement + or - letter grades.

6/5
Graded 6/11
15

3 Modify the Rot13.java program so that it contains a method
char rotate13(char c)
that handles both upper and lower case letters.
6/5
Graded 6/25
15

4 Modify the Shipping_costs.java class so that it contains a method
public ???? del_item(int w, int q)
that will delete weight w of quantity q from the shipping costs. The class should insure that the weight or quantity does not become negative. Decide what to do should such a case occur. Output from the class in unacceptable.

Be sure to test in the test_shipping_class.java class.

6/11
Graded 6/25
15

5 Create a class (and a testing program class) that will allow you compute the GPAs for several classes entered from the keyboard.

The program is to print a transcript showing course name, credits, grade and total GPA.

6/11
Graded 6/25
20

6 Add a sort() method using the selection sort as done in class to the Be sure to test in the Play_Lotto.java class. 6/11
Graded 6/25
20

7 Modify the Shipping.java class. so that it comutes the total shipping costs.

This is an in-class assignment that can no longer be subimitted.

6/12
Graded 6/25
20

8 Exam question.

Can no longer be submitted.

6/18 20

9 Write a GUI application that will accept a filename in a text filed and display that file both as its original and ROT13'ed in two seperate text areas. The program should display any error messages as dialog box and accept the filename either as enter in the text field or via a submit button. 6/25 20