Category Archives: Announcements

First Days – Introductions and policies

September 7th, 2016

How to turn in assignments:
1. Program name: initials followed by an underscore and assignment name. Example: GE_Snowman.java
2. Header information: Description of assignment, author and date
3. If the program generates output from test run, the output should be included in the program as comments
4. Upload the files with extension “.java”
5. Copy and paste your code onto the reply.

Classwork:
1. If you have not done so, visit edmodo.com
Create and account or join with the code given in the home page.
Note: Please use your full name as your screen name.

2. Read thoroughly the assignment below. Find a partner and discuss it.

3. Use paper and pencil/pen to “show” the IntegerSet and its functionality.

Homework due tomorrow:
1. Send me an email(graciela_elia@princetonk12.org) with your parents email address: the email subject should have student name and class period and class name:
Ex:
Subject: 3rd period – Intro to Comp -Your name 

2. Discuss the class policy with your parents.

3. Visit edmodo.com and reply to the “Introduce yourself” post.

Java Language and OOD Review Assignment
Due date: September 14th, 2016

  1. It will be graded based on design and correct implementation of the specifications.
  2. It is due on September 14th, 2016.
  3. Attach pseudocode for the union and intersection methods
  4. Attach a flowchart for the union and intersection methods. Here are some basic flowhcart symbols you need to know:
  5. Screen Shot 2013-09-01 at 8.24.32 PM

  6. Implement the driver/test class.

Create class IntegerSet. Each object of the class can hold integers in the range 0 through 100. A set is represented internally as an array of booleans. Array element a[i] is true if integer i is in the set. Array element a[j] is false if integer j is not in the set. The no-argument constructor initializes a set to the so-called “empty set” (i.e., a set whose array representation contains all false values).

Provide the following methods:

1. Method unionOfIntegerSets creates a third IntegerSet which is the set-theoretic union of two existing sets (i.e., an element of the third set’s array is set to true if that element is true in either or both of the existing sets; otherwise, the element of the third set is set to false).

2. Method intersectionOfIntegerSets creates a third IntegerSet which is the set-theoretic intersection of two existing sets i.e., an element of the third set’s array is set to false if that element is false in either or both of the existing sets; otherwise, the element of the thirds set is set to true).

3. Method insertElement inserts a new integer k into a set (by setting a[k] to true).

4. Method deleteElement deletes integer m (by setting a[m] to false).

5. Method setPrint prints a set as a list of numbers separated by spaces. Print only those elements that are present in the set. Print “- – -” (3 dashes) for an empty set.

6. Method isEqualTo determines if two sets are equal.

Write a program to test your IntegerSet class. Instantiate several IntegerSet objects. Include proof that all your methods work properly.

NOTE: Use your IntegerSet drawing and flowchart to work on the implementation.

I WILL COLLECT ALL YOUR PAPERS. MAKE SURE YOUR NAME AND PERIOD ARE ON IT.

Midterm Review ArrayLists – sorts – inheritance

AP Computer Science 2013-2014
Midterm date: 1/28

Midterm review Two-review days

Look at self-review, short answers, true/false and multiple choices exercises for chapters 2 through 8.
Review the following concepts:
Recursion: easy algorithms like factorial, Fibonacci, mathematical expression, palindrome, reversing order of a string.

Searches and Sorts: non-recursive and recursive

Arrays and ArrayLists:
• ArrayLists methods
• Iteration of an ArrayList
• Generic Classes

String class and methods

Inheritance: “ is a ” concept
• Look at the Pet application on pages 401 and on.
• Inherited methods – super
• Overloading and overriding
• Shadowing
• Abstract classes

Interfaces specially Comparable
Know how to compare elements in a linked structure, arrays, arrayLists and inherited objects.

PROMYS

PROMYS provides a lively mathematical environment in which ambitious high school students explore the creative world of mathematics. Through their intensive efforts to solve a large assortment of unusually challenging problems in Number Theory, the participants practice the art of mathematical discovery – numerical exploration, formulation and critique of conjectures, and techniques of proof and generalization. More experienced participants may also study The Mathematics of Computer Graphics, Complex Analysis in Number Theory (Dirichlet’s theorem on arithmetic progressions), and Geometry and Symmetry. Problem sets are accompanied by daily lectures given by research mathematicians. In addition, a highly competent staff of 20 undergraduate counselors live in the residence halls and are always available to discuss mathematics with students. Advanced participants also develop independent research projects advised by research mathematicians. Special lectures by outside speakers offer a broad view of mathematics and its role in the sciences and in future career options.

Screen Shot 2016-01-30 at 1.08.58 AM