|
Java Notes
An outline of topics to be addressed each day is presented below. This list is not complete; additional items are covered for most classes. If students are absent, they should consult these pages and check with the instructor concerning material missed.
Monday, June 4th Welcome to the course and introductions Summer Session policies Location of facilities My policies and what happens if they are violated Conduct No food or drinks in the lab Sit on stool or at desk - not on the table Do not change anything with the PCs - location, software, etc. Personal software cannot be loaded on these machines No net surfing or playing computer games Break for 10 minutes each hour - go outside The notebook I bring to class each day Distribute textbooks (when they arrive) - initial by your name to signify receipt. Time given in class to work all assigned problems (some reading outside of class) Computer accounts The initial password is password. Change it, write it on sheet of paper and give it to Nick. Do not give your password to anyone - using another student's account is a violation and will be reported. History of the C++ language Writing a Java Program: Introduction High-Level LanguageÚ Compiler Ú Machine Language Example program
Picture: Place name you would like for use to use in the indicated block. Review of material covered last class The Eclipse compiler Opening a project and class Save on z drive - NOT c drive Output: System.out.println Java is case sensitive New material Packages The swing package and the JOptionPane class import keyword concatenation operator parsing Practice: Run the InputOutput class Lab 1: Greasy Spoon Restaurant
Assume that you are the mananger of a restaurant. Establish a price for cokes, fries, and burgers and set a tax rate. Write a program that will Provide a greeting for a customer and announce the price of cokes, fries, and burgers. Take the customer's order. Announce what the customer ordered Announce the total bill, including tax.
Review of last class packages: group or library of related classes import key word: allows access to packages specified concatenation operator: overloaded plus operator - joins string and number parsing: converting from String to a number GUIs: The showMessageDialog() method of the JOptionPane class Work on Lab 1
Lab 2: Problem a
Movie: Creation of the Computer
Monday, June 11
Methods: Example returning a character Random Numbers using the Random class
Review
*This quiz is closed book, no notes or references of any kind. *No talking to anyone except me once I begin distributing the quiz. *If you must leave the room for any purpose, do so before the quiz is distributed. *Remove everything from your desk except the quiz and a pen or pencil. If you need additional space for a response, continue the response on the back and clearly identify which question is being continued both by the question and by the continuation. Print your responses. Write legibly – responses that cannot be easily read will be counted as incorrect.
Note: Violation of items marked by an asterisk (*) may result in your quiz being collected and a grade of 0 assigned.
Donuts Group 1: Miroslav Group 2: Kevin Group 3: Chan, Sean Group 4: Riaan Group 5: Premdas, Christine Group 6: Kyle, Josh
Movie: Computers
Monday, June 18th
Lab 5: arrays, exercise 1
Discuss Lab 5
Strings introduction Review exercise tomorrow Discuss Lab 5 Lab 6: EpicycloidalRectangles - Exercise at bottom of page
Applets Running Lab 7: Applets, Exercises 1 through 4
Lab 8: Graphics Create an applet with the title Using Java Fonts Print your first and last name in red, using Sans Serif, Italic, 14 point, Bold Draw a triangular shaped series of 30 lines below your name using green lines Draw a blue filled rectangle anywhere on the applet
Monday, June 25th
Will focus on JFrame instead of applets - rationale Java2D class Casting Font and Color (RGB versus color constants) classes translate and scale methods Lab 9: Exercise 1
Lab 10: Exercise 2
Presentations tomorrow Lab 9: Kevin Lab 10: Riaan WC: Kyle
Status of Java Labs Completed as of 6-27-07
Review exercise Presentations Lab 8: Chan Lab 9: Kevin Lab 10: Riaan WC: Kyle
Status of Java Labs Completed as of 6-28-07 ( = Very Good!)
Donuts Order (Based on results of review quiz yesterday 1st: Miroslav 2nd: Chan 3rd: Sean 4th: Kevin 5th: Paris The rest Chan presentation Strings and input not using the JOptionPane GUI
Monday, July 2nd
Open house is next Wednesday: 6 to 8pm in room 143 Status of Java Labs Completed as of Today ( = Very Good!)
The alternative to the blinking light (meaning good)
is the animated monkey (meaning not good)
Strings and input not using the JOptionPane GUI
Status of Java Labs Completed as of Today Dancing Duke = Good Animated Monkey = Not Good
Cryptography and Caesar's shift
Wednesday: No Class
Current status of assignments submitted.
Cryptography and Caesar's shift Topics for remainder of course
Current status of assignments submitted.
Presentations
Work on labs
Monday, July 9th
Current status of assignments submitted.
Sorting: Bubble Sort and Selection Sort Lab 14 Develop a one-dimensional array of 100 random integers in the range 1 to 99 (including 1 and 99) Print the elements of the array, appropriately labeled, 10 elements per line Bubble Sort the array Print the sorted results, appropriately labeled, 10 elements per line. Determine and print, appropriately labeled, the number of timesthe swap method is called.
Open House - Robotics demonstration tonight 6-8 pm in room 143. Will periodically go to room 212 for other courses. Meet me in room 143 first.
Current status of assignments submitted.
Donuts Course summary using my manual Current status of assignments submitted.
Labs 1. Greasy Spoon Restaurant - Input and output and math calculations 2. Patterns - control structures 3. Grades - conrol structures 4. Stars - control structures 5. Arrays - one dimensional array operations 6. Epicycloidal Rectangles - Java Graphics class 7. Applets - introductory operations 8. Applets - triangles and rectangles 9. Java Graphics class - Random lines 10. Java Graphics class - Random Rectangles - Random Ellipses 11. String methods 12 String methods and the Scanner class 13. Caesar's Shift - String methods and the ASCII tale 14. Bubble Sort - sorting algorithm Movies Creation of the Computer Creation of the Internet
|