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:
- proper Java program class construction, purpose of the main method and use of other methods that each perform a smaller part of the overall problem
- Important: Reinforce sections 1.4 and 1.5 from Chapter 1 (review if needed).
Instructions
Following are the instructions and you should follow them carefully:
- Using Eclipse create a new Java Project and name it: StarFigures
- As with all your labs, add a class of the same name, StarFigures, and include in that class a main method.
- 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.
- 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.
- 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.
- Your program should output according to the output format displayed in the book and shown in the Output Format section below.
- 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).
- 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 via AutoLab by 11:59:59pm on Monday. Refer to AutoLab for the specific due date.