Miscellaneous Terms. Math Notations Infix notation: 2 + 3 Prefix notation: + 2 3 Postfix notation: 2 3 + Infix notation: 3*(6-4) Prefix notation: * -

Slides:



Advertisements
Similar presentations
Arithmetic Calculations
Advertisements

Lecture Set 4 Data Types and Variables Part B – Variables, Constants, Expressions Conversion Rules Options Strict, Option Explicit Scope of Definition.
23-Apr-15 Abstract Data Types. 2 Data types I We type data--classify it into various categories-- such as int, boolean, String, Applet A data type represents.
The Functions and Purposes of Translators Code Generation (Intermediate Code, Optimisation, Final Code), Linkers & Loaders.
CSCE 145: Algorithmic Design I Chapter 1 Intro to Computers and Java Muhammad Nazmus Sakib.
Programming Types of Testing.
1BA3 G Lacey Lecture 51 Evaluating mathematical expressions  How do computers evaluate x + y or any mathematical expression ?  Answer : “Reverse Polish.
CS16 Week 2 Part 2 Kyle Dewey. Overview Type coercion and casting More on assignment Pre/post increment/decrement scanf Constants Math library Errors.
Chapter 5: Elementary Data Types Properties of types and objects –Data objects, variables and constants –Data types –Declarations –Type checking –Assignment.
OBJECT-ORIENTED PROGRAMMING. What is an “object”? Abstract entity that contains data and actions Attributes (characteristics) and methods (functions)
1 Chapter 7: Expressions Expressions are the fundamental means of specifying computations in a programming language To understand expression evaluation,
1 Lecture 1  Getting ready to program  Hardware Model  Software Model  Programming Languages  The C Language  Software Engineering  Programming.
CSCE 121, Sec 200, 507, 508 Fall 2010 Prof. Jennifer L. Welch.
Chapter 10 Storage Management Implementation details beyond programmer’s control Storage/CPU time trade-off Binding times to storage.
Program Flow Charting How to tackle the beginning stage a program design.
Data Structures Introduction. What is data? (Latin) Plural of datum = something given.
Chapter 8 . Sequence Control
COMS S1007 Object-Oriented Programming and Design in Java August 7, 2007.
Chapter 1 Introduction to C Programming. 1.1 INTRODUCTION This book is about problem solving with the use of computers and the C programming language.
CS 330 Programming Languages 09 / 16 / 2008 Instructor: Michael Eckmann.
ISBN Lecture 07 Expressions and Assignment Statements.
1.3 Executing Programs. How is Computer Code Transformed into an Executable? Interpreters Compilers Hybrid systems.
Generating Random Numbers in Hardware. Two types of random numbers used in computing: --”true” random numbers: ++generated from a physical source (e.g.,
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Programming Languages: Telling the Computers What to Do Chapter 16.
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
Programming Languages and Paradigms Object-Oriented Programming.
© Janice Regan, CMPT 128, Jan CMPT 128 Introduction to Computing Science for Engineering Students Creating a program.
An Object-Oriented Approach to Programming Logic and Design
Object-Oriented Modeling and Design
1 CSC 221: Introduction to Programming Fall 2012 Functions & Modules  standard modules: math, random  Python documentation, help  user-defined functions,
Software Architecture & Complexity By:- Pardesi Band Group
Input, Output, and Processing
OOP IN PHP `Object Oriented Programming in any language is the use of objects to represent functional parts of an application and real life entities. For.
UniMAP Sem1-07/08EKT120: Computer Programming1 Week2.
Java Objects and Classes. Overview n Creating objects that belong to the classes in the standard Java library n Creating your own classes.
Chapter 1 Introduction Chapter 1 Introduction 1 st Semester 2015 CSC 1101 Computer Programming-1.
RNJ 05/05/091 6 Further System Fundamentals (HL) ‏ 6.3 Operating Systems and Utility Software Linkers, Loaders and Library Managers.
1 CHAPTER 3 MODULAR PROGRAMMING. 2 Introduction  A library in C is a collection of general purpose and related functions.  2 types of libraries: Standard.
Typical C++ Environment and Library Introduction Speaker : Wei-Lu Lin Advisor : Ku-Yaw Chang 2012/10/14.
Review 1 Polish Notation Prefix Infix Postfix Precedence of Operators Converting Infix to Postfix Evaluating Postfix.
Semantics (1).
Interfaces Chapter 9. 9 Creating Interfaces An interface is a contract. Every class that implements the interface must provide the interface’s defined.
S ECURE P ROGRAMMING 6. B UFFER O VERFLOW (S TRINGS AND I NTEGERS ) P ART 2 Chih Hung Wang Reference: 1. B. Chess and J. West, Secure Programming with.
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
UNIMAP Sem2-07/08EKT120: Computer Programming1 Week 2 – Introduction to Programming.
Primitive Data Types. int This is the type you are familiar with and have been using Stores an integer value (whole number) between -2,147,483,648 (-2.
1 Types of Programming Language (1) Three types of programming languages 1.Machine languages Strings of numbers giving machine specific instructions Example:
LECTURE 3 Translation. PROCESS MEMORY There are four general areas of memory in a process. The text area contains the instructions for the application.
OCR A Level F453: The function and purpose of translators Translators a. describe the need for, and use of, translators to convert source code.
Making Interactive Programs with Visual Basic .NET
Semantics(1). 2 Symantec(1)  To provide an authoritative definition of the meaning of all language constructs for: 1.Programmers 2.Compiler writers 3.Standards.
Some of the utilities associated with the development of programs. These program development tools allow users to write and construct programs that the.
Module 2.2 Errors 03/08/2011. Sources of errors Data errors Modeling Implementation errors Absolute and relative errors Round off errors Overflow and.
Deadlock Avoidance Determine whether, by allowing allocation, we could get a deadlock, i.e. check if by allowing allocation the system could enter a state.
Lecture 3 Translation.
Chapter 1: Introduction to computers and C++ Programming
Expressions and Assignment
Linking & Loading.
Intro to Programming Week # 1 Hardware / Software Lecture # 2
-by Nisarg Vasavada (Compiled*)
C Basics.
PART II STACK APPLICATIONS
Binary Code  
Introduction to System Programming
Languages and Compilers (SProg og Oversættere)
Chapter 7 Expressions and Assignment Statements.
Object-Oriented Programming
High-Level Programming Languages
Chapter 1 c++ structure C++ Input / Output
Presentation transcript:

Miscellaneous Terms

Math Notations Infix notation: Prefix notation: Postfix notation: Infix notation: 3*(6-4) Prefix notation: * Postfix notation: *

Mathematical Errors Truncation error (round off error) –When you don’t have enough bits to represent the entire number, so you have to truncate (round) Underflow error –When you try to represent a number below the minimum possible value of a bit string Overflow error –When you try to represent a number over the maximum possible value of a bit string

Syntax & Semantics Syntax –Rules and structure of source code Semantics –The meaning and/or logic of the source code

Random Programming Terms Information hiding –Hiding some attributes/methods in a module, so users (other programmers) cannot use them –private vs. public Polymorphism –Multiple methods with the same name Inheritance –When a class/module inherits attributes and methods of a parent class/module –Helps with design and organization

Linker, Loader, Library Manager Linker –Links modules to your source code –E.g. import java.io.* is linked to your program Loader –Loads linked modules into memory to run Library Manager –Manages library functions used by linker