APCS

Site Stats
AP schedule | AP LogIn | AP Forms | AP Resources | AP Archive | AP Stuff
C++ schedule | C++ LogIn | C++ Forms | C++ Resources | C++ Archive | C++ Stuff
Adven schedule | Adven LogIn | Adven Forms | Adven Resources | Adven Archive | Adven Stuff
Stat schedule | Stat LogIn | Stat Forms | Stat Resources | Stat Archive | Stat Stuff

Schedule

Monday 9-22 : Notes - Data Entities in Java

Quiz material

Identify and describe the two data entities in java.
List the four basic primitive data types.
List and arrange in order of size the four primitive integer data types.
Explain overflow and underflow.
Compare and contrast a variable declaration and a variable initialization.
Identify and describe an integer literal, character literal, double literal, and a string literal.

Tuesday 9-23

Today we will take a pre-test over strings, view a slideshow over the String class, and then you will answer approximately 16 questions over the String class documentation.

String pre-test : Do NOT discuss the questions while you are taking the pre-test. The only way you will NOT receive full credit for the pre-test assignment is if I get a report from the substitute that students were talking while taking this. Questions in red are to be omitted. After taking the pre-test, view the slideshow. Take the pre-test.

Slideshow

Questions over the String Class documentation. ONLY ANSWER THE BLUE TEXT QUESTIONS! Do not answer questions in black text. This is not part of the pre-test. Answer the questions. Due Midnight tonight

Wednesday 9-24

Java Basic Questions - You may use books and the Internet. You can NOT use each other. Submit before leaving.
Move so that no two students are next to one another like we do when taking a quiz. In the ID field put the station you are setting at. You do not have log off the station you are at now.

Basic Questions

Thursday 9-25 :

Objects in memory

Line class consisting of two Points - write the following :

public double calcSlope() and
public double calcDistance

Friday 9-26

Homecoming


Last Week

Monday 9-15


toString methods
Person class

String Class Documentation

Tuesday 9-16

String Class

Wednesday 9-17

Quiz

Thursday 9-18 :

Writing an application with the Point class

Friday 9-19

Grades

Fraction Class Modifications

1. No magic numbers - use constants or comments
final <data type> identifier = <value> ;

2. Rearrange the methods as indicated below and discussed in class. This is for grading purposes.

3. TEST, TEST, and TEST your methods!

Assume a fraction will not be constructed if the denominator is 0.

Required method order in the Fraction class.

constructors - 1
accessors - 2 typical accessors
modifiers - 2 typical modifiers and

simplify -
Simplifies the fraction by dividing the numerator and denominator by the greatest common factor (GCF)

multByWholeNumber -
multiplies the fraction by a whole number.

invert -
changes the fraction to its reciprocal.

helper methods

isImproper -
returns true if the numerator is greater than the denominator.

isWholeNumber
-
returns true if the denominator divides evenly into the numerator.

getGCF
- returns the largest number that divides evenly into the numerator and denominator.

getDecValue -
returns the decimal value of the fraction

getPctValue -
returns the decimal value as a percentage.
Add one more to the list

toString -
returns the fraction as a string in the form of x / y

additional modifier methods

additional modifier methods here.

additional helper methods

additional helper methods here.

Submit the code by midnight sunday.

 

 

 


 

 

About Us | Site Map | Search | Contact Us | ©2005 brentwoodhigh.com