QuestionQuestion

Create a program that allows a student to input their grades for different components of the overall grade for CSCI.
Your program will need to ask the user for:
each numeric assignment score (there are 5 assignments)
each numeric test score (there are 3 tests)
their average numeric quiz score
their average numeric activity score
You must create variables to store each of those values (i.e. you will have 10 for just the above scores)
Your program should then calculate the overall numeric grade and display it to the user. Use the following weights (taken from our syllabus) to calculate the overall grade:
Assignments - 15%
Tests - 60%
Quizzes - 15%
Activities - 10%
To calculate the overall grade, you will need to compute a weighted average.
Note: The example used in the explanation uses a single grade for each category. For the tests and assignments since you have multiple grades from the user, you will need to calculate the average for those categories before trying to apply the weight.

Task:
Before writing your code, you will need to develop an algorithm to solve this problem.
Put this algorithm as comments at the top of your source file.
Code your solution.
Test your solution and refine/tweak as necessary.

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

public class GradeAvg
{
    public static void main(String args[]) {
       // Construct Scanner
       Scanner s = new Scanner(System.in);
       System.out.println("Grade Average Computation Tool:");
       System.out.println("");
       // Query assignment scores
       System.out.println("Assignment scores:");
       double assignment = 0.0;
       System.out.print("Please enter assignment score #"+1+": ");
       assignment += s.nextDouble();
       System.out.print("Please enter assignment score #"+2+": ");
       assignment += s.nextDouble();
       System.out.print("Please enter assignment score #"+3+": ");
       assignment += s.nextDouble();
       System.out.print("Please enter assignment score #"+4+": ");
       assignment += s.nextDouble();
       System.out.print("Please enter assignment score #"+5+": ");
       assignment += s.nextDouble();
       // Average assignment scores
       assignment = assignment / 5;
       System.out.println("");...

By purchasing this solution you'll be able to access the following files:
Solution.java.

50% discount

Hours
Minutes
Seconds
$23.00 $11.50
for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Java Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats