Course Information and Introduction

Similar documents
Introduction to C Programming

Introduction to Computer Systems

Chris Riesbeck, Fall Introduction to Computer Systems

COMP1917: Computing 1 1. Introduction

COMP1917: Computing 1 1. Introduction

CS133 C Programming. Instructor: Jialiang Lu Office: Information Center 703

Introduction to Computer Systems

Introduction to Computer Systems

Introduction to C An overview of the programming language C, syntax, data types and input/output

Laboratory 2: Programming Basics and Variables. Lecture notes: 1. A quick review of hello_comment.c 2. Some useful information

1. Introduction. Course Web Site. COMP1917: Computing 1. Textbook. Occupational Health and Safety (OHS)

Welcome to... CS113: Introduction to C

CS 241 Data Organization. August 21, 2018

EL2310 Scientific Programming

EECS2031 Software Tools

6.S096 Lecture 1 Introduction to C

Deep C. Multifile projects Getting it running Data types Typecasting Memory management Pointers. CS-343 Operating Systems

LAB 1 INTRODUCTION TO LINUX ENVIRONMENT AND C COMPILER

The C language. Introductory course #1

Introduction to C. Systems Programming Concepts

Introduction to C Language

CS 261 Fall C Introduction. Variables, Memory Model, Pointers, and Debugging. Mike Lam, Professor

CS 113: Introduction to

EL2310 Scientific Programming

CS 211 Programming I for Engineers

The C standard library

C Introduction. Comparison w/ Java, Memory Model, and Pointers

C Language Part 1 Digital Computer Concept and Practice Copyright 2012 by Jaejin Lee

CS11002 Programming and Data Structures Spring Introduction

2 Compiling a C program

EC 413 Computer Organization

ESC101N: Fundamentals of Computing End-sem st semester

(T) x. Casts. A cast converts the value held in variable x to type T

Computer Science 322 Operating Systems Mount Holyoke College Spring Topic Notes: C and Unix Overview

Introduction to C. CS 2060 Week 1. Prof. Jonathan Ventura. Outline Introduction Introduction to C Homework 1 C Coding Style Wrap-up

ET156 Introduction to C Programming

High Performance Computing Lecture 1. Matthew Jacob Indian Institute of Science

CS11001/CS11002 Programming and Data Structures Autumn/Spring Semesters. Introduction

Introduction to C Programming 計算機程式設計

Your first C and C++ programs

COS 217: Introduction to Programming Systems

Welcome to MCS 360. content expectations. using g++ input and output streams the namespace std. Euclid s algorithm the while and do-while statements

Copy: IF THE PROGRAM or OUTPUT is Copied, then both will have grade zero.

Presented By : Gaurav Juneja

Introduction to Computer Systems

Computer Science 2500 Computer Organization Rensselaer Polytechnic Institute Spring Topic Notes: C and Unix Overview

Linux Systems Administration Shell Scripting Basics. Mike Jager Network Startup Resource Center

Algorithms, Data Structures, and Problem Solving

#include <stdio.h> int main() { char s[] = Hsjodi, *p; for (p = s + 5; p >= s; p--) --*p; puts(s); return 0;

ECE15: Lab #2. Problem 1. University of California San Diego

CNG 140 C Programming. Syllabus. Course Info Fall Semester. Catalog Description

CS19001/CS19002 Programming and Data Structures Lab Autumn/Spring Semester. Introduction. Abhijit Das. January 4, 2015

2. First C. Algorithm

F28HS2 Hardware-Software Interface. Lecture 1: Programming in C 1

Physics 2660: Fundamentals of Scientific Computing. Lecture 7 Instructor: Prof. Chris Neu

Topics so far. Review. scanf/fscanf. How data is read 1/20/2011. All code handin sare at /afs/andrew/course/15/123/handin

CSE 303 Lecture 8. Intro to C programming

Day05 A. Young W. Lim Sat. Young W. Lim Day05 A Sat 1 / 14

Functions in C. Lecture Topics. Lecture materials. Homework. Machine problem. Announcements. ECE 190 Lecture 16 March 9, 2011

Summary of Last Class. Processes. C vs. Java. C vs. Java (cont.) C vs. Java (cont.) Tevfik Ko!ar. CSC Systems Programming Fall 2008

Your Instructor. CSE Content. Notes. Notes. Notes. Summer May 4, 2010

C LANGUAGE AND ITS DIFFERENT TYPES OF FUNCTIONS

Basic C Programming. Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island

Introduction to Supercomputing

CS 0449 Intro to Systems Software Fall Term: 2181

Arrays and Pointers. CSC209: Software Tools and Systems Programming (Winter 2019) Furkan Alaca & Paul Vrbik. University of Toronto Mississauga

Read: Kernighan & Ritchie

School of Computer Science Introduction to Algorithms and Programming Winter Midterm Examination # 1 Wednesday, February 11, 2015

BLM2031 Structured Programming. Zeyneb KURT

PRINCIPLES OF OPERATING SYSTEMS

Lab 1: Introduction to C Programming. (Creating a program using the Microsoft developer Studio, Compiling and Linking)

Introduction to Computer Systems

UNIVERSITY OF WINDSOR Winter 2007 QUIZ # 1 Solution. Examiner:Ritu Chaturvedi Dated : Feb 7 th, Student Name: Student Number:

introduction week 1 Ritsumeikan University College of Information Science and Engineering Ian Piumarta 1 / 20 imperative programming about the course

CSCI 2132 Software Development. Lecture 17: Functions and Recursion

Intermediate Programming, Spring Misha Kazhdan

Spring 2018 NENG 202 Introduction to Computer Programming

Programming in C week 1 meeting Tiina Niklander

Introduction to Basis and Practice in Programming

gcc hello.c a.out Hello, world gcc -o hello hello.c hello Hello, world

CS120 Computer Science I. Instructor: Jia Song

Data Structure and Algorithm Homework #3 Due: 2:20pm, Tuesday, April 9, 2013 TA === Homework submission instructions ===

CS 241 Data Organization Pointers and Arrays

CMSC 246 Systems Programming

by Pearson Education, Inc. All Rights Reserved.

CS 240 Fall 2015 Section 004. Alvin Chao, Professor

CS 241 Data Organization Binary Trees

CSC 2400: Computing Systems!

C Programming for Engineers Introduction

CIS* Programming

CS240: Programming in C

CSCI 2132: Software Development. Norbert Zeh. Faculty of Computer Science Dalhousie University. Introduction to C. Winter 2019

Programming Assignment #4 Arrays and Pointers

AE Computer Programming for Aerospace Engineers

mith College Computer Science CSC352 Week #7 Spring 2017 Introduction to C Dominique Thiébaut

Programming. Data Structure

CSCI 2132 Software Development. Lecture 18: Functions

Lecture 3. Review. CS 141 Lecture 3 By Ziad Kobti -Control Structures Examples -Built-in functions. Conditions: Loops: if( ) / else switch

ENCE Computer Organization and Architecture. Chapter 1. Software Perspective

Room 3P16 Telephone: extension ~irjohnson/uqc146s1.html

Transcription:

August 22, 2017

Course Information 1 Instructors : Email : arash.rafiey@indstate.edu Office : Root Hall A-127 Office Hours : Tuesdays 11:30 pm 12:30 pm. Root Hall, A127. 2 Course Home Page : http://cs.indstate.edu/~arash/cs256.html

Course Information Textbooks : The C Programming Language, B. Kernighan, and D.M. Ritchie, Printice Hall PTR, Second Edition 2012.

Grading 1 Homework assignmemts (6 assignments each 4 % ) 2 Midterm (26 % ) 3 Final (50 % )

Course Information Objective : Learning C (C++) programming Language (up to certain level).

Course Information Objective : Learning C (C++) programming Language (up to certain level). A programming language is a translator between human and machine. Machine language is a set of codes each consists of a binary string usually of length multiple of 8 (00000101,1000000,..) Since it is difficult to use binary codes we design programming languages. Each program language has a compiler which creates a machine codes.

Course Information Objective : Learning C (C++) programming Language (up to certain level). A programming language is a translator between human and machine. Machine language is a set of codes each consists of a binary string usually of length multiple of 8 (00000101,1000000,..) Since it is difficult to use binary codes we design programming languages. Each program language has a compiler which creates a machine codes. Learn how to program in C some of the simple algorithms in computer science.

Course Information Objective : Learning C (C++) programming Language (up to certain level). A programming language is a translator between human and machine. Machine language is a set of codes each consists of a binary string usually of length multiple of 8 (00000101,1000000,..) Since it is difficult to use binary codes we design programming languages. Each program language has a compiler which creates a machine codes. Learn how to program in C some of the simple algorithms in computer science. How does it look like to become a programmer?

Topics to cover 1 How to write a simple program (getting started) 2 Types, Operations, and Expression 3 Control Flow (If Else statement, while and for statements) 4 Functions and Program Structure (simple recursive functions ) 5 Structures (complex data type, name and address and zip code is one complex data type ) 6 Pointers and Array (hard to learn pointers!! ) 7 Input and Output (Read from and write into a file on a disk)

A Simple Program # include <stdio.h> // allow us to use the standard library main() // each program must have a main function { printf( hello, world \n ); // \ is for a new line }

We save the file (the hello world program) with extension.c file. For example hello.c

We save the file (the hello world program) with extension.c file. For example hello.c In the UNIX operating system type cc hello.c The c compiler creates and object file (executable file) by default a.out.

We save the file (the hello world program) with extension.c file. For example hello.c In the UNIX operating system type cc hello.c The c compiler creates and object file (executable file) by default a.out. In order to run the program we type./a.out

We save the file (the hello world program) with extension.c file. For example hello.c In the UNIX operating system type cc hello.c The c compiler creates and object file (executable file) by default a.out. In order to run the program we type./a.out It will print hello world

If you want to give a different name then type cc main.c -o main.out Then your executable file would be main.out Type./main.out

Reading from the command line # include <stdio.h> // allow us to use the standard library main() // each program must have a main function { } printf( hello, enter an integer number \n ); int x; scanf( %d,&x); printf( %d, x);