Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 CSC111H Introduction Dennis Burford

Similar presentations


Presentation on theme: "1 CSC111H Introduction Dennis Burford"— Presentation transcript:

1 1 CSC111H Introduction Dennis Burford dburford@cs.uct.ac.za http://www.cs.uct.ac.za/~dburford/csc111h/

2 2 CSC111H: Continuation of CSC110H, designed for students who plan to complete BSc degree in 4 years rather than 3 years. CSC110H and CSC111H form part of the Academic Development Programme of the Science Faculty. Note: CSC111H joins CSC116S in second semester. Lectures: 1st Semester: 4 th period, Mon to Wed, Thur used for lab in Scilab. Venue: Leslie Social Science LT 2C. 2nd Semester: 4 th period, Mon to Fri, Venue to be announced.

3 3 Prescribed Books: First Semester and Second Semester: “Programming and Problem Solving with JAVA”, by James M. Slack. Second Semester only (recommended): “Structured Computer Organization”, 4 th Ed., Andrew S. Tanenbaum (Prescribed in CS2). Other notes (including assignments) available on Course web pages.

4 4 Syllabus: Work in first semester mostly based on a project, done in pairs. Syllabus includes: Graphical User Interfaces in Java More on Java: Client-Server, Exceptions, Input/Output, Recursion Project Design & Development: The Software Development Lifecycle, Planning, Object-Oriented Design, User Interface Design, Testing, Documentation. Number Systems Overview of some Computer Science topics: Networks, Databases. Second semester syllabus provided later.

5 5 Practical Assignments: Mon (6 th – 7 th or 8 th – 9 th ): Assigned to tutorial group and meet tutor before going to lab. Should need further time in the lab to complete work (arrange in own time). Assignments on web. Note: Late assignments will not be marked. Extensions only granted with valid medical certificate signed by qualified medical doctor (departmental secretary, room 317) or compassionate grounds (see Katherine Malan, room 308).

6 6 Class Tests: Five formal class tests. In addition, test written during June exam Period. Practical test in second semester.

7 7 Medicals: Miss a test on medical grounds, will be required to do oral test when you return to health. Lecturer will ask questions to determine how well you understand the work. Assigned a mark for the test based on this oral.

8 8 DP Requirement: DP (Duly Performed) required before final examination. Require: 1.Average of at least 50% in practical programming exercises and practical test (last programming exercise excluded from calculation, but included in course assessment) 2.Average of at least 40% in class tests and June test.

9 9 Final Mark: Calculated using following weightings: Practicals15%(1 st semester 5%, 2 nd semester 10%) Practical Test15% Class Tests20% (1–5 count 3% each; June 5%) Final Nov. Exam50% To pass, must have at least: 50% for final mark 50% average for (practical assignments and practical test) 45% average for (class tests and the exam)

10 10 Java Quiz I

11 11 Java Quiz I What does it mean to say: Java is platform independent? How is this done? What is the difference between a primitive data type and a class? Can you explain each of the components in the following statement?: System.out.println("Hello World"); Can you name two methods of java.lang.String ? How would you find this information?

12 12 Java Quiz II 1.What is a constructor? 2.What is meant by overloading? 3.What are wrapper classes? Give examples. 4.What’s the difference between extends and implements?

13 13 Java Quiz III public class QuizIII { public static void main( String [] args ) { int i; int [] a = new int[10]; String temp = ""; for ( i=0; i<10; i++ ) a[i] = i * i; for( i=0; i<10; i++ ) temp += (i%2==0) ? String.valueOf( a[i] ) : "-"; System.out.println( temp ); }

14 14 Java Quiz III public class QuizIII { public static void main( String [] args ) { int i; int [] a = new int[10]; String temp = ""; for ( i=0; i<10; i++ ) a[i] = i * i; for( i=0; i<10; i++ ) temp += (i%2==0) ? String.valueOf( a[i] ) : "-"; System.out.println( temp ); }

15 15 Java Quiz III public class QuizIII { public static void main( String [] args ) { int i; int [] a = new int[10]; String temp = ""; for ( i=0; i<10; i++ ) a[i] = i * i; for( i=0; i<10; i++ ) temp += (i%2==0) ? String.valueOf( a[i] ) : "-"; System.out.println( temp ); }

16 16 Java Quiz III public class QuizIII { public static void main( String [] args ) { int i; int [] a = new int[10]; String temp = ""; for ( i=0; i<10; i++ ) a[i] = i * i; for( i=0; i<10; i++ ) temp += (i%2==0) ? String.valueOf( a[i] ) : "-"; System.out.println( temp ); }

17 17 Java Quiz III public class QuizIII { public static void main( String [] args ) { int i; int [] a = new int[10]; String temp = ""; for ( i=0; i<10; i++ ) a[i] = i * i; for( i=0; i<10; i++ ) temp += (i%2==0) ? String.valueOf( a[i] ) : "-"; System.out.println( temp ); }

18 18 public class QuizIII { public static void main( String [] args ) { int i; int [] a = new int[10]; String temp = ""; for ( i=0; i<10; i++ ) a[i] = i * i; for( i=0; i<10; i++ ) temp += (i%2==0) ? String.valueOf( a[i] ) : "-"; System.out.println( temp ); } Java Quiz III (cond)? (if-true):(if-false)

19 19 Java Quiz III public class QuizIII { public static void main( String [] args ) { int i; int [] a = new int[10]; String temp = ""; for ( i=0; i<10; i++ ) a[i] = i * i; for( i=0; i<10; i++ ) temp += (i%2==0) ? String.valueOf( a[i] ) : "-"; System.out.println( temp ); }

20 20 Java Quiz III public class QuizIII { public static void main( String [] args ) { int i; int [] a = new int[10]; String temp = ""; for ( i=0; i<10; i++ ) a[i] = i * i; for( i=0; i<10; i++ ) temp += (i%2==0) ? String.valueOf( a[i] ) : "-"; System.out.println( temp ); }

21 21 Java Quiz III public class QuizIII { public static void main( String [] args ) { int i; int [] a = new int[10]; String temp = ""; for ( i=0; i<10; i++ ) a[i] = i * i; for( i=0; i<10; i++ ) temp += (i%2==0) ? String.valueOf( a[i] ) : "-" ; System.out.println( temp ); }

22 22 Java Quiz III public class QuizIII { public static void main( String [] args ) { int i; int [] a = new int[10]; String temp = ""; for ( i=0; i<10; i++ ) a[i] = i * i; for( i=0; i<10; i++ ) temp += (i%2==0) ? String.valueOf( a[i] ) : "-"; System.out.println( temp ); }

23 23 Java Quiz III public class QuizIII { public static void main( String [] args ) { int i; int [] a = new int[10]; String temp = ""; for ( i=0; i<10; i++ ) a[i] = i * i; for( i=0; i<10; i++ ) temp += (i%2==0) ? String.valueOf( a[i] ) : "-"; System.out.println( temp ); } 0-4-16-36-64-


Download ppt "1 CSC111H Introduction Dennis Burford"

Similar presentations


Ads by Google