Write a complete Java program with comments in main and in each method. Create your own names for variables, methods and parameters. Design a Java dass that reads in a series of records from a file and processes them as follows: Sample input Your program must work for all values, not just for this samplet: X1 92 78 84 95 99 x2 98 85 83 81 79 idtern 88 83 75 88 83 final 89 81 77 81 89 1. main will invoke a method to read the input data. The method will a. read a record containing the name of an exam and five grades (don't store all 5!) b. compute the lowest grade c. store the name in an array d. store the lowest grade in a parallel array. Repeat this until all records have been read in. There will be no more than 80 records. Finally, the method will return to nain the number of records read. 2. main will invoke a method to do two things. a. It will add 5 pts to the grade for any exam that is not named "final". b. It will count how many grades in the array are greater than the next element in the array and retum the count back to main for main to print. Remember to print the count in main.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Write a complete Java program with comments in main and in each method. Create your own names for
variables, methods and parameters.
Sample input Your program must work
for all values, not just for this
samplet:
xl 92 78 84 95 99
x2 98 85 83 81 79
idtern 88 83 75 88 83
final 89 81 77 81 89
Design a Java dass that reads in a
series of records from a file and
processes them as follows:
1. main will invoke a method to read the input data. The method will
a. read a record containing the name of an exam and five grades (don't store all 5!)
b. compute the lowest grade
C. store the name in an acray
d. store the lowest grade in a parallel array.
Repeat this until all records have been read in. There will be no more than 80 records.
Finally, the method will return to nain the number of records read.
2. main will invoke a method to do two things.
a. It will add 5 pts to the grade for any exam that is not named "final".
b. It will count how many grades in the array are greater than the next element in the
array and retum the count back to main for main to print. Remember to print
the count in main.
Transcribed Image Text:Write a complete Java program with comments in main and in each method. Create your own names for variables, methods and parameters. Sample input Your program must work for all values, not just for this samplet: xl 92 78 84 95 99 x2 98 85 83 81 79 idtern 88 83 75 88 83 final 89 81 77 81 89 Design a Java dass that reads in a series of records from a file and processes them as follows: 1. main will invoke a method to read the input data. The method will a. read a record containing the name of an exam and five grades (don't store all 5!) b. compute the lowest grade C. store the name in an acray d. store the lowest grade in a parallel array. Repeat this until all records have been read in. There will be no more than 80 records. Finally, the method will return to nain the number of records read. 2. main will invoke a method to do two things. a. It will add 5 pts to the grade for any exam that is not named "final". b. It will count how many grades in the array are greater than the next element in the array and retum the count back to main for main to print. Remember to print the count in main.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY