42.3k views
3 votes
Write a pseudocode (NOT a computer program) for a program to: Ask the user for a number representing a value on a dice. Display "A" if the number is 1, "B" if the number is 2, "Other" if the number is between 3 and 6 (between includes 3 and 6). Display "Yes" for all other cases. .

1 Answer

3 votes

Answer:

1. Start the program.

2. Get input from the user for a number representing a value on a dice.

3. If the input is equal to 1, display "A".

4. If the input is equal to 2, display "B".

5. If the input is between 3 and 6 (inclusive), display "Other".

6. For all other cases, display "Yes".

7. End the program.

Step-by-step explanation:

Not sure if this is an algorithm or a pseudocode, but hope it helps!

User ITurchenko
by
9.1k points

No related questions found