/ Graphics Demo
/ William Ames, Fall 2012
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import javax.swing.JFrame;
/* * NOTE *
Some of the graphics techniques shown here are kind of cheating.
Drawing directly to the frame, un
Java Class Arrays
Java arrays are the primary method of storing lots of information
they are the Java equivalent of arrays
You can use variables that only exist inside certain functions and certain functions and for
loops
A selection sort searches the who
CS 101 Fall 2005 Midterm 1
Name: _
Email ID: _
This exam is open text book but closed-notes, closed-calculator, closed-neighbor, etc. Questions are
worth different amounts (in particular, the final question is worth substantially more than any other
quest
CS 101 Spring 2006 Midterm 1
Name: _
Email ID: _
This exam is open text book but closed-notes, closed-calculator, closed-neighbor, etc. Questions are worth
different amounts, so be sure to look over all the questions and plan your time accordingly. Please
CS 101 Fall 2006 Midterm 1
Name: _
Email ID: _
You only need to write your name and e-mail ID on the first page.
This exam is CLOSED text book, closed-notes, closed-calculator, closed-neighbor, etc. Questions are worth
different amounts, so be sure to loo
CSC142 Quiz 2 1
Multiple Choice Questions (10 points)
Answer all of the following questions. READ EACH QUESTION
CAREFULLY. Fill the correct bubble on your scantron sheet.
Each correct answer is worth 1 point. Each question has
EXACTLY one correct answer.
CS 101: Practice Questions for Test 1, SOLUTIONS
1. Write a Java application which prompts the user to enter 15 integers,
then computes the sum, and then prints the sum to the screen.
import java.util.Scanner;
public class SumIntscfw_
public static void m
Computer Science Homeworks 1 => 10 is Python, 11
& 12 are Java
Homework 1 Quadratic
#Area and Circumference of a Circle
# Matt Markham, Sept 2012
import math
print "Quadratic Equation Solver"
aStr = raw_input("Enter a value for a:")
a = float(aStr)
bStr =