CS 140 Computer Programming (I) Second semester- 2014-2015 (3 credits) Imam Mohammad bin Saud Islamic University College of Computer Science and Information.

Slides:



Advertisements
Similar presentations
Computer Science Department
Advertisements

Introduction to CS170. CS170 has multiple sections Each section has its own class websites URLs for different sections: Section 000:
COMP171 Data Structures and Algorithms Spring 2009.
CS 331 / CMPE 334 – Intro to AI CS 531 / CMPE AI Course Outline.
Welcome to IIT and cs105!. CS Secs Jon Hanrath SB Office Hours: –MW 8:00 A.M. – 9:45 A.M. –W 5:00 P.M. – 6:00 P.M
CSC 171 – FALL 2004 COMPUTER PROGRAMMING LECTURE 0 ADMINISTRATION.
COMP171 Data Structures and Algorithm Qiang Yang Lecture 1 ( Fall 2006)
COMP152 Object-Oriented Programming and Data Structures Spring 2011.
1 SWE Introduction to Software Engineering Fall Semester (081) King Fahd University of Petroleum & Minerals Information & Computer Science.
Introduction to Programming Using C++ Dr. Mohamed Khafagy.
COP4020/CGS5426 Programming languages Syllabus. Instructor Xin Yuan Office: 168 LOV Office hours: T, H 10:00am – 11:30am Class website:
CSE 1111 Week 1 CSE 1111 Introduction to Computer Science and Engineering.
CHEMISTRY 10123/10125 Spring 2007 Instructor: Professor Tracy Hanna Phone: Office: SWR 418
CSCI 1301 Principles of Computer Science I
Data Structures Lecture 1: Introduction Azhar Maqsood NUST Institute of Information Technology (NIIT)
CS 103 Discrete Structures Lecture 01 Introduction to the Course
1 COMS 261 Computer Science I Title: Course Introduction Date: August 25, 2004 Lecture Number: 01.
CPS120: Introduction to Computer Science Fall: 2002 Instructor: Paul J. Millis.
Course Introduction Software Engineering
COMPE 226 Data Structures 2015 Fall Murat KARAKAYA Department of Computer Engineering.
CS 390 Introduction to Theoretical Computer Science.
ICS 102 Computer Programming University of Hail College of Computer Science & Engineering Computer Science and Software Engineering Department.
CS355 Advanced Computer Architecture Fatima Khan Prince Sultan University, College for Women.
CS1201: Programming Language 2 C++(Course Introduction) Level 2 Nouf Aljaffan 1 st Term Nouf Aljaffan (C) CSC 1201 Course at KSU.
COMP2012 Object-Oriented Programming and Data Structures Fall 2015.
CSE 1340 Introduction to Computing Concepts Class 1 ~ Intro.
1 [CMP001 Computer Orientation I] Course Guide Ms. Wesal Abdalfattah office#: 357 Ext#: 8612 Prince Sultan University,
Princess Nora University Faculty of Computer & Information Systems
ICS102: Introduction To Computing King Fahd University of Petroleum & Minerals College of Computer Science & Engineering Information & Computer Science.
Lecture Section 001 Spring 2008 Mike O’Dell CSE 1301 Computer Literacy.
Principles of Computer Science I Honors Section Note Set 1 CSE 1341 – H 1.
CPS120: Introduction to Computer Science Winter 2002 Instructor: Paul J. Millis.
Chapter 2: General Problem Solving Concepts
ECE 2317: Applied Electricity and Magnetism Prof. D. Wilton Dept. of ECE Notes 1 Notes prepared by the EM group, University of Houston.
King Saud UniversityCSC112 - First Semester CSC 112 Java Programming I Introduction.
CSC 111 COURSE ORIENTATION. Course name and Credit houres  CSC 111 – Computer Programming-I  Credit hours:  3 hours lecture  1 hour tutorial  2 hours.
ICS202 Data Structures King Fahd University of Petroleum & Minerals College of Computer Science & Engineering Information & Computer Science Department.
CSE 1105 Week 1 CSE 1105 Introduction to Computer Science & Engineering Time: Wed 4:00 – 4:50 Thurs 9:30 – 10:20 Thurs 4:00 – 4:50 Place: 100 Nedderman.
CSCE 1030 Computer Science 1 First Day. Course Dr. Ryan Garlick Office: Research Park F201 B –Inside the Computer Science department.
COP4610/CGS5765 Operating Systems Syllabus. Instructor Xin Yuan Office: 168 LOV Office hours: W M F 9:10am – 10:00am, or by appointments.
CMSC 2021 CMSC 202 Computer Science II for Majors Spring 2002 Sections Ms. Susan Mitchell.
CMSC 2021 CMSC 202 Computer Science II for Majors Spring 2001 Sections Ms. Susan Mitchell.
CS151 Introduction to Digital Design Noura Alhakbani Prince Sultan University, College for Women.
King Saud University1 CSC 112 Java Programming I Introduction.
Data Structures and Algorithms in Java AlaaEddin 2012.
Course Information CSE 2031 Fall Instructor U. T. Nguyen /new-yen/ Office: CSEB Office hours:  Tuesday,
INTRODUCTION GC 101. WELCOME TO GC101  Aseel AlHadlaq  Website   
Operating Systems (CS 340 D) Dr. Abeer Mahmoud Princess Nora University Faculty of Computer & Information Systems Computer science Department.
CS140 – Computer Programming 1 Course Overview First Semester – Fall /1438 – 2016/2017 CS140 - Computer Programming 11.
Andy Wang Object Oriented Programming in C++ COP 3330
Computer Engineering Department Islamic University of Gaza
CS101 Computer Programming I
Computer Architecture Syllabus
CSC215 Lecture Orientation.
CSC 111 Course orientation
Artificial Intelligence (CS 461D)
Artificial Intelligence (CS 370D)
Princess Nora University Faculty of Computer & Information Systems
Andy Wang Object Oriented Programming in C++ COP 3330
CSC215 Lecture Orientation.
Lecture 1: Introduction
INTRODUCTION TO INFORMATION SYSTEMS AND TECHNOLOGY (NET 201)
Introduction to Programming Using C++
CSE1311 Introductory Programming for Engineers & Scientists
CSC215 Lecture Orientation.
COMS 261 Computer Science I
Orientation CSC 111.
Computer Engineering Department Islamic University of Gaza
Princess Nora University Faculty of Computer & Information Systems
Computer Engineering Department Islamic University of Gaza
Presentation transcript:

CS 140 Computer Programming (I) Second semester (3 credits) Imam Mohammad bin Saud Islamic University College of Computer Science and Information Computer Science Department 1 L. Dania Alomar

Instructor Lecturer Dania Alomar, College of Computer science and Information, My Office: 3A 132. Office hours: ◦ Sun: 5 th and 6 th lectures. ◦ Tue: 5 th and 6 th lectures. ◦ Thurs: 5 th and 6 th lectures. Web site: 2

Textbook Textbook : ◦ C++ How to Program,  by Deitel and Deitel, Pearson  7 th or 8 th Edition. References : C++ Programming: From Problem Analysis to Program Design,  by De D. S. Malik, 

Objectives Introduce fundamentals of structured programming, with emphasis on understanding functions, variables, and control structures. Introduce various tools used in programming, including editors, compilers, linkers, and loaders. Use the C++ language to implement the problem solving and algorithm design skills. Declare and use C++ class objects, their methods and attributes Understand the concept of a pointer variable and a dynamic data variable and be able to declare and use them in C++ programs. Learn how to write and use recursive functions Declare and manipulate different kinds of arrays 4

Topics Covered This course will cover the following topics: ◦ General introduction to C++ programming ◦ Complete C++ program ◦ Variables ◦ Functions ◦ Control Structures ◦ Arrays ◦ Pointers ◦ Introduction to OO programming 5

Grading 1 st midterm (15%) will be on the 7 th week of the semester. 11 March,2014,Tuesday 6 th lecture. 2 nd midterm (20%) will be on the 12 th week of the semester. 12 April,2014, Tuesday 6 th lecture. Quizzes(5%). Lab(20%). Final exam (40%). 6

Policies Handouts will be uploaded to the course web site. Any announcement will be posted on the course web site. It is your responsibility to check course website once in a while to keep yourself updated. It is necessary to attend the class and lab regularly to build a comprehensive foundation of the course. If you exceed the limit of absence (total of 15 hours) you will not be allowed to enter the final exam. Second time late class coming; student will be considered absent for 1 day. Absence from lab sessions is considered as part of your overall absence. No makeup quizzes for any reason. If you do not show up you will get a zero. No makeup midterm and final exams. If you have an approved circumstance, you will be allowed to enter a comprehensive exam at the end of this semester. The exam will include the whole curriculum. You should present your medical excuses, signed by the committee of excuses, no later than a week from your absence. Otherwise, it will not be accepted. Studying is from the book; correct answers are drawn from the text book. TAs are responsible for lab marks. Lecturers will not change the mark given by a TA. 7

Problem Solving Programming is a process of problem solving Problem solving techniques ◦ Analyze the problem ◦ Outline the problem requirements ◦ Design steps (algorithm) to solve the problem Algorithm: ◦ Step-by-step problem-solving process ◦ Solution achieved in finite amount of time 8

Representation of Algorithms A single algorithm can be represented in many ways: ◦ Formulas: F = (9/5)C + 32 ◦ Words: Multiply the Celsius by 9/5 and add 32. ◦ Flow Charts. ◦ Pseudo-code. In each case, the algorithm stays the same; the implementation differs! 9

Sequential - The next sequential instruction is executed(Default flow of execution) Conditional - An instruction is conditionally executed based upon a conditional expression being true. Iteration - A sequence of instructions are repeatedly executed for a specified number of iterations. 10

Exercises 1. Write an algorithm that asks the user to enter an integer number and prints the square of that number. 2. Write the algorithm that calculates the area of a circle that the user wants. (Area of a circle = 3.14 X radius X radius). 3. Write the algorithm that asks the user to enter two integer numbers and to choose to make either addition or subtraction of those two numbers. Finally, you have to print the result of the chosen operation. 11

Cont. Suppose that the cost of sending an international fax is calculated as follows: Service charges SR 3.00; SR 0.20 per page for the first 10 pages; and SR 0.10 for each additional page. Design an algorithm that asks the user to enter the number of pages to be faxed. The algorithm then uses the number of pages to be faxed to calculate the amount due. 12