Professor Kit Romano's Web Site

 



Site Index

About Me

Welcome
Definition of Program
Variable Types
Understanding Memory
Declaring Variables
Simple Commands
Concatenation and Strings
Sleep-Threads-Try Catch
Campus Scenes
Pictures
Java simplified
Application Shell Styles
Reading Data From File
Overview of Applets
Excellent Graphics Applet
Online Reference
Nested if statements
Arrays
Sorting Arrays
Using Strings
Functions
Top 20 Replies 
First program 211
Important Class Example
JAVA in SDK Environment
Understanding OOP
OOP simple example
Recursion example
Example of Inheritance
     and use of JTextArea



*** Web Related **********
Build Student Web Page ?
What is FTP
Download WS ftp95
Download Java Plug In
Applets from jbuilder to sdk
Practice Problems

 

Programming Examples

 

 

                                                

 

Programming Examples

Summary of all Graphics Commands
Click HERE to view student Applets in other classes
THE APPLETS BELOW WERE SPECIFICALLY DESIGNED FOR MATH  100 and CIS 104 STUDENTS
Dificulty Seq # Code  Execute Description
1 1 Applet1     run        simple rectangles in loop
1 2 Applet2     run         fillOvals and colors
1 3 Applet3     run         multi-colors centipede  loops
1 4 Applet4     run         simple animation using repaint()
1 5 Applet5     run         star using arrays and fillpolygon
1 6 Applet6     run         2 light post in loop evenly spaced
1 7 Applet7     run         planet orbiting around sun
1 8 Applet8     run         brick wall staggerd needs correction
1 9 Applet9     run         random colors drawarc changing y value
1 10 Applet10   run         same as #6 but nested loops for bricksl
1 11 Applet11   run         drawArcs with all parameters random
1 12 Applet12   run         fillArcs with all parameters random
1 13 Applet13   run         animation using setXORMode not repaint
1 14 Applet14   run         input value / print result (nice format)
    3 SPECIAL APPLETS  below that involve math, geometry, and advanced programming concepts by Kenneth Woelkers 
1 15 Ovals      run      applet bouncing ovals
1 16 Tree         run      applet fancy tree 
1 17 Solar       run      very cool solar system applet
1 18 Latest Version of Solar System
THE APPLETS AND APPLICATIONS BELOW ARE MORE ORIENTED TO CIS 211 STDENTS
Difficulty Seq # Description
2 1 Assign 3 values, find product, and print
2 2 Add up the number from 1 to 100 and print
2 2A Input 2 number print largest and the total
2 3 Input 3 numbers , one at a time, and print total
2 4 Find largest of 3 numbers that were input one at a time
2 5 Convert money to various coin denominations
2 6 Strings Frames and some graphics
2 7 Random number for drawing ovals (color and position)
2 7A Applet Same objective as number 7 above
2 8 Simple array use, store 10 numbers and later print 
2 9 Input names into string array and print in reverse order
2 1 Find 3rd digit to right of decimal point
2 2 Reading data from a sequential file and making decisions
2 3 Applet Print the name 'computer'  5 times
2 4 Number guessing game
3 1 Same as 1-4 above but uses a simple function and returns an int
4 1 Count number of 9;s in a string
4 2 Reverse the order of a string into another string
5 5 Clock Program  --  all code in Main Method
6 1 Animation example of plane landing  (complex)
6 2 Applet Same as 6-1 except in applet form
6 3 Applet Excellent Graphics Applet Example
8 1 Applet  Responding to mouse clicks
8 3 Building a Sequential File
8 4 Sample of classes, dynamic arrays, jtextarea, class methods
9 1 211 PROGRAM WRITTEN IN  OOP  FORM