user to input a set of names and grades and store them in seperate arrays. *Validate that the grade entered is an integer from 0-100, and prompt user to correct entry. *Calulate the average grade, lowest grade, highest grade, 60 and above passes, below 60 fails and out info in a message. Ive got it working up to calculating the sum. I dont want the user to have to enter anymore input. I really just need help figuring out a condition that will get me out of this loop so I can continue finishing the program. Please follow along through the flow chart tho fully

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 4GZ
icon
Related questions
Question
Im trying to get this Raptor program to: *Allow user to input a set of names and grades and store them in seperate arrays. *Validate that the grade entered is an integer from 0-100, and prompt user to correct entry. *Calulate the average grade, lowest grade, highest grade, 60 and above passes, below 60 fails and out info in a message. Ive got it working up to calculating the sum. I dont want the user to have to enter anymore input. I really just need help figuring out a condition that will get me out of this loop so I can continue finishing the program. Please follow along through the flow chart tho fully understand my approach to accomplishing this.
D
i+1
ню
done string
Start
Loop
"Enter students name, or done to proceed to next
step: "
GET name[i]
name[i]=="done"
Yes
i+i+1
i+1
No
size (length_of(name) - 1)
grade[i] +1
Loop
Loop
Enter grade for "+name[i]+":"
GET grade[i]
< X
> ☐
90%
[1:1]
✓
+
st
size (length_of(name) -
grade[i] +1
Loop
Loop
Enter grade for "+name[i] +":"
GET grade[i]
2024-03-09.png
Average
GetLOWCST
Need to exit the
0 <= grade[i] and grade[i]
<= 100
loop
Yes
No
PUT "Invalid Input. Entry must
be an integer (0-100)"¶
日
Yes
7.
i == size
No
i+i+ 1
CalculateAverage(grade)
Yes
Start (in grade, out avg, in name)
i+1
name[i] +0
count 0
sum 0
Loop
i==(length_of(name) - 1)
No
sumsum + grade[i]
count count + 1
i+i+ 1
getLowest(grade)
avg sum/length_of(grade)
End
end
Q
Transcribed Image Text:D i+1 ню done string Start Loop "Enter students name, or done to proceed to next step: " GET name[i] name[i]=="done" Yes i+i+1 i+1 No size (length_of(name) - 1) grade[i] +1 Loop Loop Enter grade for "+name[i]+":" GET grade[i] < X > ☐ 90% [1:1] ✓ + st size (length_of(name) - grade[i] +1 Loop Loop Enter grade for "+name[i] +":" GET grade[i] 2024-03-09.png Average GetLOWCST Need to exit the 0 <= grade[i] and grade[i] <= 100 loop Yes No PUT "Invalid Input. Entry must be an integer (0-100)"¶ 日 Yes 7. i == size No i+i+ 1 CalculateAverage(grade) Yes Start (in grade, out avg, in name) i+1 name[i] +0 count 0 sum 0 Loop i==(length_of(name) - 1) No sumsum + grade[i] count count + 1 i+i+ 1 getLowest(grade) avg sum/length_of(grade) End end Q
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT