Dice face 5

Dice face 5

Display the face of a dice using ASCII characters.

When making games that only use text it is nice to add some visual appeal using what is known as “ASCII Art” – pictures made from text characters. We could show the face of a dice using this technique.

Make


Write a program to output the number 5 face of a dice only using the ASCII characters: o, # and a space.

Use this boilerplate code as a starting point:

Success Criteria

Remember to add a comment before a subprogram to explain its purpose.

Complete the subprogram called `output5` so that:

  1. It outputs the face of a dice using o and # characters.

Typical inputs and outputs from the program would be:

ooooooooooo

o o

o # # o

o # o

o # # o

o o

ooooooooooo

Knowledge Organiser

Use these resources as a reference to help you meet the success criteria.

Programming guide:
Parsons:

Evaluate


Check that your program outputs the expected result and has met the success criteria.

ooooooooooo

o o

o # # o

o # o

o # # o

o o

ooooooooooo

Check that you have used comments within the code to describe the purpose of subprograms.