Dr. Sajib Datta Jan 15, 2014.  Instructor: Sajib Datta ◦ Office Location: ERB 336 ◦ Address: ◦ Web Site:

Slides:



Advertisements
Similar presentations
Etter/Ingber Engineering Problem Solving with C Fundamental Concepts Chapter 1 Engineering Problem Solving.
Advertisements

ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Lecture 1: Overview of Computers & Programming
Zhang Hongyi CSCI2100B Data Structures Tutorial 2
Lecture 2 Introduction to C Programming
Introduction to C Programming
 2000 Prentice Hall, Inc. All rights reserved. Chapter 2 - Introduction to C Programming Outline 2.1Introduction 2.2A Simple C Program: Printing a Line.
CSE Spring 2015 INTERMEDIATE PROGRAMMING
COSC 120 Computer Programming
Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
1 Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Introduction to C Programming
CS190/295 Programming in Python for Life Sciences: Lecture 1 Instructor: Xiaohui Xie University of California, Irvine.
Recitation 1 Programming for Engineers in Python.
CS102 Introduction to Computer Programming
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Chapter Introduction to Computers and Programming 1.
Introduction COMP104: Fundamentals and Methodology.
CSE 1340 Introduction to Computing Concepts Class 2.
CS223 Algorithms D-Term 2013 Instructor: Mohamed Eltabakh WPI, CS Introduction Slide 1.
CS 1 •This is Computer Science 1. •Who is Professor Adams?
1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Goals of Course Introduction to the programming language C Learn how to program Learn ‘good’ programming practices.
1 Agenda Administration Background Our first C program Working environment Exercise Memory and Variables.
Java Programming, Second Edition Chapter One Creating Your First Java Program.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 2 Chapter 2 - Introduction to C Programming.
EG280 Computer Science for Engineers Fundamental Concepts Chapter 1.
An Object-Oriented Approach to Programming Logic and Design Chapter 1 An Overview of Computers and Logic.
Lecture 2: Introduction to C Programming. OBJECTIVES In this lecture you will learn:  To use simple input and output statements.  The fundamental data.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Chapter 2 - Introduction to C Programming Outline.
Dr. Sajib Datta CSE Spring 2016 INTERMEDIATE PROGRAMMING.
 2007 Pearson Education, Inc. All rights reserved. A Simple C Program 1 /* ************************************************* *** Program: hello_world.
CSE 1320 Basics Dr. Sajib Datta
Introduction Computer Organization Spring 1436/37H (2015/16G) Dr. Mohammed Sinky Computer Architecture
Chapter 11  Getting ready to program  Hardware Model  Software Model  Programming Languages  Facts about C++  Program Development Process  The Hello-world.
Dr. Sajib Datta Jan 16,  The website is up.  Course lectures will be uploaded there ◦ Check regularly for assignments and update.
1 Types of Programming Language (1) Three types of programming languages 1.Machine languages Strings of numbers giving machine specific instructions Example:
INTRODUCTION TO PROGRAMING System Development Mansoura October 2015.
1 Lecture 2 - Introduction to C Programming Outline 2.1Introduction 2.2A Simple C Program: Printing a Line of Text 2.3Another Simple C Program: Adding.
INC 161 , CPE 100 Computer Programming
Computer Engineering Department Islamic University of Gaza
Engineering Problem Solving With C An Object Based Approach
Chapter 1: Introduction to computers and C++ Programming
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Revision Lecture
Java programming lecture one
CSE1320 INTERMEDIATE PROGRAMMING
CSE1320 INTERMEDIATE PROGRAMMING
Week 1 Gates Introduction to Information Technology cosc 010 Week 1 Gates
CSE 5344 Fall 2016 COMPUTER NETWORKS
Programming COMP104: Fundamentals and Methodology Introduction.
CSE1320 INTERMEDIATE PROGRAMMING
CSE1320 INTERMEDIATE PROGRAMMING
CS190/295 Programming in Python for Life Sciences: Lecture 1
Chapter 2 - Introduction to C Programming
Chapter 2 - Introduction to C Programming
Chapter 2 - Introduction to C Programming
CSE1320 INTERMEDIATE PROGRAMMING
CSE1320 INTERMEDIATE PROGRAMMING
CSE1311 Introductory Programming for Engineers & Scientists
Chapter 2 - Introduction to C Programming
Chapter 2 - Introduction to C Programming
Computer Programming-1 CSC 111
Introduction to C Programming
ICS103 Programming in C 1: Overview of Computers And Programming
CS313T Advanced Programming language
Presentation transcript:

Dr. Sajib Datta Jan 15, 2014

 Instructor: Sajib Datta ◦ Office Location: ERB 336 ◦ Address: ◦ Web Site: 1/cse spring-2014.html ◦ Office Hours: MoWe: 12:00 PM - 1:30 PM TuTh: 3:30 PM - 5:00 PM  TA and his office hours: TBA

 Learn to program in C at a level beyond an introductory programming course.  Exposure to basic data structures  Learn the concept of object-oriented programming in C++  Learn to use the Linux operating system

 W. D. Foster and L. S. Foster: C By Discovery (4th Edition)  Herbert Schildt: C: The Complete Reference (4th Edition) 

 All labs (4) will be posted on the course website and announced in class.  Each lab will be distributed one week before the due time.  No late Labs will be accepted except for university-excused absences with documentation submitted before or less than 3 calendar days after the due date.  Two exams and  Final exam ◦ Comprehensive

 Attendance/Quizzes 10% (Tentative)  Labs 30% (Tentative)  Exams 30% (to average 2 exams) (Tentative)  Final Exam 30% (Tentative)  Final grades are based on the standard ranges of A: 90–100, B: 80–89, C: 70–79, D: 60–69, F: 0–59 Instructor reserves the right to change the distribution

 Practice!!!  Test code (debug)

 What is computer programming? ◦ Interpretation of a task or algorithm in a computer language.  What is an algorithm? ◦ A set of instructions for accomplishing a task. ◦ Input and Output

 How about preparing salad? ◦ Steps:  Clean and cut vegetables  Put sauce & cheese  Stir

 The algorithm for sorting three integers in ascending order, given 20, 5, 8.  Steps: 5, 8, 20  To determine the concrete steps involved in solving a problem, we may ◦ Logically represent the problem ◦ Implement the logic in computer languages (c, c++, java, python, perl…)  Given a thousand integers?

 Manually operating – not possible ◦ Google search engine (Searching in a File)

 The website is up.  Course lectures will be uploaded there ◦ Check regularly for assignments and update

 CPU – central processing unit  RAM – random access memory ◦ Computer data storage ◦ Integrated circuits – randomly access with constant time  Permanent memory – hard disk  Computer peripheral – mouse, keyboard

 For omega access, each student that needs to have access to it will need to contact the help desk and request it. The best way is to call them at and ask to have omega access added to your NetID account.  Visual Studio download information: ◦ al-studio-2010/index.php

 A Linux server  Get an account!  web.php web.php  Provides C, C++, Lisp, Prolog, Cobol, and Fortran language compilers  Connect using SSH

 Windows users: download SSH client from OIT  Shell-Client.php Shell-Client.php 

 omega.uta.edu

 Applications -> Utilities -> Terminal  Login: ◦ $ ssh  Logout: ◦ $ logout

 # include ◦ Tell compiler to include the information included in studio.h  int main( ) ◦ A function name ◦ C programming consists of one or more functions (basic modules) ◦ Parenthesis identify a function ◦ Similar to the function defined in math ◦ Arguments and return  /* a … */ ◦ Enclose comments (block), “//” – single line ◦ Intended for the reader and ignored by the compiler

 { - the beginning of the function body (statements separated by “;”)  int num; ◦ A declaration statement ◦ num is an identifier ◦ Declare a variable before using it ◦ Traditionally, declare it at the beginning ◦ Lowercase letters, uppercase letters, digits, the underscore ◦ First character must be a letter or an underscore ◦ Not key words

 num = 1; ◦ an assignment statement ◦ Set space in memory ◦ Reassign later  printf(“ ”) ◦ Part of the standard C library, a function  \n ◦ Start a new line

 %d ◦ Placeholder/format specifier - where and in what form to print  return - a return statement of a function  } – the end of the function

 There are different criteria by which one program may be considered better than another. Some examples are: ◦ Readability – collaborative work ◦ Maintainability – self-updated ◦ Scalability – large-scale data set ◦ Performance (e.g., how fast it runs or how much memory it uses)