Programming using C#

posted by .

Write a program that displays your initials in a pattern on the screen. Compose each initial with six lines of smaller initials, as the following example:

J FFFFFF
J F
J FFF
J F
J J F
JJJJJJ F

  • Programming using C# -

    The trick here is to design each letter in a 6x6 matrix. Each letter will therefore be made up of an array of 6 strings, each of which will have 6 characters.

    Example string array which can be name
    by the letters themselves:

    String[] f={
    "FFFFFF",
    "F",
    "FFF",
    "F",
    "F",
    "F"
    };

    So to display the letters, you only have to print them on six lines, like:

    for(int i=0;i<6;i++){
    System.out.println(j[i]+" "+f[i]);
    }


    (I am using Java syntax, hope you can do the conversion for C#)

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. C programming

    I'm suppose to write a program using functions and modules that accepts six names from the user and print it back to the screen. It should then ask the user which name they want deleted and print to the screen all the other names except …
  2. Programming Logic

    I need to create a program that has (at least) two variables, char and num. I need to use nested loops to print char, a character, in the form of the following pattern on as many lines and as many times as specified by num. For example, …
  3. Programming Logic

    I need to create a program that has (at least) two variables, char and num. I need to use nested loops to print char, a character, in the form of the following pattern on as many lines and as many times as specified by num. For example, …
  4. C#

    Write a program that displays your initials in a pattern on the screen. Compose each initial with six lines of smaller initials, as the following example: J FFFFFF J F J FFF J F J J F JJJJJJ F
  5. c programming

    Plz give me some idea that how can i do this program. Write a program that uses a 20x20 board, initialised to a given pattern, to play the game Conway's life . After each turn print out the board pattern using a . for a dead square …
  6. programming

    Write a program that asks for and reads the price of a book (it may have a decimal part), multiplies it by 7% sales tax and displays both the sales tax and final price of the book on the screen.
  7. c programming

    a student designed a program to accept the age of an employee and then compute the employees retirement year and display the same in a statement on the screen required. a) write out the pseudo-code for the program above b) write the …
  8. programming logic and design

    Using a flowchart write a program that does the following: •Create the logic for a program that accepts input values for the projected cost of a vacation and the number of months until vacation. Use both values to totals that displays …
  9. C++

    // Program: name of program // Author: your name // Date Written: date you began writing the program /* Abstract: Brief description of the program */ Include in-line comments in the body of your program. You can convert temperature …
  10. computer programming

    Create the psuedocode for an application class named Monogram. Its main() method holds three variables that hold your first, middle, and last initials, respectively. Create a method to which you pass the three initials and that displays …

More Similar Questions