CS114 Read these instructions repeatedly until you understand, then begin yo Solution
ur project. If something is not clear, ask. â– Before You Begin â– 1. Log in to GitHub. 2. Fork this repo(sitory). See this video on how to carry out this step and step 3. 3. Clone your fork, using either the web site or the GitHub Desktop client. 4. Checkout your personalized branch, the one with your name and GitHub handle.
■Introduction ■For this assignment, you’ll be writing a program that accepts input from the user in the form of an integer, then creates a diamond whose width (in columns) and height (in rows) are dictated by user input. For example, if the user enters 5, then the height of the diamond is 5 rows and the width of the diamond is 5 columns. See http://vanegas.cs.hartford.edu/uploads/videos/diamond-program-in-java.mp4. Important Note: Odd and even versions of the diamond are rendered differently. Review the aforementioned video carefully for an example.
■File List ■This repo contains the following files, all required to carry out this assignment. Before you start working, ensure you understand the role of each file below. 1. Makefile — Run make in your command line interface, or CLI, from this repo’s root folder to build your assignment. As you test input, run make run to only run a previously-compiled Java program, not compile it. Run make clean to remove the class file. 2. .editorconfig — Everything in this file is a redundancy of what’s already in the .editorconfig file you installed in your home folder. It’s here to make sure you’re working with the formatting rules defined in .editorconfig, as this is part of the neatness portion of your grade. Ensure EditorConfig is working in VS Code, before beginning this assignment. 3. .gitignore — Do not modify this file. 4. Diamond.java — Where you will do your assignment. Do not write your code in anything other than this file.
â– Example Output â– Here are two examples of output, one for an even situation, the other for an odd. ```bash Enter a number 8 * * * * * * *
* * * * * * * Enter a number 5 *
* ```
â– Grading â– | Item | Points | |-----------------------------------------------------------------------------|:-------:| | Program works according to instructions | 20 | | Code avoids being clever in favor of readability | 20 | | Code is neat and professional | 20 | | Variable naming is logical | 20 | | Comments are used thoughtfully in places where code is not self documenting | 20 |
â– Submission â– You will need to issue a pull request back into the original repo, the one from which your fork was created for this project. See the Issuing Pull Requests section of this site for help on how to submit your assignment.