Score 1,Score 2 and Score 3 are the marks scored by a student in three tests. Write a pseudocode,an algorithm and draw the flowchart to find the average of best two scores.

Can you show any work on how you would get started with this problem? Where are you getting stuck?

I need an answer to that exact question too. Please help. I really do not understand the question one bit.

printf("Average number=%d\n",rev);

Pseudocode:

1. Start
2. Input Score 1, Score 2, Score 3
3. If Score 1 > Score 2 and Score 1 > Score 3, then
a. Max = Score 1
b. If Score 2 > Score 3, then
i. SecondMax = Score 2
else
ii. SecondMax = Score 3
4. Else if Score 2 > Score 1 and Score 2 > Score 3, then
a. Max = Score 2
b. If Score 1 > Score 3, then
i. SecondMax = Score 1
else
ii. SecondMax = Score 3
5. Else
a. Max = Score 3
b. If Score 1 > Score 2, then
i. SecondMax = Score 1
else
ii. SecondMax = Score 2
6. Average = (Max + SecondMax) / 2
7. Output Average
8. Stop

Algorithm:

1. Start
2. Read Score 1, Score 2, Score 3
3. If Score 1 > Score 2 and Score 1 > Score 3, then
a. Max = Score 1
b. If Score 2 > Score 3, then
i. SecondMax = Score 2
else
ii. SecondMax = Score 3
4. Else if Score 2 > Score 1 and Score 2 > Score 3, then
a. Max = Score 2
b. If Score 1 > Score 3, then
i. SecondMax = Score 1
else
ii. SecondMax = Score 3
5. Else
a. Max = Score 3
b. If Score 1 > Score 2, then
i. SecondMax = Score 1
else
ii. SecondMax = Score 2
6. Average = (Max + SecondMax) / 2
7. Display Average
8. Stop

Flowchart:

```
+-----+
|START|
+-----+
|
|
v
+-----------+
|Read Scores|
+-----------+
|
|
v
+----------------+
| Compare Scores |
+----------------+
|
|
v
/-----\ /-----\
| Yes | | No |
\-----/ \-----/
| |
| |
v v
+----------------+ +----------------------+
|Set Max = Score1| |Set Max = Score2 |
|Set SecondMax = | |Set SecondMax = Score3|
|Score1 | | |
+----------------+ +----------------------+
|
|
v
+------------------+
| Compare Scores |
+------------------+
|
|
v
/-----\ /-----\
| Yes | | No |
\-----/ \-----/
| |
| |
v v
+----------------+ +----------------------+
|Set Max = Score2| |Set Max = Score3 |
|Set SecondMax = | |Set SecondMax = Score1|
|Score2 | | |
+----------------+ +----------------------+
|
|
v
+-----------------+
| Compare Scores |
+-----------------+
|
|
v
/-----\ /-----\
| Yes | | No |
\-----/ \-----/
| |
| |
v v
+----------------+ +----------------------+
|Set Max = Score3| |Set Max = Score1 |
|Set SecondMax = | |Set SecondMax = Score2|
|Score3 | | |
+----------------+ +----------------------+
|
|
v
+-------------------+
| Calculate Average |
+-------------------+
|
|
v
+------+
|Output|
|Average|
+------+
|
|
v
+------+
| STOP |
+------+
```

Explanation:

The pseudocode, algorithm, and flowchart are designed to calculate the average of the best two scores out of three scores provided by a student (Score 1, Score 2, and Score 3).

1. We start by reading the three scores from the user.
2. We compare the three scores to determine the maximum and second maximum scores.
3. Based on the comparisons, we assign the appropriate values to the variables Max and SecondMax.
4. Finally, we calculate the average by adding the maximum and second maximum scores and dividing by 2.
5. The average is then displayed as output.

The flowchart visually represents the steps in the algorithm, with decision points (Yes/No) determining the path to follow based on the comparisons. The corresponding actions are represented by process boxes, and the flowchart ends with the output and stop symbol.