Git Product home page Git Product logo

124-hw0's Introduction

Comp 124 - Homework #0

Overview

The goal of this homework is to familiarize you with the development environment you will be using in this class, including IntelliJ, JUnit, Git and GitHub. You will correct a simple class that calculates the area of two shapes: a square and a circle. Although the programming in this project is not challenging, the setup of your development tools may be. You will often encounter an unexpected challenge or two when learning a new technology!

Preparing Your Workspace

  1. If you haven't already done so, begin by following the instructions in part one of the Google Doc to set up your IntelliJ project on your laptop.
  2. Follow the instructions in cloning a repo to clone https://github.com/mac-comp124-f17/124-hw0. After you fork the repo it will be available at https://github.com/your-github-username/124-hw0.

Run the tests (they should fail)

  1. Run the tests. Right click on the class name AreaTest. Select Run -> AreaTest.
  2. IntellIj will run the tests, but they will fail. Each test has an orange exclamation points and error messages appear in the console when they are complete.

Complete the assignment.

  1. Open Area.java
  2. Fix the two lines marked "TODO" in Area.java. You may not change AreaTest.java.
  3. Rerun the unit test AreaTest.java. Look for a green "OK" next to each test.
  4. If (unit tests do not pass) goto step 2.

Submit your asssignment.

  1. Commit your changes: Select the hw0 module, right click, and select Git -> Commit Directory.
  2. You should see all the source files you changed (which is only Area.java) with a checkmark in the popup.
  3. Change the "commit" button to "commit and push" in the lower righthand corner.
  4. Write an appropriate message in the comment box.
  5. IMPORTANT: Select "commit and push" (not just commit) in the lower right.
  6. Select "push" to send your changes to GitHub.
  7. IntelliJ should say "push successful"
  8. Visit your github site in your web browser to make sure the changes you made were pushed correctly.
  9. Proclaim victory! You've finished your first homework assignment!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.