At the end of their final year students sit exams in 5 subjects labelled A, B, C, D and E, and submit a project P. The following algorithm determines the class of degree awarded. [NOTES: (1) Avg represents the average of all the exam and project marks taken together. (ii) The term {A, B, C..} > n tests that each of the values endosed is > n. ] IF Avg >= 50 AND {A, B, C, D, E, P} >= 50 THEN IF Avg >= 75 THEN Class = Distinction ELSE IF Avg >= 60 THEN Class = Merit ELSE Class = Pass ELSE IF P >= 50 AND (40 < A < 50 AND (B, C, D, E} >= 50 OR 40 < B < 50 AND (A, C, D, E} >= 50 OR 40 = 50 OR 40 < D < 50 AND (A, B, C, E} >= 50 OR 40 < E < 50 AND (A, B, C, D} >= 50) THEN CLASS = Pass ELSE Class - Fail The Assessment Committee has applied the algorithm by hand to the following candidates. To whom have they given the wrong classification? Candidate A B Avg 62 58 Class 55 61 62 75 52 Merit 72 71 66 80 52 47 65 Fail 55 45 58 59 49 60 57 Pass Is 57 68 73 41 55 62 58 Pass

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section: Chapter Questions
Problem 9PP: (Data processing) Your professor has asked you to write a C++ program that determines grades at the...
icon
Related questions
Question
At the end of their final year students sit exams in 5 subjects labelled A, B, C, D and E, and submit a project P.
The following algorithm determines the class of degree awarded.
[NOTES: (1) Avg represents the average of all the exam and project marks taken together. (ii) The term {A, B, C,.} > n tests that each of the values
enclosed is > n. ]
IF Avg >= 50 AND {A, B, C, D, E, P} >= 50
THEN IF Avg >= 75
THEN Class = Distinction
ELSE IF Avg >= 60
THEN Class = Merit
ELSE Class = Pass
ELSE IF P >= 50 AND (40 < A < 50 AND {B, C, D, E} >= 50
OR 40 < B < 50 AND {A, C, D, E} >= 50
OR 40 < C < 50 AND {A, B, D, E} >= 50
OR 40 < D < 50 AND {A, B, C, E} >= 50
OR 40 <E < 50 AND {A, B, c, D} >= 50)
THEN CLASS = Pass
ELSE Class = Fail
The Assessment Committee has applied the algorithm by hand to the following candidates. To whom have they given the wrong classification?
Candidate
A
B
Avg
62
D
P
Class
55
61
62
75
52
58
Merit
72
71
66
80
52
47
65
Fail
55
45
58
59
49
60
57
Pass
57
68
73
41
55
62
58
Pass
lolle o
Transcribed Image Text:At the end of their final year students sit exams in 5 subjects labelled A, B, C, D and E, and submit a project P. The following algorithm determines the class of degree awarded. [NOTES: (1) Avg represents the average of all the exam and project marks taken together. (ii) The term {A, B, C,.} > n tests that each of the values enclosed is > n. ] IF Avg >= 50 AND {A, B, C, D, E, P} >= 50 THEN IF Avg >= 75 THEN Class = Distinction ELSE IF Avg >= 60 THEN Class = Merit ELSE Class = Pass ELSE IF P >= 50 AND (40 < A < 50 AND {B, C, D, E} >= 50 OR 40 < B < 50 AND {A, C, D, E} >= 50 OR 40 < C < 50 AND {A, B, D, E} >= 50 OR 40 < D < 50 AND {A, B, C, E} >= 50 OR 40 <E < 50 AND {A, B, c, D} >= 50) THEN CLASS = Pass ELSE Class = Fail The Assessment Committee has applied the algorithm by hand to the following candidates. To whom have they given the wrong classification? Candidate A B Avg 62 D P Class 55 61 62 75 52 58 Merit 72 71 66 80 52 47 65 Fail 55 45 58 59 49 60 57 Pass 57 68 73 41 55 62 58 Pass lolle o
OR
O None of the other answers are correct
Transcribed Image Text:OR O None of the other answers are correct
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Lower bounds sorting algorithm
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning