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!
Tuesday, March 11, 2014
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...
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");
}
{
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");
}
Rock Paper Scissors
Hint:
public RockPaperScissors(String player)
{
int choice = (int)(Math.random()*3);
switch(choice)
{
case 0 : compChoice = "R"; break;
case 1 : compChoice = "P"; break;
case 2 : compChoice = "S"; break;
}
playChoice=player;
}
public RockPaperScissors(String player)
{
int choice = (int)(Math.random()*3);
switch(choice)
{
case 0 : compChoice = "R"; break;
case 1 : compChoice = "P"; break;
case 2 : compChoice = "S"; break;
}
playChoice=player;
}
Tuesday, March 4, 2014
Latest APCS Assignments
Here is what I believe are the up-to-date listings of the assignments for this semester in AP Computer Science. Feel free to check off what you have done. I am starting this process.
APCS Assignments
APCS Assignments
Subscribe to:
Posts (Atom)