Write a program to help your instructor calculate the highest and the lowest grade in the final exam of his/her CSCI250 section. Your program should ask the instructor to enter the number of students and then the grade for every student. The grades should be stored in an array. Then the program should find and display the highest and the lowest grade in the array as shown the sample run below. Sample run 1: Enter the number of Students: 5 Enter grade for student 1: 80.5 Enter grade for student 2: 35 Enter grade for student 3: 75.5 Enter grade for student 4: 90 Enter grade for student 5: 63.4 The highest grade is 90 lowest grade is 35.0 Sample run 2: Enter the number of Students: 3 Enter grade for student 1: 80 Enter grade for student 2: 60 Enter grade for student 3: 80 The highest grade is 80 The lowest grade is 60

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 9PE
icon
Related questions
Question
Write a program to help your instructor calculate the highest and the lowest grade in the final exam of
his/her CSCI250 section. Your program should ask the instructor to enter the number of students and then
the grade for every student. The grades should be stored in an array.
Then the program should find and display the highest and the lowest grade in the array as shown the sample
run below.
Sample run 1:
Enter the number of Students: 5
Enter grade for student 1: 80.5
Enter grade for student 2: 35
Enter grade for student 3: 75.5
Enter grade for student 4: 90
Enter grade for student 5: 63.4
The highest grade is 90
The lowest grade is 35.0
Sample run 2:
Enter the number of Students: 3
Enter grade for student 1: 80
Enter grade for student 2: 60
Enter grade for student 3: 80
The highest grade is 80
The lowest grade is 60
Transcribed Image Text:Write a program to help your instructor calculate the highest and the lowest grade in the final exam of his/her CSCI250 section. Your program should ask the instructor to enter the number of students and then the grade for every student. The grades should be stored in an array. Then the program should find and display the highest and the lowest grade in the array as shown the sample run below. Sample run 1: Enter the number of Students: 5 Enter grade for student 1: 80.5 Enter grade for student 2: 35 Enter grade for student 3: 75.5 Enter grade for student 4: 90 Enter grade for student 5: 63.4 The highest grade is 90 The lowest grade is 35.0 Sample run 2: Enter the number of Students: 3 Enter grade for student 1: 80 Enter grade for student 2: 60 Enter grade for student 3: 80 The highest grade is 80 The lowest grade is 60
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage