CS114 - Introduction to Programming for Engineers

Spring 2015

Section 2

Instructor:

Aynur Dayanık
Engineering Building, EA-426, x3441
adayanik at cs.bilkent.edu.tr
Office Hours: Mon 13:40--15:30 or by appointment


Lectures:

Wed 9:40-10:30, Fri 10:40-12:30, EB-101


TAs:

TBA


Course Description:

Introduction to programming with Java. Data and Expressions: character strings, variables and assignments, primitive data types, expressions, data conversion. Using classes and objects: creating objects, the String class, the Random class, the Math class, formatting output, enumerated types. Writing classes: classes and objects, anatomy of a class, encapsulation, anatomy of a method. Conditionals and loops: Boolean expressions, the if statement, comparing data, the switch statement, the while statement, iterators, the do statement, the for statement. Arrays: array elements, declaring and using arrays, arrays of objects, command-line arguments, variable length parameter lists, two-dimensional arrays, the ArrayList class, Recursion: recursive thinking, recursive programming, using recursion. Credit units: 4 ECTS Credit units: 7, Prerequisite: CS 111 or CS 113.

The syllabus contains more information about the course.

Textbook:


Other textbooks:


Course Outline:

Week : 1

Introduction to Java: displaying information, String literals, concatenation


Week : 2

Assignment statement; primitive types; arithmetic expressions; order of operators Scanner class: reading input from keyboard

Week : 3

Selection: if, if-else; nested if, switch

Week : 4

Iteration: do-while, while, for

Week : 5

String methods, Wrapper classes

Week : 6

Coding static methods

Week : 7

Arrays

Week : 8

Arrays, varying number of parameters

Week : 9

ArrayList class

Week : 10

Sorting & Searching Algorithms

Week : 11

Writing your own classes

Week : 12

Writing your own classes

Week : 13

Static Class Members

Week : 14

Recursion

Week : 15

Review


Course requirements:



Grading Policy:



Useful Links: