Use a switch statement to calculate a letter grade based on


Use a switch statement to calculate a letter grade based on a numeric average up to 100. Allow the numeric score to be entered in a text field. A Grade button will display the corresponding letter grade in a label.

Grading policy:
90-100
80-89
70-79
60-69
< 60

Hint: You can divide the grade by 10 and store the result in an integer field. Use the integer in your swi tch statement.

Create an applet that displays a grading report in a text area. Text fields include student name, three project grades, two quiz grades, and a final exakgrad e* e. The projects are worth 50 percent of the grade and th -u qTz andfinai are worth 25 percent each.

----A-Pro-e'S'gr button should place the numeric average, the letter grade, and the student's name on a line in the text area as well as clear the text fields. See exercise 7.4 for a hint on finding the letter grade. Modify exercise 7.5 by adding a Complete button that will display the overall average for the class and the number of students processed. elnirmrd: Also display the name of the student with the highest grade.

Write any of the preceding exercises using Swing components. Include keyboard shortcuts and ToolTips on the components. Make sure that Your applet will run in both Internet Explorer and Netscape Navigator. Modify the hands-on example it) this chapter to use Swing components..6 Include keyboard shortcuts and ToolTips on the componenth.

Solution Preview :

Prepared by a verified Expert
Programming Languages: Use a switch statement to calculate a letter grade based on
Reference No:- TGS0665770

Now Priced at $40 (50% Discount)

Recommended (98%)

Rated (4.3/5)