Question: Java IDE Eclipse Program Requirements 1. You will need to comment each section of your source code that draws a shape. For example, you need

Java
IDE Eclipse
JavaIDE Eclipse Program Requirements 1. You will need to comment each section
of your source code that draws a shape. For example, you need
to include comments for the section of source code that draws a
rectangle, comments for the section of code that draws a triangle, and
so forth for each shape required in this project. 2. All instructions
in this document must be followed in order for full credit to
be awarded. Following the instructions is a vital part to this and

Program Requirements 1. You will need to comment each section of your source code that draws a shape. For example, you need to include comments for the section of source code that draws a rectangle, comments for the section of code that draws a triangle, and so forth for each shape required in this project. 2. All instructions in this document must be followed in order for full credit to be awarded. Following the instructions is a vital part to this and all programming assignments. 3. Your program must follow the examples provided in the Examples section, and your program's 1/0 (input and output) must match the examples exactly (otherwise, points will be deducted). If your program does not produce the same output as our examples, then your program has a bug, and you'll need to fix any bugs using any debugging techniques discussed this semester. There should be NO spaces to right of any *'s in your program's output, and the number of spaces in front of the *'s do matter in order to output the shape correctly based on the examples. After drawing the last * in the shape, your program should print a single newline character. 4. Your program must handle all error cases as shown in the examples. The valid shapes (r thop) are shown in the prompts in the examples, and any other input for shapes are considered as invalid.The user input for drawing an octagon is a lowercase o, the letter before p in the English alphabet. A length is valid if and only if it is greater than 1, and a height is valid if and only if it is greater than 1. Also, some shapes do not require height as an input, and these shapes should not prompt the user for a height. Invalid inputs must be handled as shown in the examples. 5. For all sets of valid user input, your program must correctly draw the shape and dimension(s) Additional Requirements If the source file(s)/class(es) are named incorrectly (case matters!) If your source file(s) have a package declaration at the top If you have more than one instance of Scanner in your program. Your program should only have one instance of Scanner. Inconsistent 1/0 (input/output) that does not match our instructions or examples exactly (unless otherwise stated in an assignment's instructions). Your program's 1/0 (order, wording, formatting, etc.) must match our examples and instructions. you are NOT permitted to use a break or continue statement inside of the body of a loop, and using one of these statements in the body of a loop will result in a grade of zero on this assignment. Examples Your program should work correctly on the examples below, and it should draw various shapes correctly when the inputs are valid. All input and output should be formatted as shown when run (note: the new line() separating each example is not part of your program's I/O, it is in this document to show the difference between examples). Each example is separate run of a correctly working program. Some examples include invalid inputs, and some do not. Enter a shape: rthop Enter a length Enter a height Below is a 3 by 4 rectangle of Enter a shape: rthop Enter a length Below is a triangle with two side lengths of 6 * Enter a shape: rthop Enter a length 10 Below is a hexagon with side lengths of 10 * ********** ************** * * * * * * * * * * * * * OOOO Enter a shape: rthop Enter a length Below is an octagon with side lengths of 9 * ************* ***************** ************************* Enter a shape: rthop Enter a length Below is a pentagon with 4 side lengths of 3* Enter a shape: rthop Invalid shape Goodbye! Enter a shape: rthop Invalid shape Goodbye! Enter a shape: rthop Enter a length Length must be greater than 1 Goodbye! Enter a shape: rthop Enter a length Enter a height Height must be greater than 1 Goodbye! Enter a shape: rthop Enter a length Length must be greater than 1 Goodbye! Enter a shape: rthop Enter a length Below is an octagon with side lengths of 4* ******** Enter a shape: rthop Enter a length Below is a hexagon with side lengths of 3 * ***** *** * Enter a shape: rthop Enter a length 10 Enter a height Below is a 10 by 4 rectangle of * Enter a shape: rthop Enter a length Below is a pentagon with 4 side lengths of 7 * *****

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!