Click to edit Master title style Click to edit Master text styles –Second level Third level –Fourth level »Fifth level 1 Fundamentals of Programming Most.

Slides:



Advertisements
Similar presentations
Click to edit Master title style. Click to edit Master subtitle style.
Advertisements

Overview of programming in C C is a fast, efficient, flexible programming language Paradigm: C is procedural (like Fortran, Pascal), not object oriented.
Chapter 41 Variables and JSP Control Structures JavaServer Pages By Xue Bai.
1 C++ Syntax and Semantics The Development Process.
©2004 Brooks/Cole Chapter 2 Variables, Values and Operations.
©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4 th Ed Chapter Chapter 5 Selection Statements Primitive Type boolean.
CIS 234: Using Data in Java Thanks to Dr. Ralph D. Westfall.
CMP 131 Introduction to Computer Programming Violetta Cavalli-Sforza Week 3, Lecture 2.
Click to edit Master title style Click to edit Master text styles Second level Third level Fourth level Fifth level 1 Arrays Chapter 6.
Program Design and Development
Loops Repeat after me …. Loops A loop is a control structure in which a statement or set of statements execute repeatedly How many times the statements.
PHYS 2020 Making Choices; Arrays. Arrays  An array is very much like a matrix.  In the C language, an array is a collection of variables, all of the.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 3 Programming and Software.
Primitive Types Java supports two kinds of types of values – objects, and – values of primitive data types variables store – either references to objects.
‘C’ LANGUAGE PRESENTATION.  C language was introduced by Dennis Ritchie..  It is a programming language, which can make a interaction between user and.
 Value, Variable and Data Type  Type Conversion  Arithmetic Expression Evaluation  Scope of variable.
CIS Computer Programming Logic
Click to edit Master title style Click to edit Master text styles –Second level Third level –Fourth level »Fifth level 1 Today’s Topics How information.
DAT602 Database Application Development Lecture 5 JAVA Review.
DEPARTMENT OF COMPUTER SCIENCE & TECHNOLOGY FACULTY OF SCIENCE & TECHNOLOGY UNIVERSITY OF UWA WELLASSA 1 CST 221 OBJECT ORIENTED PROGRAMMING(OOP) ( 2 CREDITS.
Programing Concept Ken Youssefi/Ping HsuIntroduction to Engineering – E10 1 ENGR 10 Introduction to Engineering (Part A)
JAVA 0. HAFTA Algorithms FOURTH EDITION Robert Sedgewick and Kevin Wayne Princeton University.
What does a computer program look like: a general overview.
Property of Jack Wilson, Cerritos College1 CIS Computer Programming Logic Programming Concepts Overview prepared by Jack Wilson Cerritos College.
Chapter 6 Programming Languages (1) Introduction to CS 1 st Semester, 2015 Sanghyun Park.
Basic Java Syntax COMP 401, Spring 2014 Lecture 2 1/14/2014.
C++ Lecture 1 Friday, 4 July History of C++ l Built on top of C l C was developed in early 70s from B and BCPL l Object oriented programming paradigm.
Ch13-1 Chap 13 Introduction to Matlab 13.1 Introduction MATLAB : The MATrix LABoratory program Not only is the MATLAB programming language exceptionally.
School of Computer Science & Information Technology G6DICP - Lecture 4 Variables, data types & decision making.
CPS120: Introduction to Computer Science Variables and Constants.
Controlling Program Flow with Looping Structures
 Variables are nothing but reserved memory locations to store values. This means that when you create a variable you reserve some space in memory. 
Biosimilar (Insulin) – Competitive Landscape and Market & Pipeline Analysis, 2016 DelveInsight’s, “Biosimilar (Insulin) – Competitive Landscape and Market. Request for sample of this research report:
Introduction to CMex E177 April 25, Copyright 2005, Andy Packard. This work is licensed under the Creative.
Java Basics. Tokens: 1.Keywords int test12 = 10, i; int TEst12 = 20; Int keyword is used to declare integer variables All Key words are lower case java.
Title of Presentation May Go Here Department Name Presentation for March 4, 2014 University Marketing.
Arrays. C++ Style Data Structures: Arrays(1) An ordered set (sequence) with a fixed number of elements, all of the same type, where the basic operation.
CC213 Programming Applications Week #2 2 Control Structures Control structures –control the flow of execution in a program or function. Three basic control.
Chapter 1: Preliminaries Lecture # 2. Chapter 1: Preliminaries Reasons for Studying Concepts of Programming Languages Programming Domains Language Evaluation.
Chapter 6 Controlling Program Flow with Looping Structures.
Presentation By :- Nikhil R. Anande ( ) Electronic & Communication Engineering. 3 nd Year / 5 th Semester FACULTY GUIDE : RAHIUL PATEL SIR MICROCONTROLLER.
Introduction to programming in java Lecture 21 Arrays – Part 1.
Headline sample style Intro sample style Click to edit Master text styles –Second level Third level –Fourth level o Fifth level.
CIS3931 – Intro to JAVA Lecture Note Set 2 17-May-05.
Click to Add Title Click to Add Subtitle.
Object Oriented Programming
Click to Add Title Click to Add Subtitle.
BY GAWARE S.R. COMPUTER SCI. DEPARTMENT
Engineering Innovation Center
Roller Coaster Design Project
Introduction to Programming
Click to edit Master text styles
Click to Add Title Click to Add Subtitle.
Click to Add Title Click to Add Subtitle.
Author names here Author association names here
Click to edit Master text styles
Coding Concepts (Basics)
TITLE SLIDE GOES HERE Optional subhead.
Click to edit Master text styles
Slide Title Edit Master text styles Second level Third level
ОПШТЕСТВО ТЕМА: МЕСТОТО ВО КОЕ ЖИВЕАМ Скопје
Author names here Author associations here
Author names here Author associations here
Click to edit Master text styles
Lorem ipsum dolores Lorem ipsum dolores.
Presentation Title Presenter’s Name.
Author names here Author associations here
Click to edit Master text styles
Flow of Control Flow of control is the order in which a program performs actions. Up to this point, the order has been sequential. A branching statement.
Lecture 7: Types (Revised based on the Tucker’s slides) 10/4/2019
Presentation transcript:

Click to edit Master title style Click to edit Master text styles –Second level Third level –Fourth level »Fifth level 1 Fundamentals of Programming Most programming today is done in High- Level Languages Examples: C++, Java, Visual Basic, LISP, FORTRAN, MATLAB. Basic ideas of programming –data types –variables –control flow

Click to edit Master title style Click to edit Master text styles –Second level Third level –Fourth level »Fifth level 2 Entry Point All programs have an entry point: where they start executing In C/C++, this is called main The first statement in main is the first to be executed

Click to edit Master title style Click to edit Master text styles –Second level Third level –Fourth level »Fifth level 3 Data Types Recall that a data type is a set of values and operations C/C++ offers a variety of built-in types –int integer –long long integer (increased range) –float real number (floating point) –double double precision real number –char single character What are some of the operations over each type?

Click to edit Master title style Click to edit Master text styles –Second level Third level –Fourth level »Fifth level 4 Operations Numerical operators: –+, -, *, /, % (modulus) Automatic increment/decrement, e.g., –i++, i-- Comparison operators: –==, !=,, >=, <= Logical operators: –and ( && ), or ( || ), not ( ! ), xor ( ^ )

Click to edit Master title style Click to edit Master text styles –Second level Third level –Fourth level »Fifth level 5 Variables Recall the 4x3 memory: each group of bits is a memory cell with a unique location Variable: a name and type associated with a cell (or cells). Examples: –int age; integer value for a person’s age –long wage; long integer for hourly wage –float gpa; real number for student GPA –double inter; double precision for bank interest –char response; holds ‘y’ or ‘n’ response to question

Click to edit Master title style Click to edit Master text styles –Second level Third level –Fourth level »Fifth level 6 Structured Data Types Two basic types – a collection of the same kind of basic types (array) –a collection of different kinds of types ( struct or record) Example: array of integers –int test_scores[25]; –holds integer values for 25 test scores Example: array of characters –char name[80]; –holds 80 characters to store a student’s name

Click to edit Master title style Click to edit Master text styles –Second level Third level –Fourth level »Fifth level 7 Control Flow Sequential execution: first statement, next statement, etc. Each statement can actually be a block of statements Conditional branching: if a condition is true, execute one statement; else execute another

Click to edit Master title style Click to edit Master text styles –Second level Third level –Fourth level »Fifth level 8 Control Flow Looping: while a condition is true, repeat a statement –iterate a fixed number of times –iterate based on a condition that eventually is triggered Subroutine (function) call: execute a named block of statements; return to calling location when done