Rewrite your grading program to use the conditional operator (§ 4.7, p. 151) in place of the if-else statement.
§ 4.7, p. 151
Exercise 4.21
Write a program to use a conditional operator to find the elements in a vector
Exercise 4.22
Extend the program that assigned high pass, pass, and fail grades to also assign low pass for grades between 60 and 75 inclusive. Write two versions: One version that uses only conditional operators; the other should use one or more if statements. Which version do you think is easier to understand and why?
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.