Purchase Solution

A java program to calculate grades

Not what you're looking for?

Ask Custom Question

Write a java application that accomplishes the following tasks (similar to the program assignment we did in CSC212 yet with built in exception handling):

1) Ask the number of homework assignment students have submitted in a semester

2) Calculate the letter grade the student has earned based on the average of these assignments.

Note:

1) Assume the full score for each assignment is 100. Student will get 0 for each unsubmitted assignment.

2) Student's letter grade is based on the average of all their assignments

90 -- 100 A

80 -- 89 B

70 -- 79 C

60 -- 69 D

0 -- 60 F

3) The program needs to have built in Exception handling.

After you are done, zip the source file along with screen shot of the output and send

Purchase this Solution

Solution Summary

This solution shows a Java program that calculates a student's grades. It demonstrates good programming structure and provides a detailed explanation of what the program is doing.

Solution Preview

This solution has three parts. The first part prompts the user for
input and reads in the grade data. This is done by first prompting
the user for the number of grades and then using a for loop to
repeatedly ask for the scores. As each score is entered a running
total is calculated so that we can generate the average score. The
following code illustrates this.

<pre>
System.out.print("How many homework ...

Purchase this Solution


Free BrainMass Quizzes
Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Javscript Basics

Quiz on basics of javascript programming language.