Write an algorithm,flowchart,pseudo cod and finally a c++ code that will accept exam score for five users and find the average,minimum and maximum of the score

#include<iostream>

#include<c.string>
using namespace std;
int main()
{
int arr[25];
string name[25];
for (int i=0;i<25;i++)
{
cout<<"the name"<<endl;
cin>>name[i];
cout<<"marks"<<ndl;
cin>>arr[i];
}
int sum=0;int avg;
for(inti=0;i<25;i++)
{
sum=sum+arr[i];
}
avg=sum/25;
int max=a[0];
for (int i=0; i<25;i++)
{
if (max<a[i])
max=a[i];
}
cout<<"Class average is: "<<avg<<endl;
cout<<"highest marks are: "<<max<<endl;
return 0;
}
hopes this helps

Sure! Let's break down the task into smaller steps.

Algorithm:
1. Start.
2. Create a variable to store the total score and initialize it to zero.
3. Create variables to store the minimum and maximum score and set them to the lowest and highest possible values.
4. Create a loop to iterate five times, once for each user.
5. Prompt the user to enter the exam score.
6. Read and store the entered score.
7. Update the total score by adding the entered score.
8. Check if the entered score is less than the current minimum. If yes, update the minimum score.
9. Check if the entered score is greater than the current maximum. If yes, update the maximum score.
10. Repeat steps 5-9 for each user.
11. Calculate the average score by dividing the total score by the number of users.
12. Display the average, minimum, and maximum scores.
13. End.

Flowchart:
```
+----+
|Start|
+----+
|
|
V
+---------------------------------------------+
| Initialize variables |
| total = 0, minimum = MAX, maximum = MIN |
+---------------------------------------------+
|
|
V
+--------------+
| Loop (5) |
+--------------+
|
|
V
+----------------+
| Read score |
| Update total |
| Update min |
| Update max |
+----------------+
|
|
V
+----+
|End |
+----+
```

Pseudo code:
```
total = 0
minimum = MAX_VALUE
maximum = MIN_VALUE

for i = 1 to 5
print "Enter score for user ", i
read score

total = total + score

if score < minimum
minimum = score

if score > maximum
maximum = score

average = total / 5

print "Average score: ", average
print "Minimum score: ", minimum
print "Maximum score: ", maximum
```

C++ code:
```cpp
#include<iostream>
#include<climits>

int main() {
int total = 0;
int minimum = INT_MAX;
int maximum = INT_MIN;

for (int i = 1; i <= 5; ++i) {
std::cout << "Enter score for user " << i << ": ";
int score;
std::cin >> score;

total += score;

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

if (score > maximum) {
maximum = score;
}
}

double average = static_cast<double>(total) / 5; // Calculate average as a double

std::cout << "Average score: " << average << std::endl;
std::cout << "Minimum score: " << minimum << std::endl;
std::cout << "Maximum score: " << maximum << std::endl;

return 0;
}
```

Hope this helps! Let me know if you have any further questions.