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-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.


Last Week

Monday 9-08

Check the archive for Fraction and Point Class requirements.


Go over Fraction Class, clean up code

Tuesday 9-09

Time Class - basics : constructors -2 , due EOC
Date Class- basics EOC : constructors - 2, due EOC

grades

Wednesday 9-10

Keyboard Class - write ten (11 total) methods that implement a formula where the keyboard class is used to get the input. Submit here

Thursday 9-11 :

Quiz of general Classes

Friday 9-12

String Class Documentation

 

 

 


 

 

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