(Latest Revision: 04/07/2014)

FIFTH CS 1500 SOLO PROGRAM: Tiled Surface


OBJECTIVE: The purpose of this programming assignment is to get more practice writing and using loops, and designing program with functions.


THE ASSIGNMENT:

Your assignment is to write a program that makes a pattern of tiles for the user.


INPUT:

The program prompts the user for a length and a width. These numbers are the length and width of the pattern, measured in numbers of whole tiles. There does not need to be any provision for partial tile lengths or partial tile widths.


OUTPUT:

The program "outputs a tile pattern" having the dimensions given by the user.


SAMPLE RUNS:

Look the sample runs of my solution program.


THE DESIGN OF THE PROGRAM:

For this assignment, I am not giving you a structure chart to follow. You must create your own design of this program. I am expecting you to employ good principles of top-down design. Substantial credit will be withheld if you do not create a program that uses functions appropriately.

Note: You are NOT allowed to use ANY global variables in this program. You are cautioned to use functions appropriately. That means your program has to contain several functions. I would expect it to have at least five functions, including main. Of course, the number of functions that your program uses depends on the details of your design.

Follow these rules: If you want some help with getting started with the design of the program, check out my design suggestions.

Also, you can look at the programs stars.cpp, varStars.cpp, and the development of the checks program to see some C++ code with similarities to the code you need to write.


FORM AND FORMATTING REQUIREMENTS:

At the beginning of your program file put a header comment like this:


  /* PROGRAM Flooring Maker */

  /*

  Name:          Gordon Goodguy
  User Name:     goodge
  Course:        CS 1500, Computer Programming I
  Instructor:    John Sarraille
  Date:          January 1, 1970

  */
Of course, in place of "Gordon Goodguy," you must put your own full name. In place of "goodge" put your user (login) name. In place of the unix epoch date of "January 1, 1970" put the date that you finished the program. Note that the comment delimiters /* and */ are important. They need to be placed correctly or you will get compiler errors.


WHAT TO TURN IN:

You will be sending me two e-mail messages. Please follow these rules: Here is the list of things you have to turn in: Note that there are no spaces in the subject lines given. It is important that you do not insert any spaces. My e-mail address is:

john@ishi.csustan.edu



WHEN IS THIS ASSIGNMENT DUE?

Look for the due date in the class schedule. (It's at the top level of the class directory.)