Giter Club home page Giter Club logo

f17-lab04's Introduction

F17_lab04

Base repository for CS56 F17 lab04 (Open Source)

Student Instructions

See: https://ucsb-cs56-f17.github.io/lab/lab04/

How to run this code (originally: grader hints)

Originally, this section of the README.md was called grader hints, but is occurred to me that students completing the assignment should probably read this also. These are the commands that the TA, Reader, Instructor are going to use to check your work, so it will benefit you to run these commands also.

In addition, you can see examples of some past student work that illustrates what you are supposed to do in this assignment.

Overview

  • Use ant -p to see all available tasks
  • The grader tasks include these:
 gradeMPV1          run MultiPictureViewer for studentName with arg 1
 gradeMPV2          run MultiPictureViewer for studentName with arg 2
 gradeMPV3          run MultiPictureViewer for studentName with arg 3
 gradePV            run simple.PictureViewer for student in studentName property
 gradeSimpleGui1    run simpleGui1 for student in studentName property

To run one of those tasks, overriding the student's CSIL id to jgaucho, use, for example:

ant -DstudentName=jgaucho gradePV

You can test this with studentName set to pconrad, andrewberls, or jstaahl as examples. All of those should work on pconrad, though only the MPV tasks will work for the other two.

Detail

Showing the House and Incomplete Snowman

Try executing the following:

ant -DstudentName=pconrad gradePV

What you should see will look something like the picture shown at right.

Sample output from ant -DstudentName=pconrad gradePV

This is sample output from the program src/edu/ucsb/cs56/drawings/pconrad/simple/PictureViewer.java.

It shows code that was drawn by: edu.ucsb.cs56.drawings.pconrad.simple.PictureComponent. This code draws a simple house, and an incomplete snowman.

One of your "warmup exercises" for the lab is to try to complete your own version of this snowman (or, if you prefer, "person of snow".) This requires you to understand the Circle class which is in that same directory, and is just a simple wrapper around the built-in Ellipse2D class provided by that Java libraries.

Showing examples of three drawings from each of two student submissions:

Now try these commands:

  • ant -DstudentName=andrewberls gradeMPV1
  • ant -DstudentName=andrewberls gradeMPV2
  • ant -DstudentName=andrewberls gradeMPV3
  • ant -DstudentName=jstaahl gradeMPV1
  • ant -DstudentName=jstaahl gradeMPV2
  • ant -DstudentName=jstaahl gradeMPV3

What you should see in the first three cases are three pictures defined by three methods of the class edu.ucsb.cs56.drawings.andrewberls.advanced.AllMyDrawings

Here are screenshots of the images that result from running those commands:

Sample output from ant -DstudentName=andrewberls gradeMPV1 Sample output from ant -DstudentName=andrewberls gradeMPV2 Sample output from ant -DstudentName=andrewberls gradeMPV3

All of those are the result of the two iPod images defined in these classes, one of which inherits from the other:

Similarly, the second three images are the result of the methods of the class edu.ucsb.cs56.drawings.jstaahl.advanced.AllMyDrawings

All of those are the result of the two pencil images defined in these classes, one of which inherits from the other:

Here are screenshots of the images that result from running those commands:

Sample output from ant -DstudentName=jstaahl gradeMPV1 Sample output from ant -DstudentName=jstaahl gradeMPV2 Sample output from ant -DstudentName=jstaahl gradeMPV3

f17-lab04's People

Contributors

pconrad avatar derenlei avatar scottpchow23 avatar

Watchers

 avatar

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.