Starting today the seating chart in class is as follows: +----------------------+--------------------+---------------------------+ |,Yoon Mo .Nick | N/A N/A |.Sarah ,Scott | | | | | | Lauren Nathan | Alex James |:Madhuvanthi ,Francis | +----------------------+--------------------+---------------------------+ |,Dean :Sushmitha | Vikas Neethu |:Rajeswari :Leo | | | | | |;Gang .Margaret | Hongliu Mohammed |:Echo .Daniel | +----------------------+--------------------+---------------------------+ Instructor's Workstation ----------------------------(whiteboard and screen)---------------------- Symbols used above and their signification: . A202 : A598 , A290 ; A590 So there are five teams and we'll work in class in groups, as explained below. Plan for the lecture today: a) first 10-15 minutes we confirm everybody can run Java on their workstations. Next we need to determine your assignments, or start workign towards that, so you will start working in groups. b) 10-15 minutes (protocol to be explained shortly) in group, as a team. Run the following programs and work with them a bit. Then prepare a concise description of each, to the best of your ability, capturing as best you can what the program does and how it works. There are four program in the archive below: 1. One.java ...................... your description here (what and how, to the best of your ability to explain/describe) 2. Two.java ...................... your description here 3. Four.java ...................... your description here 4. Five.java ...................... your description here The archive is here: https://www.cs.indiana.edu/classes/a202-dger/fall2005/notes/labText.jar Here's how they run for me on silo: -bash-3.2$ java -classpath labText.jar One Welcome to the grade converter. Enter a number between 0 and 4: 3.2 B+ Enter a number between 0 and 4: 5 Number out of range. Enter a number between 0 and 4: -2 Number out of range. Enter a number between 0 and 4: 2.85 B Enter a number between 0 and 4: done Thanks for using this program. Bye! -bash-3.2$ java -classpath labText.jar Two Welcome to the Scalable Z's program! What size Z do you want? 9 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -bash-3.2$ java -classpath labText.jar Two Welcome to the Scalable Z's program! What size Z do you want? 23 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -bash-3.2$ java -classpath labText.jar Four -bash-3.2$ java -classpath labText.jar Four 6 2 5 4 1 3 2 4 1 2 2 3 4 4 5 6 -bash-3.2$ java -classpath labText.jar Four 5 4 3 2 2 3 4 5 -bash-3.2$ java -classpath labText.jar Four 1 2 3 4 5 1 2 3 4 5 -bash-3.2$ java -classpath labText.jar Five Welcome, please define your first object: circle 2 3 radius 10 Adding Circle at (2.0, 3.0) radius 10 and area 314.1592653589793 Please enter another object or done if finished: rectangle -1 2 size 2 4 Adding Rectangle at (-1.0, 2.0) width: 2.0, height: 4.0, and area 8.0 Please enter another object or done if finished: circle 9 1 radius 8 Adding Circle at (9.0, 1.0) radius 8 and area 201.06192982974676 Please enter another object or done if finished: rectangle 2 8 size 12 8 Adding Rectangle at (2.0, 8.0) width: 12.0, height: 8.0, and area 96.0 Please enter another object or done if finished: circle 0 0 radius 12 Adding Circle at (0.0, 0.0) radius 12 and area 452.3893421169302 Please enter another object or done if finished: done Rectangle at (-1.0, 2.0) width: 2.0, height: 4.0, and area 8.0 Rectangle at (2.0, 8.0) width: 12.0, height: 8.0, and area 96.0 Circle at (9.0, 1.0) radius 8 and area 201.06192982974676 Circle at (2.0, 3.0) radius 10 and area 314.1592653589793 Circle at (0.0, 0.0) radius 12 and area 452.3893421169302 -bash-3.2$ At the end send your individual responses to dgerman@indiana.edu by e-mail. Next we have a brief presentation entitled: c) Java Classes: The Archipelago Metaphor (10-15 minutes, may introduce/discuss some Java IDEs) In it we will develop some examples to get us started learning to program in Java. Every Java class is like an island. Every class variable is like a house on that island. Every class method is like a person living on that island. The examples will be short but explained in detail, to get us started on this trip. d) Finally (30-35 minutes, with a 5 min. debriefing stage at the end) work in groups and download the following archives, then run the programs inside and summarize in a brief statement (like you did at (b) above) what the program does and how it appears to be doing it: 1. https://www.cs.indiana.edu/classes/a202-dger/fall2005/notes/labOne.jar java -classpath labOne.jar Welcome 2. https://www.cs.indiana.edu/classes/a202-dger/fall2005/notes/labTwo01.jar java -classpath labTwo01.jar Inventory 3. https://www.cs.indiana.edu/classes/a202-dger/fall2005/notes/labTwo02.jar java -classpath labTwo02.jar Inventory 4. https://www.cs.indiana.edu/classes/a202-dger/fall2005/notes/labThree01.jar java -classpath labTwo01.jar WageCalculator 5. https://www.cs.indiana.edu/classes/a202-dger/fall2005/notes/labThree02.jar java -classpath labThree02.jar DentalPayment 6. https://www.cs.indiana.edu/classes/a202-dger/fall2005/notes/labFour01.jar java -classpath labFour01.jar CarPayment 7. https://www.cs.indiana.edu/classes/a202-dger/fall2005/notes/labFour02.jar java -classpath labFour02.jar ClassAverage 8. https://www.cs.indiana.edu/classes/a202-dger/fall2005/notes/labFour03.jar java -classpath labFour03.jar InterestCalculator 9. https://www.cs.indiana.edu/classes/a202-dger/fall2005/notes/labFive01.jar java -classpath labFive01.jar SecurityPanel 10. https://www.cs.indiana.edu/classes/a202-dger/fall2005/notes/labFive02.jar java -classpath labFive02.jar Fundraiser 11. https://www.cs.indiana.edu/classes/a202-dger/fall2005/notes/labSix.jar java -classpath labSix.jar CrapsGame 12. https://www.cs.indiana.edu/classes/a202-dger/fall2005/notes/labSeven.jar java -classpath labSeven.jar FlagQuiz 13. https://www.cs.indiana.edu/classes/a202-dger/fall2005/notes/labEight.jar java -classpath labEight.jar StudentGrades 14. https://www.cs.indiana.edu/classes/a202-dger/fall2005/notes/labNine.jar java -classpath labNine.jar MicrowaveOven 15. https://www.cs.indiana.edu/classes/a202-dger/fall2005/notes/labTen.jar java -classpath labTen.jar ShippingHub 16. https://www.cs.indiana.edu/classes/a202-dger/fall2005/notes/labEleven01.jar java -classpath labEleven01.jar ScreenSaver 17. https://www.cs.indiana.edu/classes/a202-dger/fall2005/notes/labEleven02.jar java -classpath labEleven02.jar Painter 18. https://www.cs.indiana.edu/classes/a202-dger/fall2005/notes/labTwelve.jar java -classpath labTwelve.jar TypingApplication 19. https://www.cs.indiana.edu/classes/a202-dger/fall2005/notes/labThirteen.jar java -classpath labThirteen.jar TicketInformation This is your Homework One: sending the 4 + 19 descriptions by e-mail today. Homework Two will be discussed tomorrow. It will consist on stating three problems from three different categories of problems. They will be your Homework Three, Four and Five. You will work in groups and we will try as much as possible to limit the work to here in class (lecture and lab). --