CS100A Lecture 26 3 December 1998 !!!!!Last Lecture!!!!! Extra-credit checkers assignment. Look on the course web page for information about this assignment: we give a specification and a hint on implementation. Hand in this assignment no later than 2PM on 10 December, in Carpenter. Carpenter consulting. The consulting room will be open from 1 to 3PM next week (Mon-Fri) and on Mon., 14 Dec. Regrades. Please turn in all regrade requests by Friday morning (tomorrow), 10AM, so that we can finish all the grading and regrading over the weekend. Checking grades. Next Tues-Thurs (8-10 Dec.), please check all your grades, which will be posted in Carpenter. If there is a discrepancy --a missing or wrong grade-- write a note about it and leave it with the consultant; attach the assignment/prelim for which the grade is wrong so that we can check it. CS100A, Lecture 26, 3 December 1998 1 Review session. A review session is scheduled in Olin 155 on Sunday, 13 December, at 3PM. Office hours. The TAs and Professor Cardie will hold their regular office hours during the period 7 December -14 December. Gries will have office hours during that time as follows: Tues. 8 Dec, 2--3:30 Thurs. 10 Dec 2--3:30 Mon. 14 Dec 1--3:00 Final. The final is on 15 December, 9:00--11:30, in . IN the Center of Barton At the moment, no makeup is scheduled. Anyone who has a conflict that may require us to have a makeup should email Gries at gries@cs.cornell.edu. CS100A, Lecture 26, 3 December 1998 2 Studying for the final The final will cover the material that was covered on the three prelims. Take the sample prelims and the prelims themselves as good examples of the kinds of questions that you may be asked. Therefore, study for the final as you did for the three prelims. The slides for lecture 8 (near the back) contain information on studying for prelim 1. The slides for lecture 13 contain information on studying for prelim 2. The slides for lecture 21 contain information on studying for prelim 3. In addition, there may be a question on the programming language C. Study the material from the two lectures on C, but restrict your attention to the basic types in C, the use of pointers, the use of *, the use of &, and method (procedure or function) calls and parameters and arguments. CS100A, Lecture 26, 3 December 1998 3 Java and the world wide web HTML is the language in which files (or pages) are written for the world wide web. Internet Explorer and Netscape, the two most used browsers, read html files and display them on the screen. Example html file: <html><head> <title> This goes at the top of the page</title> </head> <body> <P>This is a new paragraph. <em>this is in italics.</em> <b>This is in bold</b> but this isn’t.</P> <P><font size=+1>A new paragraph in a larger font</font></P> </body> </html> CS100A, Lecture 26, 3 December 1998 4 General idea in html: <command> begins a command, </command> ends it. There are commands for paragraphs, new line, font change, font-style change, lists, tables, and many more. <A href=“http://www.cs.cornell.edu”>Cornell’s page</A> produces a link on the page: Cornell’s page Command applet: <applet archive=AppletClasses.jar code=“className.class” width=200 height=400 </applet> Execute a java program. The window for it is 200 x 400. All of the classes in it are in file AppletClasses.jar. The class to begin execution is in file className.class. Many examples of applets. To see one, bring up page www.cs.cornell.edu, click on CSFacts, and click to get to “Faculty over the years” CS100A, Lecture 26, 3 December 1998 5 Class Applet Is a subclass of panel --something that can have components added to it and is displayed on the monitor Since it’s a panel, it can have method paint. public class myapplet extends Applet { // Called by system to begin execution of the program public voidinit( ) { } // (Temporarily) stop execution public void stop( ) { } // Start execution public void start ( ) { } // The applet is going to be destroyed, so destroy and // resources that this applet is using public void destroy( ) { } // Resize the applet public void resize(int w, int h) { } … (more) } CS100A, Lecture 26, 3 December 1998 6