CSCI 161 - Assignment #1: StarFigures

Overview

For this assignment refer to "StarFigures" problem, which is exercise #13 in the "Exercises" section at the end of Chapter 1 of the textbook.

Following the instructions in the problem, develop a Java application named StarFigures with class of the same name and submit to me using the submit tool.

The objectives of this assignment are to reinforce and help teach:

Instructions

Following are the instructions and you should follow them carefully:

  1. Using Eclipse create a new Java Project and name it: StarFigures
  2. As with all your labs, add a class of the same name, StarFigures, and include in that class a main method.
  3. The program and its main method should start out blank and once that is working add additional methods, above the main, one for each different section of output required.
  4. If you examine the output required you will see that there are four (4) different, distinct output "sections" for the StarFigures and that is counting the blank line as one such distinct output section. You should develop as many (4) output methods, one for each section to be output.
  5. Update the main method so that it calls the methods for each section of output, calling them in the order needed to give the output specified in the book. As expected, some will be called multiple times.
  6. Your program should output according to the output format displayed in the book and shown in the Output Format section below.
  7. Iteratively develop the assignment (get the original program from the book working, test it, update it to remove expression redundancy, fix syntax errors, continue until finished).
  8. When the lab is complete and working submit it as StarFigures.java via AutoLab

Output Format

Following is the exact desired output:

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

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

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

Deadline

This assignment must be submitted to the instructor by 11:59:59pm on Monday, September 4th