cs111: programming language ii · and gui programming ... your first java program.. 9 dr. amal...
TRANSCRIPT
![Page 1: CS111: PROGRAMMING LANGUAGE II · and GUI programming ... Your first Java program.. 9 Dr. Amal Khalifa, 2014 . The Code life Cycle!! ... 12 . Title: Slide 1 Author: Amal](https://reader034.vdocuments.us/reader034/viewer/2022051321/5af5213b7f8b9a74448dcc75/html5/thumbnails/1.jpg)
CS111: PROGRAMMING
LANGUAGE II
Lecture 1: Introduction Computer Science
Department
1
![Page 2: CS111: PROGRAMMING LANGUAGE II · and GUI programming ... Your first Java program.. 9 Dr. Amal Khalifa, 2014 . The Code life Cycle!! ... 12 . Title: Slide 1 Author: Amal](https://reader034.vdocuments.us/reader034/viewer/2022051321/5af5213b7f8b9a74448dcc75/html5/thumbnails/2.jpg)
Lecture Contents
Dr. Amal Khalifa, 2014
Course info
Why programming??
Why Java ??
Write once, run anywhere!!
2
![Page 3: CS111: PROGRAMMING LANGUAGE II · and GUI programming ... Your first Java program.. 9 Dr. Amal Khalifa, 2014 . The Code life Cycle!! ... 12 . Title: Slide 1 Author: Amal](https://reader034.vdocuments.us/reader034/viewer/2022051321/5af5213b7f8b9a74448dcc75/html5/thumbnails/3.jpg)
Course info
Dr. Amal Khalifa, 2014
Website
http://cs111spr14.wordpress.com/
Book
Course plan
Assessment methods and grading
Labs and practical assignments
The term Project
3
![Page 4: CS111: PROGRAMMING LANGUAGE II · and GUI programming ... Your first Java program.. 9 Dr. Amal Khalifa, 2014 . The Code life Cycle!! ... 12 . Title: Slide 1 Author: Amal](https://reader034.vdocuments.us/reader034/viewer/2022051321/5af5213b7f8b9a74448dcc75/html5/thumbnails/4.jpg)
Quiz!!!!
What is a program? (instructions)
What is a programming language? (syntax/rules)
What is a Software Package? (application domain)
4
Dr. Amal Khalifa, 2014
![Page 5: CS111: PROGRAMMING LANGUAGE II · and GUI programming ... Your first Java program.. 9 Dr. Amal Khalifa, 2014 . The Code life Cycle!! ... 12 . Title: Slide 1 Author: Amal](https://reader034.vdocuments.us/reader034/viewer/2022051321/5af5213b7f8b9a74448dcc75/html5/thumbnails/5.jpg)
Why Programming?? 5
Programming Enables you to make a computer do
anything you want.
First challenge. Learn a programming language.
Next question. Which one?
Dr. Amal Khalifa, 2014
![Page 6: CS111: PROGRAMMING LANGUAGE II · and GUI programming ... Your first Java program.. 9 Dr. Amal Khalifa, 2014 . The Code life Cycle!! ... 12 . Title: Slide 1 Author: Amal](https://reader034.vdocuments.us/reader034/viewer/2022051321/5af5213b7f8b9a74448dcc75/html5/thumbnails/6.jpg)
Why Java??
It’s not about the language!
Develop general programming skills applicable to
many languages
Javatar!!
6
Dr. Amal Khalifa, 2014
![Page 7: CS111: PROGRAMMING LANGUAGE II · and GUI programming ... Your first Java program.. 9 Dr. Amal Khalifa, 2014 . The Code life Cycle!! ... 12 . Title: Slide 1 Author: Amal](https://reader034.vdocuments.us/reader034/viewer/2022051321/5af5213b7f8b9a74448dcc75/html5/thumbnails/7.jpg)
Why Java?
Clarity - Keep it Simple
Relatively easy graphics
and GUI programming
Lots of library packages
Full documentation
http://java.sun.com
Colleges are teaching it
Companies are using it
Students want it
Teachers welcome it... ;)
Programmers drink it... :)
Free compiler and IDEs
7
Dr. Amal Khalifa, 2014
![Page 8: CS111: PROGRAMMING LANGUAGE II · and GUI programming ... Your first Java program.. 9 Dr. Amal Khalifa, 2014 . The Code life Cycle!! ... 12 . Title: Slide 1 Author: Amal](https://reader034.vdocuments.us/reader034/viewer/2022051321/5af5213b7f8b9a74448dcc75/html5/thumbnails/8.jpg)
Java == class
Everything must be in a class. There are no
global functions or global data.
What about main??
8
Dr. Amal Khalifa, 2014
![Page 9: CS111: PROGRAMMING LANGUAGE II · and GUI programming ... Your first Java program.. 9 Dr. Amal Khalifa, 2014 . The Code life Cycle!! ... 12 . Title: Slide 1 Author: Amal](https://reader034.vdocuments.us/reader034/viewer/2022051321/5af5213b7f8b9a74448dcc75/html5/thumbnails/9.jpg)
Your first Java program.. 9
Dr. Amal Khalifa, 2014
![Page 10: CS111: PROGRAMMING LANGUAGE II · and GUI programming ... Your first Java program.. 9 Dr. Amal Khalifa, 2014 . The Code life Cycle!! ... 12 . Title: Slide 1 Author: Amal](https://reader034.vdocuments.us/reader034/viewer/2022051321/5af5213b7f8b9a74448dcc75/html5/thumbnails/10.jpg)
The Code life Cycle!!
Edit compile run
10
Dr. Amal Khalifa, 2014
![Page 11: CS111: PROGRAMMING LANGUAGE II · and GUI programming ... Your first Java program.. 9 Dr. Amal Khalifa, 2014 . The Code life Cycle!! ... 12 . Title: Slide 1 Author: Amal](https://reader034.vdocuments.us/reader034/viewer/2022051321/5af5213b7f8b9a74448dcc75/html5/thumbnails/11.jpg)
Write once, Compile Anywhere! 11
Dr. Amal Khalifa, 2014
![Page 12: CS111: PROGRAMMING LANGUAGE II · and GUI programming ... Your first Java program.. 9 Dr. Amal Khalifa, 2014 . The Code life Cycle!! ... 12 . Title: Slide 1 Author: Amal](https://reader034.vdocuments.us/reader034/viewer/2022051321/5af5213b7f8b9a74448dcc75/html5/thumbnails/12.jpg)
Welcome to the java world!!
That’s all for today…..
Dr. Amal Khalifa, 2014
12