Alright back with the same but different example problem but this time I think it requires some "formating" and knowledge of "escape characters". As a novice programmer this is the caliber of trouble I am going through lol.

Does this need knowledge of escape characters as well ? ("\t") would this just be the rearrangement of that certain character?

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleAppBannerOutput
{
    class CommentBanner
    {
        static void Main()
        {
            Console.WriteLine("**********************************************");
            Console.WriteLine("Programming Assignment #4\t");
            Console.WriteLine("Developer:\tAlma Kind");
            Console.WriteLine("Date Submitted:\t September 17");
            Console.WriteLine("Purpose:    Provide internal documentation");
            Console.WriteLine("**********************************************");
            Console.ReadKey();

        }
    }
}

the output should match something like this:

***********************************************

*	Programming Assignment #4             *                               

*       Developer:         Alma King          *                                             

*       Date Submitted:    September 17       *                                         

*   Purpose    Provide internal documentation *                                             

***********************************************

Thanks for the help as always!

*UPDATE: there should be "stars" covering both sides of the banner dont know why the other side is disappearing....

Edited 5 Years Ago by techlawsam: formating, correcting information

Here are two different ways to do it, pick the one you like best:

using System;

namespace ConsoleApplication1 {
    class Program {
        static void Main(string[] userInput) {
            Console.WriteLine("***********************************************");
            Console.WriteLine("*                                             *");
            Console.WriteLine("*       Programming Assignment #4             *");
            Console.WriteLine("*                                             *");
            Console.WriteLine("*       Developer:         Alma King          *");
            Console.WriteLine("*                                             *");
            Console.WriteLine("*       Date Submitted:    September 17       *");
            Console.WriteLine("*                                             *");
            Console.WriteLine("*   Purpose    Provide internal documentation *");
            Console.WriteLine("*                                             *");
            Console.WriteLine("***********************************************");

            Console.WriteLine();
            Console.WriteLine("***********************************************");
            Console.WriteLine("*\t\t\t\t\t      *");
            Console.WriteLine("*\tProgramming Assignment #4\t      *");
            Console.WriteLine("*\t\t\t\t\t      *");
            Console.WriteLine("*\tDeveloper:\t   Alma King\t      *");
            Console.WriteLine("*\t\t\t\t\t      *");
            Console.WriteLine("*\tDate Submitted:\t   September 17\t      *");
            Console.WriteLine("*\t\t\t\t\t      *");
            Console.WriteLine("*   Purpose    Provide internal documentation *");
            Console.WriteLine("*\t\t\t\t\t      *");
            Console.WriteLine("***********************************************");
            
            Console.ReadLine();
        }
    }
}

Thank you so much for your help, I dont know what I would have done without you! You are the best !

This article has been dead for over six months. Start a new discussion instead.