user to enter the student’s marks on four exams (use double and one exam is over 20). The Write a program that asks the program should display the four exam’s marks, the sum and the average.(Use also the header file iomanip)

We do not take programming contracts.

However, if you post pseudocodes, or codes, we will be glad to help you spot errors, or give suggestions.

If you have difficulties getting started, please post stating what you have learned in your course, and where you difficulties are. We'll try to help from there.

To write a program that asks the user to enter the student's marks on four exams, calculates the sum and average, and displays the results, you can follow these steps:

1. Include the necessary header files to use doubles and iomanip:
```cpp
#include <iostream>
#include <iomanip>
```

2. Declare the variables for the four exam's marks, sum, and average:
```cpp
double exam1, exam2, exam3, exam4, sum, average;
```

3. Ask the user to input the marks for each exam:
```cpp
std::cout << "Enter the marks for Exam 1: ";
std::cin >> exam1;

std::cout << "Enter the marks for Exam 2: ";
std::cin >> exam2;

std::cout << "Enter the marks for Exam 3: ";
std::cin >> exam3;

std::cout << "Enter the marks for Exam 4: ";
std::cin >> exam4;
```

4. Calculate the sum of the exam marks:
```cpp
sum = exam1 + exam2 + exam3 + exam4;
```

5. Calculate the average of the exam marks:
```cpp
average = sum / 4;
```

6. Display the exam marks, sum, and average using iomanip to format the output:
```cpp
std::cout << "Exam 1: " << std::fixed << std::setprecision(2) << exam1 << std::endl;
std::cout << "Exam 2: " << std::fixed << std::setprecision(2) << exam2 << std::endl;
std::cout << "Exam 3: " << std::fixed << std::setprecision(2) << exam3 << std::endl;
std::cout << "Exam 4: " << std::fixed << std::setprecision(2) << exam4 << std::endl;
std::cout << "Sum: " << std::fixed << std::setprecision(2) << sum << std::endl;
std::cout << "Average: " << std::fixed << std::setprecision(2) << average << std::endl;
```

Putting it all together, the complete program looks like this:

```cpp
#include <iostream>
#include <iomanip>

int main() {
double exam1, exam2, exam3, exam4, sum, average;

std::cout << "Enter the marks for Exam 1: ";
std::cin >> exam1;

std::cout << "Enter the marks for Exam 2: ";
std::cin >> exam2;

std::cout << "Enter the marks for Exam 3: ";
std::cin >> exam3;

std::cout << "Enter the marks for Exam 4: ";
std::cin >> exam4;

sum = exam1 + exam2 + exam3 + exam4;
average = sum / 4;

std::cout << "Exam 1: " << std::fixed << std::setprecision(2) << exam1 << std::endl;
std::cout << "Exam 2: " << std::fixed << std::setprecision(2) << exam2 << std::endl;
std::cout << "Exam 3: " << std::fixed << std::setprecision(2) << exam3 << std::endl;
std::cout << "Exam 4: " << std::fixed << std::setprecision(2) << exam4 << std::endl;
std::cout << "Sum: " << std::fixed << std::setprecision(2) << sum << std::endl;
std::cout << "Average: " << std::fixed << std::setprecision(2) << average << std::endl;

return 0;
}
```

This program prompts the user to enter marks for each exam, calculates the sum and average, and then displays them using formatting provided by the iomanip header.