CSE1320 INTERMEDIATE PROGRAMMING

Slides:



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

Zhang Hongyi CSCI2100B Data Structures Tutorial 2
Introduction to C Programming
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.
COMP 110 Introduction to Programming Mr. Joshua Stough August 22, 2007 Monday/Wednesday/Friday 3:00-4:15 Gardner Hall 307.
Chapter 3: Introduction to C Programming Language C development environment A simple program example Characters and tokens Structure of a C program –comment.
CS190/295 Programming in Python for Life Sciences: Lecture 1 Instructor: Xiaohui Xie University of California, Irvine.
CSE 1340 Introduction to Computing Concepts Class 2.
COMP Introduction to Programming Yi Hong May 13, 2015.
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.
CSCI 51 Introduction to Computer Science Dr. Joshua Stough January 20, 2009.
June 19, Liang-Jun Zhang MTWRF 9:45-11:15 am Sitterson Hall 011 Comp 110 Introduction to Programming.
Dr. Sajib Datta CSE 5344 Spring 2016 COMPUTER NETWORKS.
Dr. Sajib Datta CSE Spring 2016 INTERMEDIATE PROGRAMMING.
Computer Programming for Engineers CMPSC 201C Fall 2000.
CSE 1320 Basics Dr. Sajib Datta
Introduction Computer Organization Spring 1436/37H (2015/16G) Dr. Mohammed Sinky Computer Architecture
Dr. Sajib Datta Jan 16,  The website is up.  Course lectures will be uploaded there ◦ Check regularly for assignments and update.
Dr. Sajib Datta Jan 15,  Instructor: Sajib Datta ◦ Office Location: ERB 336 ◦ Address: ◦ Web Site:
Dr. Sajib Datta Jan 21,  Declare a variable ◦ int height; [note that no value is still assigned]  Assign a variable a value ◦ height =
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.
BIL 104E Introduction to Scientific and Engineering Computing Lecture 1.
INC 161 , CPE 100 Computer Programming
CMPT 201 Computer Science II for Engineers
Computer Engineering Department Islamic University of Gaza
Engineering Problem Solving With C An Object Based Approach
Chapter 1: Introduction to computers and C++ Programming
GC101 Introduction to computers and programs
What's a Computer? Monitor Disk Main mouse Memory Keyboard Network
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Revision Lecture
Java programming lecture one
Introduction and Overview
Lecture2.
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.
Administrative things
CSE1320 INTERMEDIATE PROGRAMMING
CSE1320 INTERMEDIATE PROGRAMMING
Chapter 1: Introduction to Computers and Programming
CS190/295 Programming in Python for Life Sciences: Lecture 1
IPC144 Introduction to Programming Using C Week 2 – Lesson 1
Chapter 2 - Introduction to C Programming
Chapter 2 - Introduction to C Programming
CSE 4344/5344 Computer Networks
Chapter 2 - Introduction to C Programming
First Python Program Professor Hugh C. Lauer CS-1004 — Introduction to Programming for Non-Majors (Slides include materials from Python Programming: An.
CSE1320 INTERMEDIATE PROGRAMMING
Welcome to Intro to C/C++ CISC 192
CSE1320 INTERMEDIATE PROGRAMMING
CSE1311 Introductory Programming for Engineers & Scientists
Chapter 2 - Introduction to C Programming
Programming Fundamentals Lecture #3 Overview of Computer Programming
First Semester 1439/1440 Welcome 
Chapter 2 - Introduction to C Programming
CSE 4344/5344 Computer Networks
Computer Engineering Department Islamic University of Gaza
Computer Programming-1 CSC 111
Introduction to C Programming
Welcome to Intro to C/C++ CISC 192
ICS103 Programming in C 1: Overview of Computers And Programming
Chapter 1: Introduction to Computers and Programming
Presentation transcript:

CSE1320 INTERMEDIATE PROGRAMMING Dr. Sajib Datta CSE@UTA

Course Syllabus Instructor: Sajib Datta TA and office hours: TBA Office Location: ERB 652 (CSE Dept., UTA) Email Address: sajib.datta@uta.edu Web Site: http://crystal.uta.edu/~datta/ Office Hours: MoWe 11:30AM - 1:30PM; or by appointment TA and office hours: TBA

Course Syllabus -Course Description Introduction to the C programming language Exposure to basic data structures Learn to use the Linux operating system

Course Syllabus C By Discovery (4th Edition), Foster and Foster. ISBN-13: 978- 1576761700 ISBN-10: 1576761703 http://en.wikibooks.org/wiki/C_Programming

Course Syllabus -Labs and Exams All labs (5) will be posted on the course website and announced via email and in class. Each lab will be distributed at least 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

Course Syllabus -Grading Pop Quizzes 15% Labs 30% (5 labs) Exams 30% (2 midterms, 15% each) Final Exam 25% 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

To succeed in this course Practice!!! Test code (debug)

What’s Programming What is computer programming? What is an algorithm? 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

What’s Programming How about preparing salad? Steps: Clean and cut vegetables Put sauce & cheese Stir

What’s Programming -An example 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?

Why Programming Manually operating – not possible Google search engine (Searching in a File)

Basic Components of a Computer 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

Programming Platform You have to execute your code on Omega server Connect Omega Server using SSH If you are using Macbook or Linux (such as Ubuntu), then open Terminal, and commend ssh your_UTA_NET_ID@omega.uta.edu. Then it will ask for password (UTA NetID password). If you are using Windows, please download SSH (Secure Sheel Client) http://www.uta.edu/oit/cs/unix/ssh/Secure-Shell-Client.php Download Code:Blocks: http://www.codeblocks.org/ Open source, cross platform, free IDE

First Example #include<stdio.h> void main() { int num; /* define a variable called num */ num = 1; /* assign a value to num */ printf("This is a simple example.\n"); printf("This is a program with %d lines.\n", num); }

First Example # include <stdio.h> void main( ) /* a … */ Tell compiler to include the information included in stdio.h void 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

First Example { - 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

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

First Example %d } – the end of the function Placeholder/format specifier - where and in what form to print } – the end of the function

A “Good” Program 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)