Test Review Computer Science History

Slides:



Advertisements
Similar presentations
L5:CSC © Dr. Basheer M. Nasef Lecture #5 By Dr. Basheer M. Nasef.
Advertisements

Expressions ► An expression can be a single variable, or can include a series of variables. If an expression includes multiple variables they are combined.
Constants and Variables  Memory cells used in program  Called constants and variables  Identifiers for constants and variables should be declared before.
True or false A variable of type char can hold the value 301. ( F )
Introduction to Computers and Programming Lecture 4: Mathematical Operators New York University.
Basic C Programming Data Types and Arithmetic Operations 01/30/15.
1 9/08/06CS150 Introduction to Computer Science 1 Arithmetic Operators.
Data types and variables
Chapter 2 Data Types, Declarations, and Displays
JavaScript, Third Edition
C++ for Engineers and Scientists Third Edition
String Escape Sequences
Basic Elements of C++ Chapter 2.
1 Chapter Two Using Data. 2 Objectives Learn about variable types and how to declare variables Learn how to display variable values Learn about the integral.
COMPUTER SCIENCE I C++ INTRODUCTION
Objectives You should be able to describe: Data Types
CIS Computer Programming Logic
Java Primitives The Smallest Building Blocks of the Language (corresponds with Chapter 2)
CONTROL STATEMENTS IF-ELSE, SWITCH- CASE Introduction to Computer Science I - COMP 1005, 1405 Instructor : Behnam Hajian
Chapter 2: Basic Elements of Java J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program Design, Second Edition.
DEPARTMENT OF COMPUTER SCIENCE & TECHNOLOGY FACULTY OF SCIENCE & TECHNOLOGY UNIVERSITY OF UWA WELLASSA 1 CST 221 OBJECT ORIENTED PROGRAMMING(OOP) ( 2 CREDITS.
2440: 211 Interactive Web Programming Expressions & Operators.
Logic & Logical Operators Logical Operators are used to connect two or more relational expressions into one OR to reverse the logic of an expression. OperatorMeaning.
Chapter 3: Data Types and Operators JavaScript - Introductory.
Chapter 2 Basic Elements of Java. Chapter Objectives Become familiar with the basic components of a Java program, including methods, special symbols,
1 Chapter 4: Selection Structures. In this chapter, you will learn about: – Selection criteria – The if-else statement – Nested if statements – The switch.
Liang, Introduction to Programming with C++, Second Edition, (c) 2010 Pearson Education, Inc. All rights reserved Chapter 3 Selections.
Program A computer program (also software, or just a program) is a sequence of instructions written in a sequence to perform a specified task with a computer.
CSE 1301 Lecture 2 Data Types Figures from Lewis, “C# Software Solutions”, Addison Wesley Richard Gesick.
Introduction to Computer Programming Using C Session 23 - Review.
Arithmetic Operations. Review function statement input/output comment #include data type variable identifier constant declaration.
CIS-165 C++ Programming I CIS-165 C++ Programming I Bergen Community College Prof. Faisal Aljamal.
Property of Jack Wilson, Cerritos College1 CIS Computer Programming Logic Programming Concepts Overview prepared by Jack Wilson Cerritos College.
Java Programming: From Problem Analysis to Program Design, 4e Chapter 2 Basic Elements of Java.
Java Programming: From Problem Analysis to Program Design, 5e Chapter 2 Basic Elements of Java.
CP104 Introduction to Programming Overview of C Lecture 4__ 1 Assignment Statements An assignment statement is to store a value in a variable variable.
THE BASICS OF A C++ PROGRAM EDP 4 / MATH 23 TTH 5:45 – 7:15.
Data Types and Operations On Data Objective To understand what data types are The need to study data types To differentiate between primitive types and.
Liang, Introduction to C++ Programming, (c) 2007 Pearson Education, Inc. All rights reserved X1 Chapter 3 Control Statements.
Khalid Rasheed Shaikh Computer Programming Theory 1.
A Simple Java Program //This program prints Welcome to Java! public class Welcome { public static void main(String[] args) { public static void main(String[]
CHAPTER 2 PROBLEM SOLVING USING C++ 1 C++ Programming PEG200/Saidatul Rahah.
C++ for Engineers and Scientists Second Edition
ECE 103 Engineering Programming Chapter 4 Operators Herbert G. Mayer, PSU CS Status 6/19/2015 Initial content copied verbatim from ECE 103 material developed.
Java Programming: From Problem Analysis to Program Design, Second Edition 1 Lecture 1 Objectives  Become familiar with the basic components of a Java.
Chad’s C++ Tutorial Demo Outline. 1. What is C++? C++ is an object-oriented programming (OOP) language that is viewed by many as the best language for.
Introduction to Algorithmic Processes CMPSC 201C Fall 2000.
C syntax (simplified) BNF. Program ::= [ ] Directives ::= [ ] ::= | |… ::=#include > ::=#define.
C++ for Engineers and Scientists Second Edition Chapter 4 Selection Structures.
Chapter Topics The Basics of a C++ Program Data Types
Chapter 3 Control Statements
BASIC ELEMENTS OF A COMPUTER PROGRAM
Basic Elements of C++.
Expressions An expression is a portion of a C++ statement that performs an evaluation of some kind Generally requires that a computation or data manipulation.
Revision Lecture
Multiple variables can be created in one declaration
BY GAWARE S.R. COMPUTER SCI. DEPARTMENT
Chapter 3 Control Statements Lecturer: Mrs Rohani Hassan
TMC 1414 Introduction to Programming
Java Programming: From Problem Analysis to Program Design, 4e
Basic Elements of C++ Chapter 2.
2.1 Parts of a C++ Program.
Chapter 2: Basic Elements of Java
Review for Midterm Exam
Review for Midterm Exam
Expressions An expression is a portion of a C++ statement that performs an evaluation of some kind Generally requires that a computation or data manipulation.
Review for Midterm Exam
Review for Midterm Exam
Data Types and Expressions
Basic Programming Concepts
Presentation transcript:

Test Review Computer Science History Computer Organization and Components Overview Software & Programming Languages Characteristics of a Well Designed Program Translation Process Syntax and Style Syntax Errors/Logic Errors

Input/Output Console Libraries required cout/cin <</>> Escape sequences Stream manipulators File ifstream/ofstream Opening and closing files Specifying file paths Validating successful open

Variables/Literals/Constants Types of How stored Variables Rules for naming Types Libraries required Declaration statements Storage Format Initialization or Lack Thereof Relative storage size and value limits Assigning values Assignment Operator Multiple Assignment Combined Assignment Named constants Declaration Naming convention When to use

Arithmetic Calculations Arithmetic Operators Precedence Associativity Number and type of operands Writing Algebraic Expressions in C++ Integer Division Mixed Mode Arithmetic Type Casting cmath library Formatting numerical output

Relational Expressions Relational Operators Precedence with respect arithmetic operators Precedence with respect to assignment operator Relational Expressions Evaluating What values they can evaluate to Comparison of floating point (or double) numbers Comparison of char Comparison of strings

Decision Making Control Structures if (condition) { … } else else if (condition) else //optional

Switch switch (IntegerExpression) { case ConstantExpression1: stuff to do when IntegerExpression evaluates to ConstantExpression1 break; //Optional case ConstantExpression2: stuff to do when IntegerExpression evaluates to ConstantExpression2 break; . default: //Optional stuff to do when IntegerExpression evaluates to none of the ConstantExpression(n)s }

Boolean Expressions Logical Operators Precedence with respect to each other Precedence with respect to relational operators