Introduction to Programming (CS 201)

Introduction to Programming
(CS 201)
Lecture 01 - Introduction
Recommended Text Books
Introduction to Java and Object Oriented Programming
(Volume 1)
1.


Sebastian Danicic, University of London.
Online: http://www.doc.gold.ac.uk/~mas01lo/course/20122013/foundation/lecture-slides/java-study-guide-volume1.pdf
Introduction to Programming in Java: An
Interdisciplinary Approach
2.


Robert Sedgewick, Princeton University
Online: http://introcs.cs.princeton.edu/java/home/
Syllabus
•
Input and output to screen with Java program
•
Structure of Java programs
•
Statements
•
Data types
•
Standard Input
•
Conditional statements
•
Loop constructs
•
Arrays, character and string handling
•
Random Number generation
•
Filing (Reading and Writing )
•
Functions
Marks Distribution
First Exam
15%
Second Exam
20%
Final Exam
30%
3 Quizzes
15%
4 Programming Assignments
20%
Ref: http://introcs.cs.princeton.edu/java/lectures/11hello.pdf
Ref: http://introcs.cs.princeton.edu/java/lectures/11hello.pdf
Ref: http://introcs.cs.princeton.edu/java/lectures/11hello.pdf
Ref: http://introcs.cs.princeton.edu/java/lectures/11hello.pdf
Before Writing First Java Program

Step 1: Download Java Development Kit (JDK SE v7 )
from
http://www.oracle.com/technetwork/java/javase/download
s/index.html

Step 2: Download ‘DrJava Windows App’ from
http://www.drjava.org/

Instead of DrJava you can also use any other editor such as
Simple Notepad, NetBeans etc.
Snap Shot of DrJava App
Ref: http://introcs.cs.princeton.edu/java/lectures/11hello.pdf
General Steps
Write Java Program
Save Program
Compile Program
Run Program
Compiling is the process of
translating source code
written in a particular
programming language
into computer-readable
machine code that can be
executed.