CS114
- Introduction to Programming for Engineers
Spring 2015
Section 2
Instructor: |
Aynur Dayanık
|
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:
"Java Software Solutions, 8th Ed.", by Lewis & Loftus, Pearson / Addison Wesley, 2014.
Other textbooks:
"Introduction To Java Programming, 8th Ed.", by Liang, Pearson, 2011.
"Absolute Java, 4th Ed.", Sawitch, Addison-Wesley, 2010.
Course Outline:
Week : 1 Introduction to Java: displaying information, String literals, concatenation
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
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
Static Class Members
Recursion Week : 15 Review |
Course requirements:
There will be weekly labs (4 hours per week), two midterm exams and one final exam.
Check regularly the Unilica page of the course for lecture notes, lab assignments, and announcements.
Grading Policy:
20% - Lab assignments
25% - Midterm Exam 1
25% - Midterm Exam 2
30% - Final Exam
To be eligible to take the final exam, the total grade of the midterms should be at least 50. Those who cannot satisfy this condition will get an FZ grade.
Useful Links:
JCreator Program: jcrea500_setup.exe