A01

Due Date: Friday, September 15
File(s) to be submitted: NamePlate.txt


SUBMIT   /   Check

Checkerboard Name-Plate (Following Instructions)

Synopsis

Create a file that contains a "name plate" for you and this course, according to the description below.

Important notes:

Details

This is another exercise on following instructions. You do not need to do any programming for this assignment, but if you're eager to get started on programming, you could start by writing a program that produces the required nameplate. Run the program, save the result in a file, and submit that file.

The file you submit must contain a nameplate similar that shown below (but using your data instead of mine):

* * * * * * * * * * * M a r k * Y o u n g * * A 0 0 0 0 0 0 0 0 * * C S C I 1 2 2 6 * * F a l l * 2 0 2 3 * * * * * * * * * * *

The output is 10 lines long, and 16 characters wide. The first and last lines are blank -- there is nothing on those lines. The remaining lines form a checkerboard pattern. The "light" squares of the checkerboard are made of spaces. The "dark" squares are made of letters, digits and punctuation.

The precise characters you use are important, so be very careful -- you will be marked primarily on how well you follow these instructions!

  1. The first set of letters spell your name. Use an asterisk for the space between your given/first name and your family/last name.
    If you have a multi-part surname (von Beethoven, for example), use an asterisk to separate the parts. If your name includes punctuation (O'Toole or Wyndham-Price, for example), then simply include that punctuation as letters.

    Use the name you provided when you registered on the course website. Use the View Profile command in the menu to the left if you can't remember what name you used.

  2. The second set of letters/digits is your A number.
  3. The third set of letters/digits is the course number (CSCI1226).
  4. The last set of letters/digits is the term and year (Fall 2023). Use an asterisk for the space between the term and year.
  5. There are two asterisks between each of the sets above (name/A-number, A-number/course, course/term).
  6. The remaining squares of the checkerboard are made up of asterisks. These extra asterisks are divided equally between the beginning and the end of the board. (If there is an odd number of extra asterisks, the extra one should appear at the end.)
  7. There are sixty-four "squares" in total, in eight lines of eight squares. The squares are separated by spaces, with the spaces staggered so that each square has spaces above and below it as well as to the side(s).
  8. As mentioned above, there is a blank line before the checkerboard, and another after the checkerboard.

In the sample output, I have shown my name and "number". Your file should contain your name and number. For example, if your name is Ludicrus Apple-Dumpling (and your A number is A11111111), then the checkerboard will look like:

* * * * L u d i c r u s * A p p l e - D u m p l i n g * * A 1 1 1 1 1 1 1 1 * * C S C I 1 2 2 6 * * F a l l * 2 0 2 3 * * * * *

One more thing. If your full name is more than 30 characters long, you won't be able to fit it into the space provided. In that case you should use just the initial of your given name, followed by a period. For example, Sussannah Schellenburg-Hieronymous' name is too long to fit in the space provided, so she should use S. Schellenburg-Hieronymous:

* * S . * S c h e l l e n b u r g - H i e r o n y m o u s * * A 2 2 2 2 2 2 2 2 * * C S C I 1 2 2 6 * * F a l l * 2 0 2 3 * * *

Grading Outline

Graders may assign partial credit if the error is "small" (80%), "medium" (60%), or "large" (20% or 40%, depending on how large).


SUBMIT   /   Check