Twitter

Thursday, March 20, 2014

Free Response Hint for Friday's APCS Quiz

//this method will return the number of numbers in array
//that are less than the number 20


public int lessThanTwentyCount(int[] array)
{



   int count=0;
   for(int spot=0; spot<array.length; spot++)
   {
      if(array[spot]<20)
        count++;


   }
   return count;






}


Tuesday, March 11, 2014

Accelerated III Test # 4 Review

Ms. Erwin has graciously made a solution guide for the test review you worked on in class today.  You can see it here.  She said that number 1 is different on the guide than on the answer sheet.

Test on Wednesday!

GSP File for Tuesday Accelerated III

https://drive.google.com/file/d/0B2XYF8oNHClQQm9nWEFMbFFyeWc/edit?usp=sharing

Monday, March 10, 2014

Thursday, March 6, 2014

Accelerated III - URGENT!!!!!!!

Questions tomorrow will be asked
Under circumstances you are quite familiar with
 In a paper and pencil kind of format
Zeroes will not be tolerated!

























Find sin (3A) if A is in Quadrant I and cos A = 3/5.  If you do this and give Mr. Lewis the answer, written down on paper, sticky note, etc., you can add 10 points to whatever it is we do on Friday...

Wednesday, March 5, 2014

APCS Hint # 2

public void playGame()
{
Scanner keyboard = new Scanner(System.in);
int num = (int)(Math.random()*upperBound)+1, guess;
int guessCount=0;
do{
do{
  System.out.print("Enter a number between 1 and " + upperBound + " ");
  guess=keyboard.nextInt();
  if(guess<=0||guess>upperBound)
   System.out.println("Number out of range!");
  }while(guess<=0||guess>upperBound);
  guessCount++;
}while(guess!=num);
System.out.println("\nIt took " + guessCount + " guesses to guess " + num + " .");
double percent = (double)(guessCount-1)/upperBound;
System.out.println("You guessed wrong " + (int)(percent*100) + " percent of the time.\n\n");
}