Hightower High School
3333 Hurricane Lane | Missouri City | TX | 77459
Phone: 281-634-5240 | Fax: 281-634-5333
 
About HHS Calendars Faculty News Services Library Courses
 Computer Science I PreAP - Dumes, Sherika
Navigation ::
Categories

Daily Warmup

Gaggle Information

Game (End of year Project)

HTML References

Presentation Slides (by chapter)

Student files

Syllabus & Calendar

All Resources

All Resources

April 12 & 15, 2013 -

Define two-dimensional arrays (Using Section 6.6 pages 333-337).



Examine the following:
 

double[][] values =
{ {1.2, 9.0, 3.2},
{9.2, 0.5, 1.5, -1.2},
{7.3, 7.9, 4.8} } ;

what is in values[2][1] ?


 

Examine the following:

 
double[][] values =
{ {1.2, 9.0, 3.2},
{9.2, 0.5, 1.5, -1.2},
{7.3, 7.9, 4.8} } ;


what is in values[3][0] ?


 

April 11 & April 12, 2013 -


  • Select one (1) comment.
  • Your blog comments should directly engage with the content of your peer's post. These can be short and informal, but shouldn’t be flippant.
    What points do you find persuasive? What further questions does the post raise for you? How did our class discussion change the way you thought about the post?


  • Post a comment (two (2) sentences or more).
  • Select one (1) comment ( a different posting) and post one (1) question with the hopes of continuing a conversation and deepening thinking.

Blogs -

Review Sheet - Chapter 3.1 to 3.4 -

-

Explain the difference between the prefix and postfix forms of the increment operator.

The prefix operator ++ adds one to its operand / variable and returns the value before it is assigned to the variable. In other words, the increment takes place first and the assignment next.

 
i = 5;

System.out.println(++i); //6



This prints out "6" because it takes i adds one to it and returns the value. 5+1=6; This is prefixing, adding to the number before using it in the operation.

The postfix operator ++ adds one to its operand / variable and returns the value only after it is assigned to the variable. In other words, the assignment takes place first and the increment next.

i = 6;

System.out.println(i++); //6 (i = 7, prints 6)



This prints out "6" because it takes i, stores a copy, adds 1 and returns the copy. So you get the value that i was, but also increment it at the same time. Therefore you print out the old value but it gets incremented. The beautfy of a postfix increment.

Then when you print out i, it shows the real value of i because it had been incremented. 7 <

2-25 & 2-16-13 -


    Provide short answers:

  1. What are increment and decrement operators?
     
  2. What are some examples of count-controlled loops?
     
  3. What are some strategic places to insert debugging statements when trying to debug a program with loops?
  4. T/FA while loop terminates its execution when its condition becomes true or false.
  5. The four components of a while loop are: _______.

Feb 21 & Feb 22 -


  • What are some errors that occur in nested if statements?

  • Once you’ve tested a program that works on one case, you are safe to assume it is okay.

  • Give your own real-life example of sentences using if/then, AND, OR, and NOT.
  • List the three logical operators.

  • What is the main difference between a while loop and a for loop?


Feb 19 & 20 - Writing Prompt (complete sentences and two (2) or more paragraphs):

What would happen if you found something valuable in your backyard? Explain the item too.

Main Class Blog(Web Resource) -

Dec 10 & 11, 2012 - - Writing Prompt (complete sentences and one (1) or more paragraphs):
I was most angry when...

Dec 6 & 7, 2012 - Writing Prompt (complete sentences and two (2) or more paragraphs):
•If you and your best friend could have a free limo for 24 hours, where would you go and what would you do?

11-30-2012 & 12-3, 2012 - Writing Prompt (2 paragraphs):
What do you like best about your home?

Study Guide - exam -answers -

Study Guide - exam -

A Table of Student Grades -

11-13 & 11-14, 2012 -

Writing Prompt (2 paragraphs):

I am from another planet and although I now understand computers, I do not understand variables, assignments, and expressions. Please explain it to me.


11-9-12 & 11-12-12 -


  1. Write the prompt using the exact words (from the board, paper, or online).
  2. Write journal entries independently.
  3. You have ten (10) minutes to spontaneously write about that prompt in their spiral.
  4. Clearly state the expectations of the prompt in complete sentences, terms of the context, topic and format ( one (1) paragraph = 3-5 sentences)).

    • Writing Prompt (2 paragraphs): You have an extra $100,000 to give away; you cannot spend it on yourself. What would you do with the money?

11-7, 2012 -


How many 5-letter words can you unscramble?


  1. OOSGE ____ ____ ____ ____ ____
  2. AHNTK ____ ____ ____ ____ ____
  3. DROLW ____ ____ ____ ____ ____
  4. AZPZI ____ ____ ____ ____ ____
  5. LCIHD ____ ____ ____ ____ ____
  6. EUCON ____ ____ ____ ____ ____
  7. EEUNQ ____ ____ ____ ____ ____
  8. BNRG ____ ____ ____ ____ ____
  9. OOGLI ____ ____ ____ ____ ____

11-8-12 -


How many 5-letter words can you unscramble?


  1. EHVAY ____ ____ ____ ____ ____
  2. DRIAO ____ ____ ____ ____ ____
  3. NEMOY ____ ____ ____ ____ ____
  4. PNAIO ____ ____ ____ ____ ____
  5. SPJMU ____ ____ ____ ____ ____
  6. EUCON ____ ____ ____ ____ ____
  7. EEUNQ ____ ____ ____ ____ ____
  8. BNRG ____ ____ ____ ____ ____
  9. OOGLI ____ ____ ____ ____ ____

11-5-12 & 11-6-12 -

Write the following statement and explain in three or more sentences:

If I could be any type of sandwich what type of sandwich would you be and why?

11-1-12 & 11-2-12 -

Complete (continue from 10-30-12) the following program:
Write a program that compute the surface area of a cube given the length of an edge.

  • Explain three weak areas you experienced on 10-30-12 and how did you clarify your problems?

  • 10-30 & 11-1 -

  • Declare variables to represent a person's name, age, and hourly wage.
  • Why must care be taken to order the operators in an arithmetic expression?
  • Write a program that compute the surface area of a cube given the length of an edge.

  • 10-24 & 10-25 -

  • Give examples of an integer literal, a floating-point literal, and a string literal.
  • Declare variables to represent a person's name, age, and hourly wage.
  • Why must care be taken to order the operators in an arithmetic expression?
  • Warmup 10/1 or 10/2/2012 -

  • Explain what are components of a readable program.
  • List three ruling for an identifier.
  • What is a data type? List four (4) data types.

  • compsci.java document - Save in your student file(h:\) as: compsci.java

    Syntax & Output -

    Chapter 1 Output & Syntax Slides -

    Powerpoint -

    Warmup 9-27/28-2012 - Provide the best answers to the following:


    1. Comments should _____ (3 sentences or more)
    2. The main method for a Java program is define as: (write the structure) .
    3. The instruction: System.out.println("Hello World"); might output the result:

    Warmup 9-25/26-2012 - Provide the best answers to the following:


    1. What purpose do quotation marks serve in a Java program? (2 sentences or more)
    2. What development environment are you using? (1 sentence or more)
    3. The message _____ is used to output data to the terminal window.
    4. What steps must be followed to run a Java program? List the steps.

    Facts About Microsoft(Web Resource) -

    Warmup - 9/17 & 18 /2012 -

  • List 2 (two) types of comments and write the format (syntax) for each.
     
  • Using page 38, explain the process of executing/running java code.
     

  • National University Rankings(Web Resource) -

    Warm-up 13 & 14 Sept 2012(Web Resource) - Click onto the word Warm-up to Read the article.

    1. T F Apple Corp. engineers developed the GUI.
    2. T F Xerox eventually sold computer with GUI and were profitable (millions).
    3. Tell what is Lisa?
    4. Explain the purpose of the Homebrew Club?
    5. Read the section: Apple and Microsoft Declare War & The Xerox Alto is Born
    6. 4. What does the acronym GUI stand for?
      a. Graphic Users International
      b. Graphic Unknow Interface
      c. Graphical User Interface
      d. Graphic User Interchange

    Syallbus 2012-2013 -

    CHAMPs (Classroom Expectations) - The acronym CHAMPs reflects the “categories” or types of expectations that you, as a student need to understand for every major activity or transition that occurs in your classroom.

    Classroom Rules - These rules are posted in the classroom.

    Pre-AP Calendar -

    Syallbus SY 2011-2012 - This syllabus contains all computer science classes.

    JCP - Gridworld -

    API's and Javadoc: What are they?(Web Resource) - This link will explain the purpose and how to use the API and Java doc.

    Java API(Web Resource) -

    An API stands for a "Java Application Programming Interface". It is like a super dictionary of the Java language, that one uses to look something up in. It has an index or collection of all Java packages, classes and interfaces, with all of their methods, fields and constructors, and how to use them. When one programs, there are many classes that are commonly used, and therefore pre created, so that the programmer doesn't need to create them from scratch. Let's look, for example, at a computer window frame. If the programmer had to create one from scratch, he would have to write hundreds of lines of code, to create the scroll down menu, the exit box, etc. Since a window frame is very popular, Sun has written the code for one, and all that you have to do is import the package that contains the window frame, and instantiate one with a new statement.

    HTML Cheat Sheet(Web Resource) -

    HTML Tags(Web Resource) - BareBones

    Color Chart(Web Resource) -

    Flowchart Symbols - Save this file in you h drive

    Pod Link(Web Resource) -

    Bill Gate Homes(Web Resource) -