# Answer to Question #19879 in Java | JSP | JSF for Sayed Abdullah Almousawi

Question #19879

Write a Java program to:

o Read an integer N <= 50,

and read N long integers into array ID and

N float numbers into array Score of size 50;

These two arrays represent the ID numbers and the scores of N students in a class;

o Find the maximum score, MaxScore, of students in this class;

o Compute the Percent array such that Percent[I] = 100.0 *Score[I] / MaxScore

for I=1,……,N;

o Print a three columns table with headings ID Number, Score, Percentage for three arrays ID, Score, and Percent respectively. Use formatted output.

You should write and use the following methods in your program:

Method readArray that reads the first N entries of arrays ID and Scores.

Method findMax that returns the maximum entry for the first N cells of array Scores.

o Read an integer N <= 50,

and read N long integers into array ID and

N float numbers into array Score of size 50;

These two arrays represent the ID numbers and the scores of N students in a class;

o Find the maximum score, MaxScore, of students in this class;

o Compute the Percent array such that Percent[I] = 100.0 *Score[I] / MaxScore

for I=1,……,N;

o Print a three columns table with headings ID Number, Score, Percentage for three arrays ID, Score, and Percent respectively. Use formatted output.

You should write and use the following methods in your program:

Method readArray that reads the first N entries of arrays ID and Scores.

Method findMax that returns the maximum entry for the first N cells of array Scores.

Expert's answer

Unfortunately, your question requires a lot of work and cannot be done for free.

Submit it with all requirements as an assignment to our control panel and we'll assist you.

Submit it with all requirements as an assignment to our control panel and we'll assist you.

## Comments

## Leave a comment