1 Computer Science 1021 Programming in Java Geoff Draper University of Utah
University of Utah 2 Questions Before going further, please feel free to interrupt at any point and ask questions. If I don’t call you by name, please state your name before your question.
University of Utah 3 Why are you here? Its required! NO!
University of Utah 4 Foundations! Foundation to be used in all other programming/problem solving endeavors -Useful set of tools/skills to bring back to your work/studies, or for continuing into CS or Engineering -Ability to produce an ordered sequence of steps to solve a problem
University of Utah 5 What Should You Learn in CS1021? 1.Problem Solving 2.General Programming Semantics 3.Tool Usage 4.Language Syntax 5.Practical Experience 6.A Love for the Art of Programming 7.Oh… and Java.
University of Utah 6 Java Java very big! Summer very short! We can still write interesting programs! Today one small program.
University of Utah 7 Who takes this class? ??? We will find out! Survey!
University of Utah 8 Class Web Page Syllabus Lectures Assignments Grades etc etc etc.
University of Utah 9 Homework You LEARN programming BY programming! 8 assignments: all writing programs Each will depend on concepts used in the previous assignment
University of Utah This Course can be Hard! Programming requires lots of time: -Why? This Class should be fun! -Why? Please take the time to meet with the TA and Instructor throughout the course!
University of Utah Why so much time? Programs are not like essays. They either work or do not work. -A single ‘;’ (out of thousands of lines of code) in the wrong spot can cause a program to fail and you to spend hours and hours in the lab!
University of Utah Reasonable Expectations Less than 10 hours a week Rule of Thumb: -“If a particular element of a program is taking more than an hour, get help!” -“If you have spent more than a couple hours without accomplishment, GET HELP!” -“If it’s late at night and there is no help? GO HOME”
University of Utah How to Succeed Start Early Read the assignment twice Go to all the lectures Work in the Lab while the TA is available Have questions for in class Do NOT wait for the last day when the lab is historically packed! Check (and send) !!!!
University of Utah Getting Help I am here to help you. Come talk to me. Use the TA Use the mailing Read the examples on-line
University of Utah A Personal Request I would like to meet with each of you individually at least once this summer -During office hours, or by appointment -Get to know you better -Get your thoughts on the course -How can I tailor the course to best suit you?
University of Utah Java Two main types of Java programs -Applications -Applets
University of Utah Application: Examples
University of Utah Application: Examples
University of Utah Applet: Examples
University of Utah Applet: Examples
University of Utah Applet: Dissected! And now for a very simple example of an applet!