Question: I need help with this homework problem Write a program to manage scores of students. The program reads data from user. A user first enters

I need help with this homework problem

Write a program to manage scores of students. The program reads data from user.

  1. A user first enters the number of students.
  2. Each student enrolled in following 5 courses: Math, Programming, History, Engineering, and Security
  1. The user enters each students data in a row in following format (individual data elements are separated by white space):

[Name] [Math Score] [Programming Score] [History Score] [Engineering Score] [Security Score]

    • The range of score is 0 to 100 (integer).
    • The format of [Name] is a single word (string) without space (or any white spaces)
  1. After entering all score data, the program shows following menu, repeatedly:

[1] Show average scores of each student in A-B-C-D-F format. [2] Show average score of each student in numbered format. [3] Show average scores of each course (with course title). [4] Show the top 3 highest average (without student name). [5] Show the top 3 highest score of each course (with course title). [6] Exit

  1. Requirements:
    • Use at least one (1) two-dimensional array.
    • No syntax and run-time errors.
    • Use decimal (float/double) for average values (2 decimal digits).
    • Define and use a method per menu item, except menu 6. For example, for menu item 1:

      public static void displayStudentAverageInLetter()

    • You are not allowed to use ArrayList (or any other Java Collection Framework class)
    • Assume that a user always enters data in the correct format.
    • Extra Points (10 points): Display the top 3 highest average scores with student name. (menu item 4)
  2. Sample run:

    Enter number of students: 6 Enter Data for Student-1: James 100 50 75 78 98 Enter Data for Student-2: John 89 70 85 56 88 Enter Data for Student-3: Jane 70 90 55 86 78 Enter Data for Student-4: Tom 78 75 5 88 99 Enter Data for Student-5: Bob 86 56 95 91 100 Enter Data for Student-6: Alex 70 80 95 86 77 ============================================= [Select Menu] 1 Average ------------------------ James: B John: C Jane: C Tom: D Bob: B Alex: B ----------------------------------- [Select Menu] 2 Numbered Average ------------------------ James: 80.20 John: 77.60 Jane: 75.80 Tom: 69.00 Bob: 85.60 Alex: 81.60 ----------------------------------- [Select Menu] 3 Course Average ------------------------ Math: 82.17 Programming: 70.17 History: 68.33 Engineering: 80.83 Security: 90.00 ----------------------------------- [Select Menu] 4 Top 3 Highest Scores ------------------------ 85.60 81.60 80.20 ----------------------------------- [Select Menu] 5 Top 3 Highest Scores by Courses ------------------------ Math: 100, 89, 86 Programming: 90, 80, 75 History: 95, 95, 85 Engineering: 91, 88, 86 Security: 100, 99, 98 ----------------------------------- [Select Menu] 6 Thank you!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!