Question: I have this program that I've been working on that I managed to get running with help, however it's not printing the letter grades of

I have this program that I've been working on that I managed to get running with help, however it's not printing the letter grades of the students. I have the instructions for the lab below and links to the current version of the lab, names and student files.

LAB09, Array of objects Binary Search, Sequential Search

SPECIFICATIONS

Start with Lab08

1. Instead of doing a sequential search through the names file, load the file into two parallel arrays. Parallel arrays are arrays that are linked positionally. For this application, create an array for the student number and an array for the student name. This should be done in main.

2. Do a binary search to locate the student name. Use a method for the binary search. See Java13BinarySearch and Java13BinarySearchTrace.

3. Set up the letter grade and low range in parallel arrays. Create an array for the low end of the range and an array for the letter grade. This should be done in main

4. Convert the average to a letter grade.

Use a method and a sequential search to select the letter grade.

Instead of doing an == comparison, use a >= comparison on the low end of the grade range. FOR EXAMPLE:

First time through the search loop, if average is >= low (97), then grade is an A+

If not an A+, then average MUST be 96 or less, so if average >= low (93), then grade is an A

If not an A, then average MUST be 92 or less, so if average >= low (90), then grade is an A-

Etc.

Exit the search when the correct grade is found or when the search is over

Grade low - high

A+ 97%-100%

A 93%-96%

A- 90%-92%

B+ 87%- 89%

B 83%- 86%

B- 80%- 82%

C+ 77%- 79%

C 73%- 76%

C- 70%- 72%

D+ 67%- 69%

D 63%- 66%

D- 60% - 62%

F 00%- 59%

INPUT

File: Student file Lab09StudentFile.txt

Record: Student record

Field Data Type

Student id# 4 numbers (ex. 1234)

Ten test scores integers (valid numbers are 0 -100)

INPUT

File: Student name file Lab09Names.txt

Record: Student name record

Field Data Type

Student id# 4 numbers (ex. 1234)

Student name String

OUTPUT

File: Grade Report file LAB09Report.txt

Record:

Student Grade Report, sorted by Name

ID# Name /---------------------TEST Scores----------------------/ Total Adj Total Avg Grade

xxxx xxxxxxxxxxxxxxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxxx xxxx xxx xx

xxxx xxxxxxxxxxxxxxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxxx xxxx xxx xx

xxxx xxxxxxxxxxxxxxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxxx xxxx xxx xx

Total students = xx

Here's a link to what I have so far for lab09.--> https://pastebin.com/qKqGP4dV

Here's the link to the completed Student Class file.--> https://pastebin.com/DvZvKq2M

Here's a link to the Lab09Names file.--> https://pastebin.com/hVsq0Pwk

here's a link to the Lab09StudentFile.--> https://pastebin.com/pkaT9xpR

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!