Programming. Ed Milne

Size: px
Start display at page:

Download "Programming. Ed Milne"

Transcription

1 Programming Ed Milne

2 Theme What is programming How its done The tools that are used

3 Programming Software is the instructions which tell your computer what to do Programming is the process of creating software

4 UML Universal Modelling Language Graphical way of describing program and system logic Can also be used for manual procedures There is freeware available for creating UML diagrams

5 UML Example

6 Objects Objects are independent entities that perform specific functions within a program A program that uses an object does not have to know how an object works

7 Objects Objects can be reused in many programs This reduces the programming effort If the object is successfully working in other programs it reduces the debugging effort Objects can also reduce the learning curve for software users e.g. the Open function in Windows programs Objects are used in other contexts such as word processing OLE = Object Linking and Embedding

8 Linking Programs are created as a series of separate modules rather than a single unit Linking resolves the addresses of the different modules so control can be passed between them The result of linking is an integrated program containing multiple modules A linker links the modules together

9 Dynamic Linking Some objects are linked into a program dynamically after it starts This reduces the time to start the program and the amount of RAM used Many programs have many options that are rarely used Dynamically linked modules are kept in Dynamic-Link Libraries (DLL) files

10 Programming Languages Used to tell the computer what to This is source code of programs A major goal is to reduce the human effort needed to create programs

11 Machine Language Machine language is the code used by the CPU This is just a series of bytes such as A0 12 FF 7E 3B Such code is time consuming to create and maintain

12 Assembly Language A human readable form of the machine language There is usually a one-to-one relationship between an assembly language source code and a machine instruction Assembly language is only used for the innermost loops where efficiency is critical It gives the finest control over the program instructions

13 Assembly Language An assembler converts the human readable code into machine code A disassembler converts machine code into human readable assembly language

14 Assembly Language Example.text.globl main main: la $a0, query #First the query li $v0, 4 syscall li $v0, 5 #Read the input syscall move $t0, $v0 #store the value in a temporary variable #store the base values in $t1, $t2 # $t1 iterates from m-1 to 1 # $t2 maintains a counter of the number of coprimes less than m sub $t1, $t0, 1 li $t2, 0 tot: blez $t1, done move $a0, $t0 move $a1, $t1 jal gcd #termination condition #Argument passing #Argument passing #to GCD function

15 Compiled Languages Compiled languages are higher level language A compiler converts the source code into machine code A decompiler converts machine code into a higher level language

16 Procedural Languages Before object orientated languages (OOP) procedural languages created a program as one complete unit Later versions were enhanced to create objects The most common procedural languages were COBOL and Fortran

17 COBOL COmmon Business Oriented Language is a procedural language used for business applications The syntax is based on the English language

18 COBOL Example IDENTIFICATION DIVISION. PROGRAM-ID. TEST. ENVIRONMENT DIVISION. DATA DIVISION 01 some-record. 05 num PIC 9(10). 05 the-date. 10 the-year PIC 9(4). 10 the-month PIC the-day PIC 99. PROCEDURE DIVISION IF invalid-record IF no-more-records NEXT SENTENCE ELSE READ record-file AT END SET no-more-records TO TRUE.

19 FORTRAN FORmula TRANslating system is a procedural language used for numeric and scientific calculations The syntax is based on algebra

20 FORTRAN Example program average! Read in some numbers and take the average! As written, if there are no data points, an average of zero is returned! While this may not be desired behaviour, it keeps this example simple implicit none real, dimension(:), allocatable :: points integer :: number_of_points real :: average_points=0., positive_average=0., negative_average=0. write (*,*) "Input number of points to average:" read (*,*) number_of_points allocate (points(number_of_points)) write (*,*) "Enter the points to average:" read (*,*) points

21 FORTRAN Example! Take the average by summing points and dividing by number_of_points if (number_of_points > 0) average_points = sum(points) / number_of_points! Now form average over positive and negative points only if (count(points > 0.) > 0) then positive_average = sum(points, points > 0.) / count(points > 0.) end if if (count(points < 0.) > 0) then negative_average = sum(points, points < 0.) / count(points < 0.) end if deallocate (points)! Print result to terminal write (*,'(a,g12.4)') 'Average = ', average_points write (*,'(a,g12.4)') 'Average of positive points = ', positive_average write (*,'(a,g12.4)') 'Average of negative points = ', negative_average

22 C Dennis Ritchie of Bell Labs developed 3 programming languages which he called A, B and C C was a success Enhanced versions were named C+ and C++ C++ is the current standard for hard core programming such as operating systems

23 C++ Example # include <stdio.h> int main(void) { printf("hello, world\n"); }

24 BASIC Beginner's All-purpose Symbolic Instruction Code wad initialized designed to teach programming to students Variants of BASIC underlay Microsoft Office, Open Office and LibreOffice There are many versions of BASIC

25 BASIC Example Public Class StarsProgram Public Shared Sub Main() Dim UserName, Answer, stars As String, NumStars As Integer Console.Write("What is your name: ") UserName = Console.ReadLine() Console.WriteLine("Hello {0}", UserName) Do Console.Write("How many stars do you want: ") NumStars = CInt(Console.ReadLine()) stars = New String("*", NumStars) Console.WriteLine(stars) Do Console.Write("Do you want more stars? ") Answer = Console.ReadLine() Loop Until Answer <> "" Answer = Answer.Substring(0, 1) Loop While Answer.ToUpper() = "Y" Console.WriteLine("Goodbye {0}", UserName) End Sub End Class

26 Interpreters Interpreters directly execute source code without converting it to machine code

27 JavaScript JavaScript is an interpreted language used in web pages An interpreted language is required because Web pages can only contain ASCII characters Pictures, sounds and videos are included by inserting a URL into the web page Special characters are included as strings of ASCII characters e.g. È for È Web designers want their pages to work on Widows, Linux, Mac, tablets and smart-phones without having to write separate versions for each type of device

28 JavaScript A JavaScript interpreter is included in web browsers JavaScript is a Write Once Run Anywhere (WORA) language

29 JavaScript Example <!DOCTYPE html> <meta charset="utf-8"> <title>minimal Example</title> <h1 id="header">this is JavaScript</h1> <script> document.body.appendchild(document.createtextnode('hello World!')); var h1 = document.getelementbyid('header'); // holds a reference to the <h1> tag h1 = document.getelementsbytagname('h1')[0]; // accessing the same <h1> element </script> <noscript>your browser either does not support JavaScript, or has it turned off.</noscript>

30 Java Java is a combination of a compiled and interpreted language The source code is compiled into executable code for Java's virtual CPU The compiled code is executed by the Java Runtime Environment (JRE) JREs are available for many different systems Like JavaScript Java is a WORA language

31 Java Java was intended to protect computers from malware The programs run in sandbox which is isolated from the rest of the computer Hackers have taken this as a challenge and the JRE is under constant attack

32 Java Example // This is an example of a single line comment using two slashes /* This is an example of a multiple line comment using the slash and asterisk. This type of comment can be used to hold a lot of information or deactivate code, but it is very important to remember to close the comment. */ package fibsandlies; import java.util.hashmap; * This is an example of a Javadoc comment; Javadoc can compile documentation * from this text. Javadoc comments must immediately precede the class, method, or field being documented. */ public class FibCalculator extends Fibonacci implements Calculator { private static Map<Integer, Integer> memoized = new HashMap<Integer, Integer>();

33 Java Example * The main method written as follows is used by the JVM as a starting point for the program. */ public static void main(string[] args) { memoized.put(1, 1); memoized.put(2, 1); System.out.println(fibonacci(12)); //Get the 12th Fibonacci number and print to console } * An example of a method written in Java, wrapped in a class. * Given a non-negative number FIBINDEX, returns * the Nth Fibonacci number, where N equals FIBINDEX. fibindex The index of the Fibonacci number The Fibonacci number */ public static int fibonacci(int fibindex) { if (memoized.containskey(fibindex)) { return memoized.get(fibindex); } else { int answer = fibonacci(fibindex - 1) + fibonacci(fibindex - 2); memoized.put(fibindex, answer); return answer; } } }

34 Debugging Most of the time and effort in programming is spent removing defects (bugs) rather than writing the code In spite of this, programs still have bugs The combinations and permutations of hardware and other software are too large to be tested Some software developers, like Microsoft, have their software send data back to them when it fails This lets them use their customers as unpaid

35 Macros Office and programs let you write code by recording your actions in a macro

36 LibreOffice IDE The Integrated Development Environment (IDE) lets you edit and test BASIC code The controls are Compile compiles the source code The LibreOffice Basic compiler is embedded in the application Run executes the compiled code after a break Stop stops executing the code Step Over steps over the next instruction Step Into execute the next instruction

37 LibreOffice IDE Step Out returns to the previous routine in the current macro Breakpoint stop executing when an instruction is reached or remove a breakpoint Enable Watch displays the variables in the current macro Insert Source Text inserts additional source code into the macro from a file In the large pane, you can edit the source code or enter new code You can find some useful functions online

38 LibreOffice Basic Function Function SmallIntToText(ByVal n As Integer) As String REM by Andrew D. Pitonyak Dim sonewords() Dim stenwords() Dim s As String If n > 999 Then Print "Warning, n = " & n & " which is too large!" Exit Function End If sonewords() = Array("zero", _ "one", "two", "three", "four", "five", _ "six", "seven", "eight", "nine", "ten", _ "eleven", "twelve", "thirteen", "fourteen", "fifteen", _ "sixteen", "seventeen", "eighteen", "nineteen", "twenty") stenwords() = Array( "zero", "Ten", "twenty", "thirty", "fourty", _ "fifty", "sixty", "seventy", "eighty", "ninety")

39 LibreOffice Basic Function s = "" If n > 99 Then s = sonewords(fix(n / 100)) & " hundred" n = n MOD 100 If n = 0 Then SmallIntToText = s Exit Function End If s = s & " " End If If (n > 20) Then s = s & stenwords(fix(n / 10)) n = n MOD 10 If n = 0 Then SmallIntToText = s Exit Function End If s = s & " " End If

40 LibreOffice Basic Function SmallIntToText = s & sonewords(n) End Function

How to convert a numeric value into English words in Excel

How to convert a numeric value into English words in Excel How to convert a numeric value into English words in Excel (Microsoft Office Excel 2003, Microsoft Office Excel 2007, Microsoft Excel 2010, Excel 2016, Microsoft Excel 2013) Summary This article contains

More information

CISC2000/ of 6

CISC2000/ of 6 CISC2000/2010 1 of 6 Lecture 3 Fall 2018 Prof. Zhang Last week: 1. Three aspects of programming: a) programming language (syntax and semantics) b) problem solving skills (divide and conquer, step-wise

More information

17. [Exploring Numbers]

17. [Exploring Numbers] . [Exploring Numbers] Skill. Comparing whole numbers. Compare the size of the digits in the same place, one at a time. Work from left to right across each number. Q. Which number is the A ) 06 B ) 60 C

More information

Hello! My name is PC and I am learning how to use a computer. Let s learn together! Unit1

Hello! My name is PC and I am learning how to use a computer. Let s learn together! Unit1 Hello! My name is PC and I am learning how to use a computer. Let s learn together! Unit1 The Computer Parts of a Computer The Mouse Disks What Can You Do? Programs Windows Parts of a Computer A computer

More information

Homework 5: Conditionals and Loops in C

Homework 5: Conditionals and Loops in C COP 3223H Honors Introduction to Programming with C March 7, 2019 Homework 5: Conditionals and Loops in C See Webcourses and the syllabus for due dates. General Directions This homework should be done

More information

Java 1.8 Programming

Java 1.8 Programming One Introduction to Java 2 Usage of Java 3 Structure of Java 4 Flexibility of Java Programming 5 Two Running Java in Dos 6 Using the DOS Window 7 DOS Operating System Commands 8 Compiling and Executing

More information

Java Programming with Eclipse

Java Programming with Eclipse One Introduction to Java 2 Usage of Java 3 Structure of Java 4 Flexibility of Java Programming 5 Using the Eclipse Software 6 Two Running Java in Eclipse 7 Introduction 8 Using Eclipse 9 Workspace Launcher

More information

Homeschool Programming, Inc.

Homeschool Programming, Inc. Online Course Overview Course Title: TeenCoder: Java Programming TeenCoder: Java Programming Online Course Syllabus and Planner Updated November, 2015 Online ISBN: 978-0-9887070-2-3, published 2015 by

More information

Introduction to Java. Liang, Introduction to Java Programming, Ninth Edition, (c) 2013 Pearson Education, Inc. All rights reserved.

Introduction to Java. Liang, Introduction to Java Programming, Ninth Edition, (c) 2013 Pearson Education, Inc. All rights reserved. Introduction to Java 1 Programs Computer programs, known as software, are instructions to the computer. You tell a computer what to do through programs. Programs are written using programming languages.

More information

Course Directive Degree Audit Exception

Course Directive Degree Audit Exception Course Directive Degree Audit Exception This guide will cover: How to add or remove a course from a requirement line in a student's degree audit. Step One Navigate to the following breadcrumb: Step Two

More information

C Language, Token, Keywords, Constant, variable

C Language, Token, Keywords, Constant, variable C Language, Token, Keywords, Constant, variable A language written by Brian Kernighan and Dennis Ritchie. This was to be the language that UNIX was written in to become the first "portable" language. C

More information

In the hardware module, you saw the basic execution of a program Programs are written in specific languages Each language has it s strengths and

In the hardware module, you saw the basic execution of a program Programs are written in specific languages Each language has it s strengths and In the hardware module, you saw the basic execution of a program Programs are written in specific languages Each language has it s strengths and weaknesses, and own grammar and syntax We will take a high-

More information

Algorithms and Programming I. Lecture#12 Spring 2015

Algorithms and Programming I. Lecture#12 Spring 2015 Algorithms and Programming I Lecture#12 Spring 2015 Think Python How to Think Like a Computer Scientist By :Allen Downey Installing Python Follow the instructions on installing Python and IDLE on your

More information

User Interface Programming OOP/Java Primer. Step 3 - documentation

User Interface Programming OOP/Java Primer. Step 3 - documentation User Interface Programming OOP/Java Primer Step 3 - documentation Department of Information Technology Uppsala University What is the documentation? Documentation about program in the program Clearly written

More information

Chapter Five: Functions II

Chapter Five: Functions II Chapter Five: Functions II Slides by Evan Gallagher & Nikolay Kirov Lecture Goals To develop strategies for decomposing complex tasks into simpler ones To be able to determine the scope of a variable To

More information

Programming Fundamentals (CS 302 ) Dr. Ihsan Ullah. Lecturer Department of Computer Science & IT University of Balochistan

Programming Fundamentals (CS 302 ) Dr. Ihsan Ullah. Lecturer Department of Computer Science & IT University of Balochistan Programming Fundamentals (CS 302 ) Dr. Ihsan Ullah Lecturer Department of Computer Science & IT University of Balochistan 1 Outline p Introduction p Program development p C language and beginning with

More information

Ratios can be written in several different ways. Using a colon. Using the word to. Or as a fraction.

Ratios can be written in several different ways. Using a colon. Using the word to. Or as a fraction. Show Me: Proportional Relationships M7051 Tanyss and her family are redecorating parts of their house. One of their projects is to replace the tiles on the kitchen floor, and they will use this plan of

More information

Motivation was to facilitate development of systems software, especially OS development.

Motivation was to facilitate development of systems software, especially OS development. A History Lesson C Basics 1 Development of language by Dennis Ritchie at Bell Labs culminated in the C language in 1972. Motivation was to facilitate development of systems software, especially OS development.

More information

Cisco WebEx Meetings Server Release 1.5MR2. CWMS 1.5MR2 Extended Branding

Cisco WebEx Meetings Server Release 1.5MR2. CWMS 1.5MR2 Extended Branding Cisco WebEx Meetings Server Release 1.5MR2 CWMS 1.5MR2 Extended Branding Table of Contents Before You Begin... 2 Overall user interface... 3 Audio Prompts... 4 Logo... 5 Copyright Statement... 6 Reverting

More information

Motivation was to facilitate development of systems software, especially OS development.

Motivation was to facilitate development of systems software, especially OS development. A History Lesson C Basics 1 Development of language by Dennis Ritchie at Bell Labs culminated in the C language in 1972. Motivation was to facilitate development of systems software, especially OS development.

More information

EC 413 Computer Organization

EC 413 Computer Organization EC 413 Computer Organization C/C++ Language Review Prof. Michel A. Kinsy Programming Languages There are many programming languages available: Pascal, C, C++, Java, Ada, Perl and Python All of these languages

More information

COMP519 Practical 5 JavaScript (1)

COMP519 Practical 5 JavaScript (1) COMP519 Practical 5 JavaScript (1) Introduction This worksheet contains exercises that are intended to familiarise you with JavaScript Programming. While you work through the tasks below compare your results

More information

SAMPLE RESOURCE. dotty share prices

SAMPLE RESOURCE. dotty share prices BUSINESS dotty share prices Overview This activity tests students knowledge of the factors that cause movements in share prices, in a way that learners should enjoy. It is probably best done after some

More information

SKILL AREA 304: Review Programming Language Concept. Computer Programming (YPG)

SKILL AREA 304: Review Programming Language Concept. Computer Programming (YPG) SKILL AREA 304: Review Programming Language Concept Computer Programming (YPG) 304.1 Demonstrate an Understanding of Basic of Programming Language 304.1.1 Explain the purpose of computer program 304.1.2

More information

Introduction to Scientific Computing

Introduction to Scientific Computing Introduction to Scientific Computing Dr Hanno Rein Last updated: October 12, 2018 1 Computers A computer is a machine which can perform a set of calculations. The purpose of this course is to give you

More information

Reports 9i. Section Title Page

Reports 9i. Section Title Page One Introduction to 2 What is? 3 Destinations 5 Report Extensions in 6 Running Reports 7 Creating Dynamic Reports 8 Two Builder 9 Starting 10 Object Navigator 13 Object Navigator (Reports) 15 Object Navigator

More information

An Introduction to Software Engineering. David Greenstein Monta Vista High School

An Introduction to Software Engineering. David Greenstein Monta Vista High School An Introduction to Software Engineering David Greenstein Monta Vista High School Software Today Software Development Pre-1970 s - Emphasis on efficiency Compact, fast algorithms on machines with limited

More information

1. In COMAL language programs, parameters after name of procedure must be put in A. brackets B. back-slash C. insecure data D.

1. In COMAL language programs, parameters after name of procedure must be put in A. brackets B. back-slash C. insecure data D. 1. In COMAL language programs, parameters after name of procedure must be put in A. brackets B. back-slash C. insecure data D. punctuation marks 2. Programming language COBOL works best if used for A.

More information

Forms 10g. Section Title Page

Forms 10g. Section Title Page One Introduction to Forms 2 Two Running Forms in 10g 4 Starting OC4J Instance 5 Run a Form on the Web 9 Run Form Parameters 11 Three Using in a Browser 18 Browser Interface 19 Browser Menu Bar 20 Menu

More information

Lecture 1: Preliminaries

Lecture 1: Preliminaries Lecture 1: Preliminaries Edgardo Molina Department of Computer Science City College of New York August 30, 2011 Edgardo Molina (CS@CCNY) Lecture 1 August 30, 2011 1 / 44 Info and Schedule Course Info and

More information

1) What is the first step of the system development life cycle (SDLC)? A) Design B) Analysis C) Problem and Opportunity Identification D) Development

1) What is the first step of the system development life cycle (SDLC)? A) Design B) Analysis C) Problem and Opportunity Identification D) Development Technology In Action, Complete, 14e (Evans et al.) Chapter 10 Behind the Scenes: Software Programming 1) What is the first step of the system development life cycle (SDLC)? A) Design B) Analysis C) Problem

More information

In the following description the h: drive is used to indicate the directory in which during the actual ci101 exam the files used will reside.

In the following description the h: drive is used to indicate the directory in which during the actual ci101 exam the files used will reside. Important In the following description the h: drive is used to indicate the directory in which during the actual ci101 exam the files used will reside. However, if you are trying the exam system out yourself

More information

Place Value. Unit 1 Lesson 1

Place Value. Unit 1 Lesson 1 Unit 1 Lesson 1 Students will be able to: Read, write, whole numbers and decimals to thousandths. Key Vocabulary: Digits Place value position Decimal point The standard form The expanded form Digits are

More information

In this lesson, we will use the order of operations to evaluate and simplify expressions that contain numbers and variables.

In this lesson, we will use the order of operations to evaluate and simplify expressions that contain numbers and variables. Show Me: Expressions M8081 Could we sit in a classroom on the other side of the world and still make sense of the mathematics? The answer is yes! Of course, we might not understand exactly what the teacher

More information

Math in Focus Vocabulary. Kindergarten

Math in Focus Vocabulary. Kindergarten Math in Focus Vocabulary Kindergarten Chapter Word Definition 1 one 1 * 1 two 2 * * 1 three 3 * * * 1 four 4 * * * * 1 five 5 * * * * * 1 same things that have a common property 1 different things that

More information

Introduction to Computers, Programs, and Java. CSE 114, Computer Science 1 Stony Brook University

Introduction to Computers, Programs, and Java. CSE 114, Computer Science 1 Stony Brook University Introduction to Computers, Programs, and Java CSE 114, Computer Science 1 Stony Brook University http://www.cs.stonybrook.edu/~cse114 What is a Computer? A computer consists of a CPU, memory, hard disk,

More information

Computer Components. Software{ User Programs. Operating System. Hardware

Computer Components. Software{ User Programs. Operating System. Hardware Computer Components Software{ User Programs Operating System Hardware What are Programs? Programs provide instructions for computers Similar to giving directions to a person who is trying to get from point

More information

Parent s Guide to GO Math! Technology Correlation

Parent s Guide to GO Math! Technology Correlation hmhco.com Parent s Guide to GO Math! Technology Correlation Grade K Not sure how to help your child with homework? Looking for extra practice to help your child succeed? GO Math! Grade K has a variety

More information

Features of C. Portable Procedural / Modular Structured Language Statically typed Middle level language

Features of C. Portable Procedural / Modular Structured Language Statically typed Middle level language 1 History C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at Bell Labs. C was originally first implemented on the DEC

More information

Chapter 1 & 2 Introduction to C Language

Chapter 1 & 2 Introduction to C Language 1 Chapter 1 & 2 Introduction to C Language Copyright 2007 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 1 & 2 - Introduction to C Language 2 Outline 1.1 The History

More information

AP Computer Science A Syllabus

AP Computer Science A Syllabus This syllabus #1829769v1 was reviewed and approved by the College Board in Nov, 2016.. AP Computer Science A Syllabus Last updated November, 2016 Course Overview This AP Computer Science A class uses the

More information

Welcome to Python 3. Some history

Welcome to Python 3. Some history Python 3 Welcome to Python 3 Some history Python was created in the late 1980s by Guido van Rossum In December 1989 is when it was implemented Python 3 was released in December of 2008 It is not backward

More information

Intro to Programming. Unit 7. What is Programming? What is Programming? Intro to Programming

Intro to Programming. Unit 7. What is Programming? What is Programming? Intro to Programming Intro to Programming Unit 7 Intro to Programming 1 What is Programming? 1. Programming Languages 2. Markup vs. Programming 1. Introduction 2. Print Statement 3. Strings 4. Types and Values 5. Math Externals

More information

Introduction to Computer Science Unit 2. Notes

Introduction to Computer Science Unit 2. Notes Introduction to Computer Science Unit 2. Notes Name: Objectives: By the completion of this packet, students should be able to describe the difference between.java and.class files and the JVM. create and

More information

Introduction to C CMSC 104 Spring 2014, Section 02, Lecture 6 Jason Tang

Introduction to C CMSC 104 Spring 2014, Section 02, Lecture 6 Jason Tang Introduction to C CMSC 104 Spring 2014, Section 02, Lecture 6 Jason Tang Topics History of Programming Languages Compilation Process Anatomy of C CMSC 104 Coding Standards Machine Code In the beginning,

More information

Module 1: Introduction to Computers, Programs, and Java

Module 1: Introduction to Computers, Programs, and Java Module 1: Introduction to Computers, Programs, and Java Module 1: Introduction to Java page 1 Objectives To review Program Design and Problem-Solving Techniques To describe the relationship between Java

More information

Chapter 1 Introduction to Computers, Programs, and Java. What is a Computer? A Bit of History

Chapter 1 Introduction to Computers, Programs, and Java. What is a Computer? A Bit of History Chapter 1 Introduction to Computers, Programs, and Java CS170 Introduction to Computer Science 1 What is a Computer? A machine that manipulates data according to a list of instructions Consists of hardware

More information

1.1 Review of Place Value

1.1 Review of Place Value 1 1.1 Review of Place Value Our decimal number system is based upon powers of ten. In a given whole number, each digit has a place value, and each place value consists of a power of ten. Example 1 Identify

More information

PROGRAMMING FUNDAMENTALS

PROGRAMMING FUNDAMENTALS PROGRAMMING FUNDAMENTALS Q1. Name any two Object Oriented Programming languages? Q2. Why is java called a platform independent language? Q3. Elaborate the java Compilation process. Q4. Why do we write

More information

MTK smartphone Multiple downloading tool operating instructions

MTK smartphone Multiple downloading tool operating instructions MTK smartphone Multiple downloading tool operating instructions Note: 6.0 upgrade, first power off the phone and plug the data cable directly; 7.0 upgrade(the same way to upgrade from 6.0 to 7.0), first

More information

Chapter 11 Introduction to Programming in C

Chapter 11 Introduction to Programming in C Chapter 11 Introduction to Programming in C C: A High-Level Language Gives symbolic names to values don t need to know which register or memory location Provides abstraction of underlying hardware operations

More information

Web Design Course Syllabus and Planner

Web Design Course Syllabus and Planner Web Design Course Syllabus and Planner Updated May, 2018 Course Overview The Web Design curriculum is a one-year (two-semester) course covering required topics in most introductory Web Design settings.

More information

Math. Common Core. Daily/Spiral Review. Math. Common Core. Daily/Spiral Review. Unit 4. Unit 3. 7 th Grade

Math. Common Core. Daily/Spiral Review. Math. Common Core. Daily/Spiral Review. Unit 4. Unit 3. 7 th Grade Math Math Unit 4 Common Core Common Core Daily/Spiral Review Daily/Spiral Review 7 th Grade Unit 3 Includes Daily Questions Aligned to: Number Systems Expressions and Equations Ratios and Proportional

More information

Introduction to C/C++ Programming

Introduction to C/C++ Programming Chapter 1 Introduction to C/C++ Programming This book is about learning numerical programming skill and the software development process. Therefore, it requires a lot of hands-on programming exercises.

More information

Section 1.1 Patterns in Division

Section 1.1 Patterns in Division Section 1.1 Patterns in Division Divisibility refers to whether or not a number is divisible by another number. If a number divides evenly into another number (no remainder), then it is divisible by that

More information

Chapter 2 - Introduction to C Programming

Chapter 2 - Introduction to C Programming Chapter 2 - Introduction to C Programming 2 Outline 2.1 Introduction 2.2 A Simple C Program: Printing a Line of Text 2.3 Another Simple C Program: Adding Two Integers 2.4 Memory Concepts 2.5 Arithmetic

More information

Introduction to Computer Science Unit 2. Notes

Introduction to Computer Science Unit 2. Notes Introduction to Computer Science Unit 2. Notes Name: Objectives: By the completion of this packet, students should be able to describe the difference between.java and.class files and the JVM. create and

More information

Preview from Notesale.co.uk Page 6 of 52

Preview from Notesale.co.uk Page 6 of 52 Binary System: The information, which it is stored or manipulated by the computer memory it will be done in binary mode. RAM: This is also called as real memory, physical memory or simply memory. In order

More information

CS520 Setting Up the Programming Environment for Windows Suresh Kalathur. For Windows users, download the Java8 SDK as shown below.

CS520 Setting Up the Programming Environment for Windows Suresh Kalathur. For Windows users, download the Java8 SDK as shown below. CS520 Setting Up the Programming Environment for Windows Suresh Kalathur 1. Java8 SDK Java8 SDK (Windows Users) For Windows users, download the Java8 SDK as shown below. The Java Development Kit (JDK)

More information

Voice Response System (VRS)

Voice Response System (VRS) UNIVERGE SV8100 Issue 8.01 Voice Response System (VRS) Enhancements With Version 3000 or higher system software, if an outside caller dials an invalid extension number when connected to the VRS Automated

More information

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

Introduction to C An overview of the programming language C, syntax, data types and input/output Introduction to C An overview of the programming language C, syntax, data types and input/output Teil I. a first C program TU Bergakademie Freiberg INMO M. Brändel 2018-10-23 1 PROGRAMMING LANGUAGE C is

More information

ITC213: STRUCTURED PROGRAMMING. Bhaskar Shrestha National College of Computer Studies Tribhuvan University

ITC213: STRUCTURED PROGRAMMING. Bhaskar Shrestha National College of Computer Studies Tribhuvan University ITC213: STRUCTURED PROGRAMMING Bhaskar Shrestha National College of Computer Studies Tribhuvan University Lecture 04: Introduction to C Readings: Chapter 1.5-1.7 What is C? C is a general-purpose, structured

More information

Chapter 1 Introduction to Computers, Programs, and Java

Chapter 1 Introduction to Computers, Programs, and Java Chapter 1 Introduction to Computers, Programs, and Java 1 Objectives To understand computer basics, programs, and operating systems ( 1.2 1.4). To describe the relationship between Java and the World Wide

More information

This section will cover the core initialization process.

This section will cover the core initialization process. This section will cover the core initialization process. 1 There are three steps to initializing a system, CPU, Boot device and OS initialization + CPU initialization initializes the CPU to a known state.

More information

CS 231 Data Structures and Algorithms, Fall 2016

CS 231 Data Structures and Algorithms, Fall 2016 CS 231 Data Structures and Algorithms, Fall 2016 Dr. Bruce A. Maxwell Department of Computer Science Colby College Course Description Focuses on the common structures used to store data and the standard

More information

Java Language. Programs. Computer programs, known as software, are instructions to the computer. You tell a computer what to do through programs.

Java Language. Programs. Computer programs, known as software, are instructions to the computer. You tell a computer what to do through programs. Introduction to Programming Java Language Programs Computer programs, known as software, are instructions to the computer. You tell a computer what to do through programs. Programs are written using programming

More information

CS101 Introduction to Programming Languages and Compilers

CS101 Introduction to Programming Languages and Compilers CS101 Introduction to Programming Languages and Compilers In this handout we ll examine different types of programming languages and take a brief look at compilers. We ll only hit the major highlights

More information

FORM 2 (Please put your name and form # on the scantron!!!!)

FORM 2 (Please put your name and form # on the scantron!!!!) CS 161 Exam 2: FORM 2 (Please put your name and form # on the scantron!!!!) True (A)/False(B) (2 pts each): 1. Recursive algorithms tend to be less efficient than iterative algorithms. 2. A recursive function

More information

FIDE Language Reference

FIDE Language Reference FIDE Language Reference (v1.6) 2008-2009 AIS Cube. All rights reserved. The FlamingICE(FI) and FIDE are either registered trademarks or trademarks of AIS Cube in Singapore and/or other countries. Microsoft,

More information

8/16/12. Computer Organization. Architecture. Computer Organization. Computer Basics

8/16/12. Computer Organization. Architecture. Computer Organization. Computer Basics Computer Organization Computer Basics TOPICS Computer Organization Data Representation Program Execution Computer Languages 1 2 Architecture Computer Organization n central-processing unit n performs the

More information

The School District of Palm Beach County Kindergarten Mathematics Scope st Trimester

The School District of Palm Beach County Kindergarten Mathematics Scope st Trimester 1 st Trimester Counting and Cardinality (CC) Know number names and the count sequence. CC.1.3 CC.2.4 CC.2.5 Read and write numerals from 0 to 20. Represent a number of objects with a written numeral 0-20

More information

CS 220: Introduction to Parallel Computing. Beginning C. Lecture 2

CS 220: Introduction to Parallel Computing. Beginning C. Lecture 2 CS 220: Introduction to Parallel Computing Beginning C Lecture 2 Today s Schedule More C Background Differences: C vs Java/Python The C Compiler HW0 8/25/17 CS 220: Parallel Computing 2 Today s Schedule

More information

Story: Count the Eggs. Instructional Essential Standards

Story: Count the Eggs. Instructional Essential Standards September Topic 1: Numbers 0 to 5 Domain: Counting and Cardinality Cluster: Know number names and the count sequence; Count to tell the number of objects. Story: Count the Eggs Number Uses, Classification,

More information

C: How to Program. Week /Mar/05

C: How to Program. Week /Mar/05 1 C: How to Program Week 2 2007/Mar/05 Chapter 2 - Introduction to C Programming 2 Outline 2.1 Introduction 2.2 A Simple C Program: Printing a Line of Text 2.3 Another Simple C Program: Adding Two Integers

More information

C Programming Language Training. This instruction relies on the C language described in C++: The Complete Reference Third Edition By Herbert Schildt

C Programming Language Training. This instruction relies on the C language described in C++: The Complete Reference Third Edition By Herbert Schildt C Programming Language Training This instruction relies on the C language described in C++: The Complete Reference Third Edition By Herbert Schildt Background The C language was developed at Bell Labs

More information

Chapter 11 Introduction to Programming in C

Chapter 11 Introduction to Programming in C Chapter 11 Introduction to Programming in C Original slides from Gregory Byrd, North Carolina State University Modified slides by Chris Wilcox, Colorado State University C: A High-Level Language! Gives

More information

Primary Source Verification. How to Apply

Primary Source Verification. How to Apply Primary Source Verification Dubai Corporation for Ambulance Services (DCAS) How to Apply A Step By Step Guide for Completing Your Application If you are a new applicant, follow the instructions from step

More information

Programming - 1. Computer Science Department 011COMP-3 لغة البرمجة 1 لطالب كلية الحاسب اآللي ونظم المعلومات 011 عال- 3

Programming - 1. Computer Science Department 011COMP-3 لغة البرمجة 1 لطالب كلية الحاسب اآللي ونظم المعلومات 011 عال- 3 Programming - 1 Computer Science Department 011COMP-3 لغة البرمجة 1 011 عال- 3 لطالب كلية الحاسب اآللي ونظم المعلومات 1 1.1 Machine Language A computer programming language which has binary instructions

More information

assembler Machine Code Object Files linker Executable File

assembler Machine Code Object Files linker Executable File CSCE A211 Programming Intro What is a Programming Language Assemblers, Compilers, Interpreters A compiler translates programs in high level languages into machine language that can be executed by the computer.

More information

Chapter 8 Patterns. Examples: a, b, c,, x, y, z

Chapter 8 Patterns. Examples: a, b, c,, x, y, z Chapter 8 Patterns Alegbra is a way of expressing mathematical ideas that use variables, constants, numerical coefficients, and mathematical operations. Variable is a letter that represents an unknown

More information

Software Project. Lecturers: Ran Caneti, Gideon Dror Teaching assistants: Nathan Manor, Ben Riva

Software Project. Lecturers: Ran Caneti, Gideon Dror Teaching assistants: Nathan Manor, Ben Riva Software Project Lecturers: Ran Caneti, Gideon Dror Teaching assistants: Nathan Manor, Ben Riva Emails: (canetti/benriva)@post.tau.ac.il nathan.manor@gmail.com gideon@mta.ac.il http://www.cs.tau.ac.il/~roded/courses/soft-project10.html

More information

CSc 10200! Introduction to Computing. Lecture 1 Edgardo Molina Fall 2013 City College of New York

CSc 10200! Introduction to Computing. Lecture 1 Edgardo Molina Fall 2013 City College of New York CSc 10200! Introduction to Computing Lecture 1 Edgardo Molina Fall 2013 City College of New York 1 Introduction to Computing Lectures: Tuesday and Thursday s (2-2:50 pm) Location: NAC 1/202 Recitation:

More information

ECE 250 / CS 250 Computer Architecture. C to Binary: Memory & Data Representations. Benjamin Lee

ECE 250 / CS 250 Computer Architecture. C to Binary: Memory & Data Representations. Benjamin Lee ECE 250 / CS 250 Computer Architecture C to Binary: Memory & Data Representations Benjamin Lee Slides based on those from Alvin Lebeck, Daniel Sorin, Andrew Hilton, Amir Roth, Gershon Kedem Administrivia

More information

EL2310 Scientific Programming

EL2310 Scientific Programming Lecture 6: Introduction to C (pronobis@kth.se) Overview Overview Lecture 6: Introduction to C Roots of C Getting started with C Closer look at Hello World Programming Environment Schedule Last time (and

More information

Objective: To learn meaning and concepts of programming. Outcome: By the end of this students should be able to describe the meaning of programming

Objective: To learn meaning and concepts of programming. Outcome: By the end of this students should be able to describe the meaning of programming 30 th September 2018 Objective: To learn meaning and concepts of programming Outcome: By the end of this students should be able to describe the meaning of programming Section 1: What is a programming

More information

Sri Vidya College of Engineering & Technology

Sri Vidya College of Engineering & Technology UNIT I INTRODUCTION TO OOP AND FUNDAMENTALS OF JAVA 1. Define OOP. Part A Object-Oriented Programming (OOP) is a methodology or paradigm to design a program using classes and objects. It simplifies the

More information

2 rd class Department of Programming. OOP with Java Programming

2 rd class Department of Programming. OOP with Java Programming 1. Structured Programming and Object-Oriented Programming During the 1970s and into the 80s, the primary software engineering methodology was structured programming. The structured programming approach

More information

Chapter 11 Introduction to Programming in C

Chapter 11 Introduction to Programming in C Chapter 11 Introduction to Programming in C C: A High-Level Language Gives symbolic names to values don t need to know which register or memory location Provides abstraction of underlying hardware operations

More information

News and information! Review: Java Programs! Feedback after Lecture 2! Dead-lines for the first two lab assignment have been posted.!

News and information! Review: Java Programs! Feedback after Lecture 2! Dead-lines for the first two lab assignment have been posted.! True object-oriented programming: Dynamic Objects Reference Variables D0010E Object-Oriented Programming and Design Lecture 3 Static Object-Oriented Programming UML" knows-about Eckel: 30-31, 41-46, 107-111,

More information

COP4020 Programming Languages. Compilers and Interpreters Robert van Engelen & Chris Lacher

COP4020 Programming Languages. Compilers and Interpreters Robert van Engelen & Chris Lacher COP4020 ming Languages Compilers and Interpreters Robert van Engelen & Chris Lacher Overview Common compiler and interpreter configurations Virtual machines Integrated development environments Compiler

More information

Lecture 5: C programming

Lecture 5: C programming CSCI-GA.1144-001 PAC II Lecture 5: C programming Mohamed Zahran (aka Z) mzahran@cs.nyu.edu http://www.mzahran.com Brian Kernighan Dennis Ritchie In 1972 Dennis Ritchie at Bell Labs writes C and in 1978

More information

Technology in Action. Chapter Topics. Scope creep occurs when: 3/20/2013. Information Systems include all EXCEPT the following:

Technology in Action. Chapter Topics. Scope creep occurs when: 3/20/2013. Information Systems include all EXCEPT the following: Technology in Action Technology in Action Alan Evans Kendall Martin Mary Anne Poatsy Chapter 10 Behind the Scenes: Software Programming Ninth Edition Chapter Topics Understanding software programming Life

More information

Contents. Slide Set 1. About these slides. Outline of Slide Set 1. Typographical conventions: Italics. Typographical conventions. About these slides

Contents. Slide Set 1. About these slides. Outline of Slide Set 1. Typographical conventions: Italics. Typographical conventions. About these slides Slide Set 1 for ENCM 369 Winter 2014 Lecture Section 01 Steve Norman, PhD, PEng Electrical & Computer Engineering Schulich School of Engineering University of Calgary Winter Term, 2014 ENCM 369 W14 Section

More information

EL2310 Scientific Programming

EL2310 Scientific Programming (yaseminb@kth.se) Overview Overview Roots of C Getting started with C Closer look at Hello World Programming Environment Discussion Basic Datatypes and printf Schedule Introduction to C - main part of

More information

MathWorks MATLAB download & installation instructions

MathWorks MATLAB download & installation instructions MathWorks MATLAB download & installation instructions 1. Get the software from http://sts.fullerton.edu/software/matlab by clicking on the Get MATLAB Software link. Login with your CSUF Portal username

More information

Object Oriented Programming with Visual Basic.Net

Object Oriented Programming with Visual Basic.Net Object Oriented Programming with Visual Basic.Net By: Dr. Hossein Hakimzadeh Computer Science and Informatics IU South Bend (c) Copyright 2007 to 2015 H. Hakimzadeh 1 What do we need to learn in order

More information

Chapter 11 Introduction to Programming in C

Chapter 11 Introduction to Programming in C Chapter 11 Introduction to Programming in C Original slides from Gregory Byrd, North Carolina State University Modified by Chris Wilcox, Yashwant Malaiya Colorado State University C: A High-Level Language

More information

Notes of the course - Advanced Programming. Barbara Russo

Notes of the course - Advanced Programming. Barbara Russo Notes of the course - Advanced Programming Barbara Russo a.y. 2014-2015 Contents 1 Lecture 2 Lecture 2 - Compilation, Interpreting, and debugging........ 2 1.1 Compiling and interpreting...................

More information

Workbook 2. Remember to check the course website regularly for announcements and errata:

Workbook 2. Remember to check the course website regularly for announcements and errata: Introduction Workbook 2 In this workbook you will explore the basic types used for storing data in Java. You will also make use of the associated functions or operators. In the assessed exercise, you will

More information

Chapter 11 Introduction to Programming in C

Chapter 11 Introduction to Programming in C C: A High-Level Language Chapter 11 Introduction to Programming in C Original slides from Gregory Byrd, North Carolina State University Modified slides by Chris Wilcox, Colorado State University! Gives

More information