OBJECTIVE

The purpose of this programming assignment is to give you practice writing and using loops in your programs.

THE ASSIGNMENT:

Basically, your assignment is to write a program that gets an integer N from the user and then draws N "clowns" in a stack.

INPUT, OUTPUT, AND PROCESSING:

The program must begin by writing some information explaining the purpose of the program and a general description of how to use the program.

The program must then prompt for and read the number N.

After getting N, the program must do some error-checking. If N is not between 2 and 8, inclusive, then the program must output an appropriate error message and stop. If N is within the legal range, then the program must draw the clown N times. After drawing the clowns, it must draw a little "base" so that it looks like the clowns are standing on something.

DESIGN:

I have prepared a shell program that you should use as a starting point for your solution to this programming problem. See image.

The shell has three functions to fill in, including the main() function. You can create a program with a good design if you follow the directions found inside the shell.

TESTING:

I expect you to make a test script for the program that shows good data coverage. I will discuss that concept in class. The basic idea is:

  • to test a representative sample of inputs, and
  • to test at and near data boundary values.

It is your responsibility to devise and carry out adequate tests. You must do something more than just copy the tests I performed in my little sample script. You will lose significant credit if you do not perform adequate testing. However, I will give you information to help you figure out what tests you need to do.

Academic Honesty!
It is not our intention to break the school's academic policy. Projects posted are only used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly fill out the form. Please provide a valid email address and we'll get back to you in less than 24 hours. We will be sending an invoice through PayPal upon confirmation. We are a non profit organization however we need an amount to keep this organization running, and to be able to complete our research and development.