Homework due Wednesday 5/5
May 3, 2010Define the following terms:
Graphical User Interface
Event Driven Programming
Event trigger(give an example)
Event handler
BDE
Define the following terms:
Graphical User Interface
Event Driven Programming
Event trigger(give an example)
Event handler
BDE
Having completed Project 2,
Describe the concept of modular development
How do you
Define the Software Development Cycle
1. Design Phase
2. Implementation Phase
3. Testing Phase
4. Debugging Phase
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?
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 );
Write for statements (loop) that will print out the
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
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
Refer to program you wrote for Project 5.3