Drop links or images here to add them to the editor.

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.

Dice face 5

Make

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

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
🆘 If you're really stuck, use this Parsons code sorting exercise
Complete program
// Dice face 5 program

using System;

class Submission
{
---
    // -------------------------
    // Subprograms
    // -------------------------
    // Output a dice face using ASCII text
    static void output5()
    {
---
        Console.WriteLine("ooooooooooo");
---
        Console.WriteLine("o         o");
---
        Console.WriteLine("o  #   #  o");
---
        Console.WriteLine("o    #    o");
---
        Console.WriteLine("o  #   #  o");
---
        Console.WriteLine("o         o");
---
        Console.WriteLine("ooooooooooo");
---
    }

---
    // -------------------------
    // Main program
    // -------------------------
    public static void Main(string[] args)
    {
---
        output5();
---
    }
---
}