Homework due Wednesday 5/5

May 3, 2010

Define the following terms:
Graphical User Interface
Event Driven Programming
Event trigger(give an example)
Event handler
BDE


Homework due Tuesday 4/20

April 19, 2010

Having completed Project 2,
Describe the concept of modular development

How do you

  • Instruct one object to circle around another
  • Prepare and Unit test a method
  • Instruct one method to call another

Homework due Fri 4/16

April 15, 2010

Define the Software Development Cycle
1. Design Phase
2. Implementation Phase
3. Testing Phase
4. Debugging Phase


Homework due Tues. 4/13

April 12, 2010

Answer the following about Alice IDE
A. What does IDE stand for?
B. What is an Alice object and how do you view it’s subparts and properties?
C. Explain what an instance of an Alice object is and how do you add an instance of an object to an Alice World?
D. What is an Alice method?
E. How do you print the code for an Alice world?


Homework due Wednesday 3/24

March 22, 2010

Create Flow Charts for the following Java LOOP statements

int i; // counter variable
for( i = 1; i <= 100; i = i + i )
System.out.println( "i is now: " + i );
___________________________________________
int num = 10;
while( num > 1 )
{
System.out.println( “num is: ” + num );
num = num / 2;
}

______________________________________________
int num = 10;
do
{
num = num /2 ;
System.out.println( “num is: ” + num );
}while( num > 1 );


Homework Java Lesson 7 Loops due Tues 3/23

March 19, 2010

Write  for  statements (loop)  that will print out the

  • numerals 1,2,3,4
  • numerals 2,4,6,8 

Lesson 6 Questions due Wed. 3/17

March 15, 2010

This is a graded assignment

1.  Look at the source code for Final.java.   The nested if statements can be replaced in just one statement using comparison and conditional operators.   Write the statement.     Look at p. 599 in book

2.  Run Deposit.java    What are the results when  depositAmount is
$1000
$900
$2000
$50

 

 

 


Homework due Tues 3/16

March 15, 2010

Project 6.1   p. 606
Given the variables in a Java Program
int  i = 4;
int  j = 3;
boolean true_false;

Evaluate the following
true_false = (  j <4);
true_false = (  j < 3);
true_false = (  j < i );
true_false = ( i < 4 );
true_false = ( j != i );
true_false = (j == i   ||   i < 100)
true_false = (j == i  &&  i < 100)
true_false =  !(j <4)
true_false =  !true

 

 

 

 

  


Homework due Tues. 3/16- Assignment Grade

March 12, 2010

Refer to program you wrote for Project 5.3

  1. What is a Method?
  2. Name the 2 Methods in the program
  3. What lines of code code call the Method GetConsoleString
  4. Explain the try and catch process
  5. Explain the statement  return InputBuffer.toString()

Homework due Fri. 3/12

March 11, 2010

  1. Briefly explain how the two keywords try and catch work together
  2. Explain the Java Statement   InputChar = System.in.read();