Create a sub-method to read the grades

Assignment Help JAVA Programming
Reference no: EM131587624

ProblemDescription

This assignment is to develop a simple grade bookapplication. A grade book has multiple rows and multiple columns. Each column represents an assignment and each row records the grades of a student from those assignmentsas illustrated below.

 

1

2

3

...

n

1

89.50

97.00

75.00

...

100.00

2

95.00

89.90

85.50

...

92.60

...

...

...

...

...

...

k

92.50

99.00

100.00

...

93.00


1 2 3 ... n
1 89.50 97.00 75.00 ... 100.00
2 95.00 89.90 85.50 ... 92.60
... ... ... ... ... ...
k 92.50 99.00 100.00 ... 93.00

When the application starts, it should prompt the user to enter the number of students and the number of assignments. After receiving those numbers, the application should prompt the user to enter grades.
After all grades are entered, the application should then display all the grades in the grade book. The grades of each student should be displayed in a single line. After all grades are displayed, the application should produce a report of the average grades of students. In addition, it should generate a report about the statistics of the assignments including the average score, the highest score, and the lowest score of each assignment.
Here is a sample run of three students, four assignments and 12 test case grades:

Assignment Requirements
The following specific requirements must be met:
- The grade book should be implemented as a two-dimensional array
- Create a sub-method to read the grades, store the grades in a two-dimensional array (grade book), and then return the grade book to the caller.
- Create a sub-method to display all grades in the grade book passed into the method as a parameter
- Create a sub-method to compute and display the average grades of the students in the grade book passed into the method as a parameter
- Create a sub-method to calculate and report the statistics of all assignments in the grade book passed into the method as a parameter
- The main method of the program must call those methods to read the grade book and produce those reports
- If either the number of students or the number of assignments or both is not positive, you program should report the error and terminate the execution as shown in the example below:

- Your program should pass the following test cases:
a. Negative assignments input
b. Negative students input
c. 3 students, 4 assignments, grades matching the test case values above
- Include a screenshot of the sample run (run through your program) along with the test cases in your screenshots.
Submission Requirements
Your assignment submission should include the following items:
- The Java source code file (i.e., *.java file)
- The screen captures of the test cases you run

Submit all those files above into the dropbox of this assignment.

Reference no: EM131587624

Questions Cloud

Find the company total and average revenues : Application exercise. Suppose that a company sold q1 = 50, q2 = 40, q3 = 30, and q4 = 20 units of goods numbered 1, 2, 3, and 4, respectively.
What counter measures are there for these attacks : Question: What type of attacks are banks (through their ATMs) exposed to and what counter measures are there for these attacks?
Review the relationship between the law and ethics : The laws are not always compatible with the ethical positions nurses sometimes take. This week's Discussion focuses on such a dilemma.
Towards an early warning system for network faults : An interesting idea (Gupta. and Prabhat, 2016) is to predict network faults so providing quick faults detection, thus providing network administrators.
Create a sub-method to read the grades : Create a sub-method to read the grades, store the grades in a two-dimensional array (grade book), and then return the grade book to the caller
Which element is not related with turnaround management : Which element is not related with turnaround management-? Certain changes in the external environments of business organizations demand.
Review case study of mr and mrs garcia : Mr. and Mrs. Garcia have a total of $100,000 to be invested in stocks, bonds, and a money market account. The stocks have a rate of return of9%/year.
Technology and devices impact the pillars of triple aim : In reference to ACOs. How can the use of technology and devices impact the three pillars of the Triple Aim methodology
Construct a mind map for gastritis : Explain how the factor you selected might impact the pathophysiology of GERD, PUD, and gastritis.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Calculate the total remaining health of each army

Pass in and set each army (an army is an array list of Warriors). Calculate the total remaining health of each army. Print out the attack strength of each warrior of each army

  Write a method for computing tax

Financial application: print a tax table- gives a program to compute tax. Write a method for computing tax using the following header

  Define multiple classes via inheritance

Your task for this assignment is to define multiple classes via inheritance. Your classes should implement various "snacks" including "M&Ms", "Popcorn", etc.

  Simple java programming tests

The java coding that accepts a distance it kilometers, sends it to a method which converts it to miles, and then displays the result

  Print the contents of the array

Prepare a second loop that prints the contents of the array

  Write a program with an exception handler

Write a program with an exception handler that deals with nonnumeric operands; then write another program without using an exception handler to achieve the same objective.

  Allows a user to select a favorite basketball team

Write an application that allows a user to select a favorite basketball team from a list box. Include at least five teams in the list, and display the chosen team in a text field after the user makes a selection. Save the file as JBasketball.java. :

  Write a statement that prints the number of characters

Write a statement that prints the number of characters in a String object called myString. Write statements to prompt for and read user's age using Scanner variable

  Write a small program that continually reads in user values

Write a small program that continually reads in user values and calculates the average of all values. The program should first ask the user for the amount of values to be entered. Upon storing this value, the program should proceed to read in that am..

  Calculates the minimum maximum and average for each quiz

Write a Java application that calculates the minimum, maximum, and average for each quiz. Print the output results in a table format using a text area. Use loop and if statement control structures as well as Array data structure

  The code must take into account

The code must take into account leap year and adding or subtracting between years. Write two additional methods that you come with on your own as well.

  Online reservation and bookeeping software for beauty salon

Online Reservation and Bookeeping Software for Beauty Salon - develop a software (with Java) for a beauty salon, which will replace a current paper based system, so that people could make reservations online and administrator could do book keeping.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd