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
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
Chapter8: Arrays
Section: Chapter Questions
Problem 9PE
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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F3a5f8098-121f-4688-b861-c131ede7f8cd%2F09b68040-72f6-4a28-9653-2feeabba8d3f%2Fmw8b1zs_processed.jpeg&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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.Recommended textbooks for you
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning