Documents Found!
As seen in
Less Work, Better Grades
Join
Course Hero
Access
best resources
Ace
your classes
Ace your courses with Course Hero!

Submit your homework question or assignment here:
352 Tutors are online
 
We are so confident that you will love our service, we will answer your first homework question for FREE!
*  Attach Assignment (optional):
 
Study Smarter, Score Higher
 
Document Content (unformatted)
Course Hero has millions of student submitted documents similar to the one below including study guides, homework solutions, papers, exam answer keys and textbook solutions.
Most 1. students did very well this time. Most required functions are implemented, and many completed the extra points section. 2. there Still are several groups forgot to submit the supporting classes. 10 points were deducted according to the grading policy.
Find millions of documents here - Study Guides, Homework Solutions, Papers, Exam Answer Keys and more. Course Hero has millions of course related materials that will enable you to learn better, faster and get an A in all your courses.
Below is a small sample set of documents:

UMass (Amherst) >> ECE >> 122 (Fall, 2009)
Account Project4 = = A36563 100 A37395 70 A73448 A93030 0 B15582 B30534 100 B62000 100 B63878 100 B87334 60 C05516 C07107 90 C16660 C31579 80 C76512 ...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
Account Project6 = = A36563 A37395 90 A73448 A93030 100 B15582 B30534 110 B62000 110 B63878 100 B87334 107 C05516 C07107 110 C16660 C31579 C76512 110 C92057 ...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
Grading Policy: There are 100 points total for this project: - 10 points are deducted if missing any required files. - The dialog should have the required interface, and the required functions should work properly. (80 points) - ...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
Grading Scheme: Grading Crietria: Basic requirement: total 100 points. Extra requirment: total 13 points 1. check duplicated SID 3 points 2. Use array directly 10 points If your program cannot be comp...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
Grading Crietria: Basic requirement: total 100 points. 1. project1a 50 points 2. project1b 50 points Extra requirment: total 10 points 1. readDouble 5 points 2. readString ...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
Account Project2 = A36563 75 A37395 A73448 A93030 60 B15582 B30534 105 B62000 105 B63878 B87334 110 C05516 C07107 103 C16660 C31579 100 C76512 110 C92057 100 D08322 100 D14101 D78830 110 D847...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
Grading Scheme: Grading Crietria: Basic requirement: 1. Course.java 2. Student.java Extra requirment: total 10 points 1. printStudents method (Either a 0 or a 10) If your program cannot be compiled succesfully, ...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
Account Project3 = = A36563 100 A37395 90 A73448 A93030 110 B15582 B30534 110 B62000 110 B63878 B87334 100 C05516 C07107 100 C16660 C31579 50 C76512 85 C9...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
General comments: 1. Many students did not submit Constant.java, NegatePipe.java and Pipe.java with their work. Your Programs will not compile unless you submit them. We had to supply the necessary class files to compile them. Though, they have not ...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
About grading: 1. Some students\' programs do not compile. According to the grading policy, you should have got 0s. 2. Many students did not submit the SID in their codes. Please do so from next time. 3. If there was no proper documentation, you wi...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
General comments: 1. Many students did not have graduateDate variable and its set/get methods in Student.java. Some of them did not have set/get methods to access private variables in Student.java/Teacher.java/Course.java. 2. Some students did not ...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
About grading: 1. Some students\' programs do not compile. According to the grading policy, you should have got 0s. However, depending on how well your code was written, we gave 50 - 70 points for your effort. Next time we may strictly follow the ...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
Grading Crietria: Basic requirement: 1. Part(a): 50 points. 2. Part(b): 50 points. Extra requirment: total 10 points 1. getUniqueStudentId method to return an unique integer as student ID. If your program doe...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
Account Project5 = = A36563 A37395 100 A73448 A93030 100 B15582 B30534 100 B62000 100 B63878 65 B87334 85 C05516 C07107 100 C16660 C31579 95 C76512 100 C92057 100 D08322 ...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
Grading Crietria: Basic requirement: 1. Part(a): 40 points. 2. Part(b): 60 points. Extra requirment: total 10 points 1. doPipeline method in SingleInputPipe.java If your program does not conform to the require...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
public int dayOfYear() { int total = 0; for (int m=1; m < _month; m+) { total += daysInMonth(_year, m); } return total + _day; } ...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE 122 Feb. 3, 2005 Java Data Types Primitive types. boolean, byte, char, short, int, long, float, double Reference Type. Class. boolean 1 bit of data. Can only be of two value, true or false Declaration: boolean b; Assignment: b = true; b ...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE 122 Feb. 1, 2005 Introduction to Eclipse Java Statements Declaration Assignment Method calls Declaration A variable is like a container that can hold certain content/value. Variable declaration consists of type and name Variable name, by...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE 122 March 24 Motivation I am tasked to write two classes, one for cat, one for sheep. That is easy. I roll up my sleeve and get it done! Here is my class for cat import java.io.*;/importing java I/O package public class Cat1 { File imageFile;...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
Download Eclipse 1. Download Eclipse IDE from www.eclipse.org by clicking on one of the download links on page, http:/www.eclipse.org/downloads/index.php , Choose version 3.01. Choose a site that nears us. Save the file in a folder on your local comp...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE122 Quiz #1 Open books, open notes, No computer. Question 1: Which of the following is NOT right for Java programming language? 1. 2. 3. 4. Object oriented Platform dependent Garbage collected Multi-threaded Question 2: How do you invoke a Java v...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE 122 JList Demo JListDemo.java Mouse Event Handling MouseListener MouseMotionListener MouseInputListener. Extends interfaces of both MouseListener and MouseMotionListener to create a single interface Methods of MouseListener public voi...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE 122 April 12, 2005 Look closer at Animal class We can instantiate an Animal object: Animal a = new Animal(); However, what does such an animal object looks like and behaves? We need Animal class, but not generic animal object We still needs ...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE 122 Feb. 8, 2005 if Statement A condition is an expression that can be either true, or false. if statement allows a program to make a decision based on the value of a condition. Equality Operators = e.g. x=y != e.g. x!=y means x is equal to...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE122 Feb 10, 2005 Unary Operator An operator that takes only a single operand Plus: + Minus: Cast: (type). E.g. (double) Compound Assignment Operator Operator += -= *= /= %= Example x += y x -= y x *= y x /= y x %= y Meaning x=x+y x=x-y x=x...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE 122 We know this Cat cat = new Cat(); Animal animal = new Animal(); and this? Animal animal = new Cat(); An object reference of super class type points to an object of sub class type. It is legal and it is called polymorphism. Motivation L...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE 122 April 19, 2005 Are you tired of Console I/O yet? We should have something fun. Something graphical, response with a click of a button, even animations. Java GUI What is GUI? Graphical User Interface It is so intuitive, and easy to use...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE122 Feb. 22, 2005 Any question on Vehicle sample code? Returning from a method (review) void methods do not return a value to the method caller. Such method will return when its method closing brace is reached, or a return statement is executed...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE122 Feb. 17. 2005 Introduction to Class and Object Java is an object-oriented language. Javas view of the world is a collection of objects and their interactions. Class is a template, or blueprint to build objects. Objects are instantiated (c...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE 122 Exception Handling Exception handling provides a graceful way of handling exceptional cases and errors. The system will not crash when such exception happens. The control will be transferred to exception handling code, which will correct th...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE 122 Feb. 15, 2005 for Repetition Statement for (int i=0; i<5; i+) System.out.println(i); Generalization for(initialization; loopContinuationCondition; increment) statement; Better use integer as counter Demo for statement Common Programmin...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE 122 April 14, 2005 I/O stream Java performs I/O through streams. A stream is linked to a physical device by the Java I/O system. All stream behave in the same manner, even if the actual physical device is different. Same I/O classes and meth...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE122 March 22, 2005 Scope Encapsulation Encapsulation is a feature of object-oriented world. We don want to put a million lines of code in the t main method to solve a large complex problem. It is too complex to comprehend and difficult to dele...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE 122 April 26, 2005 Inner Class An inner class is a class defined within another class. An inner object is bonded with its external object. The inner object has access to all (both public and private) the variables and methods of the external ...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE 122 April 12, 2005 Look closer at Animal class We can instantiate an Animal object: Animal a = new Animal(); However, what does such an animal object looks like and behaves? We need Animal class, but not generic animal object We still needs ...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE122 Feb. 22, 2005 Any question on Vehicle sample code? Returning from a method (review) void methods do not return a value to the method caller. Such method will return when its method closing brace is reached, or a return statement is executed...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE 122 JList Demo JListDemo.java Mouse Event Handling MouseListener MouseMotionListener MouseInputListener. Extends interfaces of both MouseListener and MouseMotionListener to create a single interface Methods of MouseListener public voi...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE122 Feb 10, 2005 Unary Operator An operator that takes only a single operand Plus: + Minus: Cast: (type). E.g. (double) Compound Assignment Operator Operator += -= *= /= %= Example x += y x -= y x *= y x /= y x %= y Meaning x=x+y x=x-y x=x...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE 122 Feb. 8, 2005 if Statement A condition is an expression that can be either true, or false. if statement allows a program to make a decision based on the value of a condition. Equality Operators = e.g. x=y != e.g. x!=y means x is equal to...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE 122 Feb. 1, 2005 Introduction to Eclipse Java Statements Declaration Assignment Method calls Declaration A variable is like a container that can hold certain content/ value. Variable declaration consists of type and name Variable name, b...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE122 Feb. 17. 2005 Introduction to Class and Object Java is an object-oriented language. Javas view of the world is a collection of objects and their interactions. Class is a template, or blueprint to build objects. Objects are instantiated (c...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE 122 Feb. 15, 2005 for Repetition Statement for (int i=0; i<5; i+) System.out.println(i); Generalization for(initialization; loopContinuationCondition; increment) statement; Better use integer as counter Demo for statement Common Programmin...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE 122 March 24 Motivation I am tasked to write two classes, one for cat, one for sheep. That is easy. I roll up my sleeve and get it done! Here is my class for cat import java.io.*;/importing java I/O package public class Cat1 { File imageFile;...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE 122 We know this Cat cat = new Cat(); Animal animal = new Animal(); and this? Animal animal = new Cat(); An object reference of super class type points to an object of sub class type. It is legal and it is called polymorphism. Motivation L...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE 122 Feb. 3, 2005 Java Data Types Primitive types. boolean, byte, char, short, int, long, float, double Reference Type. Class. boolean 1 bit of data. Can only be of two value, true or false Declaration: boolean b; Assignment: b = true; b = ...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE122 March 22, 2005 Scope Encapsulation Encapsulation is a feature of object-oriented world. We don\'t want to put a million lines of code in the main method to solve a large complex problem. It is too complex to comprehend and difficult to dele...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE122 March 29, 2005 Another Example of Inheritance I want to write classes of medical doctors. One is family practitioner, one surgeon. How many classes do I need? What are they? Can I use inheritance? What should I put in super class? What ...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
A1 import java.awt.FlowLayout; import java.awt.event.*; import javax.swing.JButton; import javax.swing.JFrame; public class TwoButtonsInnerClass { JButton button1; JButton button2; public void go() { try{ JFrame frame = new JFrame(); frame.getContent...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
Q1 Write a program that shows a Java Jframe with FlowLayout manager. There are two buttons on the frame initially displayed with text \"button\". When user clicks on any button, the button text changed to \"clicked\" Q2 write a class that inherit from th...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE 122 Spring 2005 Exam #1 Name_ Student ID_ Discussion Session (circle one): (1) Wednesday 10:10am 11am (2) Wednesday 11:15am 12:05pm (3) Wednesday 1:25pm-2:15pm (4) Wednesday 2:30pm-3:20pm Open Notes, open books, no computers. Please note: If yo...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
Answer to Exam 1 Question #1 The output of the code is: 0 1 2 This is a straight forward question. It tests your knowledge of \"for statement\". The counter variable is i, i is initialized to be zero, the loop continuation condition is \"i<3\", the count...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
Answer to Exam 1 Q1 5 4 3 2 1 Q2 case 3 Q3 should use \"continue\", not \"break\" should use i-, not i+ should have i- before continue Correct code: public void q3() { int i = 6; while (i>0) { if (i=3) { i-; continue; } System.out.println(i); i-; } } ...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE 122 Spring Semester Exam2 Answer A1: Car:startEngine BMW7:turn BMW7:cruiseControl BMW7:temperatureControl Since BMW7 doesnt override startEngine() method, so it inherits it from Car class. Since BMW7 override turn() method, so the overridden met...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE 122 Spring Semester Sample Exam2 Answer A1: MyClass:method1 MySubClass:method2 MySubClass:method3 Since MySubClass doesnt override method1() method, so it inherits it from MyClass class. Since MySubClass override method2() method, so the overrid...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
ECE 122 Spring 2005 Sample Exam #2 Name_ Student ID_ Discussion Session (circle one): (1) Wednesday 10:10am 11am (2) Wednesday 11:15am 12:05pm (3) Wednesday 1:25pm-2:15pm (4) Wednesday 2:30pm-3:20pm Q1 (25/100) What is the output of the following c...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
private int _year; private int _month; private int _day; public Date(int year, int month, int day) { this._year = year; this._month = month; _day = day; } public static void test() { Date d1 = new Date(2005, 3, 2); ...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
public String toString() { return \"\'Date object [\"+ \"y=\" + _year + \", m=\" + _month + \", d=\" + _day + \"]\'\"; } ...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
public static int daysInYear(int year) { return 365 + (isLeapYear(year) ? 1 : 0); } public static int daysInMonth(int year, int month) { int count; switch (month) { case 9: / Thirty ...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
public static boolean isLeapYear(int year) { / A leap year / if year is divisible by 4, but not 100, / OR year is divisible by 400: return (year % 4) = 0 & / year divisible by 4 (year % 100) != 0) | / and not ...
UMass (Amherst) >> ECE >> 122 (Fall, 2009)
public int epoch() { final int origin = 1970; int total = 0; if (_year >= origin) { for (int y=origin; y < _year; y+) { total += daysInYear(y); } total += dayOfYear(); }...
UMass (Amherst) >> CS >> 187 (Fall, 2009)
Self-Balancing Search Trees Based on Chapter 11 of Koffmann and Wolfgang Chapter Outline The impact of balance on search tree performance Balanced binary search trees: AVL trees Red-Black trees Other balanced search trees: 2-3 trees 2-3-4 tr...
UMass (Amherst) >> CS >> 187 (Fall, 2009)
Self-Balancing Search Trees Based on Chapter 11 of Koffmann and Wolfgang Chapter Outline The impact of balance on search tree performance Balanced binary search trees: AVL trees Red-Black trees Other balanced search trees: 2-3 trees 2-3-4 tr...
UMass (Amherst) >> CS >> 187 (Fall, 2009)
Class Hierarchy II Discussion E Hierarchy A mail order business sells catalog merchandise all over the country. The rules for taxation on the merchandise vary from state to state. Also, the rate of taxation can be different based on the type of mer...
Cal Poly Pomona >> ENGLISH >> 465 (Fall, 2009)
465 PORTFOLIO ASSIGNMENT DIRECTIONS: Your portfolio should present a portrait of you as an English major. It will be comprised of five sections. Section 1 will include representative samples of the work you have done during the last 3-4 years, along ...
Cal Poly Pomona >> TED >> 434 (Fall, 2009)
FALL 2001 Dr. John R. Maitino Cal Poly Pomona/English (9494930678 home); Email: jrmaitino@csupomona.edu or maitino@aol.com Course Hours and Room: ...
Cal Poly Pomona >> ECE >> 425 (Fall, 2009)
Review Chapter 5 We started from 04/21/09 ece425 M. Yin 1 To this single-cycle design (with simple datapath and control unit) 04/21/09 ece425 M. Yin 2 What\'s different here? 04/21/09 ece425 M. Yin 3 The main problem with the single-cycle ...
UMass (Amherst) >> CEE >> 121 (Fall, 2009)
Total Station Manual For Use With The Leica TC407 Total Station CEE121 Introduction to Civil and Environmental Engineering Measurements Created by Kane C. Bennett Reviewed by Stacy A. Metzger Don J. DeGroot Civil and Environmental Engineering Univ...
UMass (Amherst) >> BIEP >> 640 (Fall, 2009)
1 Intermediate Biostatistics Computer Illustration Logistic Regresion Software: Minitab v 14 Data: Source: Afifi A., Clark VA and May S. Computer Aided Multivariate Analysis, Fourth Edition. Boca Raton: Chapman and Hall, 2004. These data are a stud...
UMass (Amherst) >> ACCODEV >> 3 (Fall, 2009)
MODULE 5: ONLINE GRADE BOOK Note about this Module To complete this Module, you need to add students to your course. Contact your WebCT system administrator for assistance with this task. SCENARIO You want to use WebCT to create an online grade book...
UMass (Amherst) >> ACCODEV >> 3 (Fall, 2009)
WebCT: Powerpoint - Mac page 1 of 6 UMass Office of Information Technologies oit WebCT: Powerpoint Presentations Macintosh 1. Apply Existing Office Updates and Patches 2. Linking to a PowerPoint Presentation (PPT or PPS) 3. Viewing an Unconverted...
What are you waiting for?