Write a program that prompts the user to enter the number of students and each student’s score, then finally displays the highest score.

What will be an ideal response?

```
#include
using namespace std;

int main()
{
// Prompt the user to enter the number of students
cout << "Enter the number of students: ";
int numberOfStudents;
cin >> numberOfStudents;

double score = -1;

for (int i = 0; i < numberOfStudents; i++)
{
cout << "Enter a student score: ";
int score1;
cin >> score1;

if (score < score1)
{
score = score1;
}
}

cout << "Highest score is " << score;

return 0;
}
```

Computer Science & Information Technology

You might also like to view...

What feature in Word and Excel allows you to complete a task by following step by step instructions?

A) Wizard B) Pattern C) Template D) Guide

Computer Science & Information Technology

Your IDS has triggered an alert that someone has logged on at 1 a.m. with one of the intern's accounts used only during the day. What is your IDS type?

a. Pattern matching b. Protocol decoding c. Anomaly matching d. Behavior matching

Computer Science & Information Technology