a program in c++ that accepts exam marks for 10 students and stores them in an array.the program should then calculate and utput the average marks for the class.and give an account of marks below average and output all marks above average.

You're welcome to post your pseudocode and ask specific questions so we know where help would be needed.

I need some help and guidance to solve this problem.

Week 4 CheckPoint – Repetition and Decision Control Structures

In one of the week 3 discussion questions we discussed the algorithm that would be required to make a peanut butter sandwich. In this CheckPoint you will need to take that one step further and create a program design to make a peanut butter sandwiches. Below you will find a partial program design; you need to complete it by adding the pseudocode in the required areas. You need to add one repetition (loop) control structure and one decision control to complete the program design. The user will decide how many sandwiches are made; this is where the loop will be used. The user will decide if the sandwich includes jelly, and, if it does, what flavor of jelly; to keep it simple we are only allowing grape or strawberry jelly.

Analysis

Process:
1. Ask user how many sandwiches to make
2. Ask user if they want jelly on their sandwich
3. If jelly is requested, ask user what flavor (grape or strawberry) of jelly they would like
4. Make peanut butter and, if required, jelly sandwiches

Input:
NumberOfSandwiches (integer)
IncludeJelly (string; values Yes/No)
TypeOfJelly (string; values Grape/Strawberry)

Output:
Sandwich

Design

Main Module

Declare NumberOfSandwiches as integer
Declare IncludeJelly as string
Declare TypeOfJelly as string
Declare Continue as Boolean
Set Continue to true

Do While Continue = true
Call InputModule
EndDo

End Main Module

InputModule

Display "How many sandwiches would you like to make? Enter 0 to end program."
Input NumberOfSandwiches

If NumberOfSandwiches = 0
Set Continue = false
Else
Display "Do you want jelly on your sandwiches?"
Input IncludeJelly

If IncludeJelly = “Yes”
Display “What type of jelly; Grape or Strawberry?”
Input TypeOfJelly
EndIf

**** Students – add a loop here to create the number of sandwiches requested by the user – within the loop you need to invoke (call) the SandwichModule to create the sandwiches. Do not over think this one; the loop should loop over the NumberOfSandwiches and reduce the value each time a sandwich is made until NumberOfSanwiches is equal to zero.

Make sure you review the given code in this assignment, you do not want to repeat steps that are already done.

EndIf

End InputModule

SandwichModule

Get bread
Spread peanut butter on bread

**** Students – add decision control structure here to add jelly to the sandwich if the user requested it. Hint: you will want to use a nested decision control structure.

End SandwichModule

write a programm 100kg is made per passenger ,25kg perbag ,add functionality to to the class and carrying weigh(passenger+ bags) c++.

To write a program in C++ that accepts exam marks for 10 students, stores them in an array, calculates and outputs the average marks for the class, and provides an account of marks below and above average, you can follow these steps:

1. Start by including the necessary header files:
```cpp
#include <iostream>
using namespace std;
```

2. Declare a constant variable to represent the number of students:
```cpp
const int numStudents = 10;
```

3. Declare an array to store the exam marks for the students:
```cpp
int marks[numStudents];
```

4. Use a loop to input the marks for each student:
```cpp
for (int i = 0; i < numStudents; i++) {
cout << "Enter marks for student " << i + 1 << ": ";
cin >> marks[i];
}
```

5. Calculate the sum of all the marks:
```cpp
int sum = 0;
for (int i = 0; i < numStudents; i++) {
sum += marks[i];
}
```

6. Calculate the average by dividing the sum by the number of students:
```cpp
float average = static_cast<float>(sum) / numStudents;
```

7. Output the average marks for the class:
```cpp
cout << "Average marks for the class: " << average << endl;
```

8. Use a loop to identify marks below and above average:
```cpp
cout << "Marks below average: ";
for (int i = 0; i < numStudents; i++) {
if (marks[i] < average) {
cout << marks[i] << " ";
}
}
cout << endl;

cout << "Marks above average: ";
for (int i = 0; i < numStudents; i++) {
if (marks[i] > average) {
cout << marks[i] << " ";
}
}
cout << endl;
```

9. Finally, enclose the whole code within the `main()` function:
```cpp
int main() {
// The code goes here

return 0;
}
```

Putting it all together, here's the complete program:

```cpp
#include <iostream>
using namespace std;

const int numStudents = 10;

int main() {
int marks[numStudents];

for (int i = 0; i < numStudents; i++) {
cout << "Enter marks for student " << i + 1 << ": ";
cin >> marks[i];
}

int sum = 0;
for (int i = 0; i < numStudents; i++) {
sum += marks[i];
}

float average = static_cast<float>(sum) / numStudents;

cout << "Average marks for the class: " << average << endl;

cout << "Marks below average: ";
for (int i = 0; i < numStudents; i++) {
if (marks[i] < average) {
cout << marks[i] << " ";
}
}
cout << endl;

cout << "Marks above average: ";
for (int i = 0; i < numStudents; i++) {
if (marks[i] > average) {
cout << marks[i] << " ";
}
}
cout << endl;

return 0;
}
```

Once you compile and run the program, you will be prompted to enter the marks for each student. After inputting the marks, the program will calculate and display the average marks for the class, followed by the marks below average and marks above average.