Nrite a C# console application named MaxMin that a and make sure it is valid (i.e., in between 0 and 100). Store the 5 integers in an int array, and then find and For example, if you have the 5 scores as {85, 72, 65, Hint: use a while loop.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter12: Exception Handling
Section: Chapter Questions
Problem 8PE
icon
Related questions
Question
Write a C# console application named MaxMin that asks the user to enter 5 integers, representing the test scores of 5 students. For each input score, you need to check
and make sure it is valid (i.e., in between 0 and 100).
Store the 5 integers in an int array, and then find and display the highest and the lowest scores on the screen.
For example, if you have the 5 scores as {85, 72, 65, 98, 80}, then the output message should be "The highest score is 98, and the lowest score is 65".
Hint: use a while loop.
Transcribed Image Text:Write a C# console application named MaxMin that asks the user to enter 5 integers, representing the test scores of 5 students. For each input score, you need to check and make sure it is valid (i.e., in between 0 and 100). Store the 5 integers in an int array, and then find and display the highest and the lowest scores on the screen. For example, if you have the 5 scores as {85, 72, 65, 98, 80}, then the output message should be "The highest score is 98, and the lowest score is 65". Hint: use a while loop.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Passing Array as Argument
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
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
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