Skip to content

WaYveeBot/Assignment-2-

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring 2023 Fundamentals of Computing I — Assignment 2

  • Read these instructions repeatedly until you understand, then begin your 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. .gitignoreDo 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.

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

❖ Due ❖

Wednesday, 1 March 2023, at 5:00 PM.


❖ 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.

Note: This assignment may only be submitted via GitHub. No other form of submission will be accepted.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 63.5%
  • Java 36.5%