What is wrong with the following pseudocode that displays a menu and repeatedly displays the menu until the user enters a valid selection?

```
Do
Select menuSelection
Case 1:
Do task 1
Case 2:
Do task 2
Case 3:
Do task 3
End Select
While menuSelection < 1 OR menuSelection > 3

```

a. There are no output statements in the cases.
b. A While loop should be used, not a Do-While loop.
c. The last line should be: While menuSelection != 0
d. There is nothing wrong with this pseudocode.

d. There is nothing wrong with this pseudocode.

Computer Science & Information Technology

You might also like to view...

Most computers include a(n) optical drive that uses a small laser light to read data stored on CDs, DVDs, or Blu-ray disks.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

All of the following are examples of ethical issues related to data and information systems EXCEPT _________.

A. job losses due to humanlike technologies B. invasion of privacy through technology C. the cost of system development D. freedom of expression vs. censorship

Computer Science & Information Technology