Computer Engineering 2 nd Semester Dr. Rabie A. Ramadan 2.

Slides:



Advertisements
Similar presentations
Understanding Recipes
Advertisements

CS0007: Introduction to Computer Programming Console Output, Variables, Literals, and Introduction to Type.
Baking Chocolate Chip Cookies Ms. Davis Life Skill Class July 11th, 2004.
How- To Writing. HOW-TO WRITING CCSS ELA-LITERACY 3.W.2A,B,C,D.
Chapter 1: Introduction
White Chocolate Orange Cookies. 1 cup butter softened 1/2 cup white sugar 1/2 cup brown sugar 1 egg 1 tablespoon orange zest 2 1/4 cups all-purpose flour.
PEC Baking Fundraiser Mugg’s Baking with Fractions.
Programming Languages: Notes for Class Discussion: V Deena Engel’s class.
CS31: Introduction to Computer Science I Discussion 1A 4/2/2010 Sungwon Yang
Baking Cookies Recipe Mixing Baking Final Product.
JavaScript, Third Edition
Data Types.
Transition Words Cake Recipe.
Cake Recipe. Ingredients Utensils 1 st Step Pre-Heat oven to 180 degrees Celsius.
Mini Lesson: Following Directions
© The McGraw-Hill Companies, 2006 Chapter 1 The first step.
Created by, Author Name, School Name—State FLUENCY WITH INFORMATION TECNOLOGY Skills, Concepts, and Capabilities.
Introduction By: Dr. Javad Razjouyan. Programming Languages.
Baking Cookies English Club eats chocolate chip cookies!
Computer Science 121 Scientific Computing Winter 2014.
Programming Languages V Deena Engel’s class.
Goals of Course Introduction to the programming language C Learn how to program Learn ‘good’ programming practices.
Computer Engineering 1 nd Semester Dr. Rabie A. Ramadan 1.
Computer Engineering 1 nd Semester Dr. Rabie A. Ramadan 2.
1 Computers Can’t Cook! Programming Methodology Girls Engaged in Math and Science, June 2012 Bri Chapman.
1.02 C Work Plans 1 The secret for success!. Why use a work plan? Helps meal preparation run smoothly Implement these steps: 1.02CWork Plans2 Steps 1-
Friends for Chip By: Carla Vela.  This is Chip, Hershey C. Chip.
The Algorithmic Model. What is Computer Science What is Programming Algorithms –Definition –Properties of Good Algorithms –Describing Algorithms –Examples.
Computer Science 101 Introduction to Programming.
King Saud University College of applied studies and community services CSC 1101 Computer Programming I Lecture 2.
Chapter 8 High-Level Programming Languages. 8-2 Chapter Goals Describe the translation process and distinguish between assembly, compilation, interpretation,
How to make “chocolate chip cookies” By Class Ping Nancy 11.
1 11/29/05CS360 Windows Programming XML. 2 11/29/05CS360 Windows Programming What is XML?  XML: Extensible Markup Language  HTML expresses appearance.
Introduction to programming in the Java programming language.
An Object-Oriented Approach to Programming Logic and Design Chapter 1 An Overview of Computers and Logic.
C++ Basics C++ is a high-level, general purpose, object-oriented programming language.
Data Warehouse Fundamentals Rabie A. Ramadan, PhD 1.
1 Computer Science of Graphics and Games MONT 105S, Spring 2009 Session 1 Simple Python Programs Using Print, Variables, Input.
What is Programming? A program is a list of instructions that is executed by a computer to accomplish a particular task. Creating those instructions is.
Computer Engineering 1 st Semester Dr. Rabie A. Ramadan 3.
© 2004 Pearson Addison-Wesley. All rights reserved ComS 207: Programming I Instructor: Alexander Stoytchev
Are you ready to bake???? Coconut BallsChocolate Chip Cookies.
Computer Engineering 2 nd Semester Rabie A. Ramadan Assignment 1.
How to make chocolate chip cookies By Rose Savage.
How to Make Chocolate Chip Cookies Caity Jozwiak Period 6.
COP 2551 Introduction to Object Oriented Programming with Java Topics –Introduction to the Java language –Code Commenting –Java Program Structure –Identifiers.
How to Make Chocolate Chip Cookies
Introduction. Natural Languages are languages of the Humans These Languages tend to be ambiguous A sentence in natural may not have just one meaning I.
Chapter 2: Data and Expressions. Variable Declaration In Java when you declare a variable, you must also declare the type of information it will hold.
Recipe - Steam Cakes By Ara D. What is it?  Steam cakes are cakes that are originally from Indonesia.  They do not need to be placed in an oven or a.
Agenda What is algorithm? Procedural programming vs OOP More object concepts Practice Java language Features(Chap. 1) packages and classes Types and identifiers.
How to Make Chocolate Chip Cookies Fast, Easy, and Yummy Original Author Unknown Modified By: CTAE Resource Network.
Make up Lab Brownies C. Kingsbury. C. Kingsbury Date Submitted 9/5/11 Creative Foods Date absent 9/2/11 Lab missed: Brownies Recipe: Dark Chocolate Raspberry.
The cookies. ingredients for cookies 250 g butter g chocolate chips - 2 eggs g flour g of sugar g of brown sugar - 1 teaspoon.
OTTW Project Afraa Haque
Working with Java.
Revision Lecture
Computer Engineering 1nd Semester
C-Character Set Dept. of Computer Applications Prof. Harpreet Kaur
Unit 1: Introduction Lesson 1: PArts of a java program
First Python Program Professor Hugh C. Lauer CS-1004 — Introduction to Programming for Non-Majors (Slides include materials from Python Programming: An.
Let’s make Cookies!.
Algorithms vs. Programming
Tutorial 10: Programming with javascript
Primitive Types and Expressions
CMPT 120 Lecture 3 - Introduction to Computing Science – Programming language, Variables, Strings, Lists and Modules.
Instructor: Alexander Stoytchev
1.02 C Work Plans The secret for success! 1.02C Work Plans.
Algorithms vs. Programming
CS313T Advanced Programming language
Presentation transcript:

Computer Engineering 2 nd Semester Dr. Rabie A. Ramadan 2

2 Class Rules It will be a tough class, however, Enjoy what you do Do not worry about the exam as long as : You are reading and understanding the materials in the book I do not care how are you going to learn programming language The section will help you to do so but it is your responsibility to dig in the subject

3 Class Rules Attendance is a must Assignments must be delivered on time  no exception whatever the reason. The source code must be submitted with any programming assignment

Class Rules You can bring anything to drink but NO FOOD PLEASE When you come in, DO NOT knock on the door When you want to leave, Do NOT tell me  Just leave but you will counted as absent

5 Class Information Text Books Rabie Ramadan, Computer Engineering for Developers, 2011 Other sources Website

Before We Start …. 25 th of January 25 th of January Be Smart

Programming Language programming language is a tool used by a programmer to give the computer very specific instructions in order to serve some purpose for the user. A program is like a recipe. mix eggs, butter, sugar in a bowl add flour, baking soda, and flavorings mix until creamy add chocolate chips bake in the oven. Can you make chocolate cake out of this recipe ? Can you make chocolate cake out of this recipe ?

Do we need more details ? Yes place two eggs in a bowl add 1.5 c. butter to the eggs.. bake cookies for minutes at 375 degrees or until brown Is there anything missing ?Is there anything missing ? Well, it does not say how to put the eggs shelled or not.Well, it does not say how to put the eggs shelled or not. It adds some illustrationsIt adds some illustrations

Computer Programming Computer does not understand You need to tell it every details Therefore, we have languages to tell the computer what to do.

Is it only one language ? No, There are many languages Each one is designed with a purpose in mind

What is behind the high level language? Computer does not understand the high level language The program must be translated to the machine language Compiler / Interpreter Source Code Compiler / Interpreter Object Code

Compiler/ Interpreter

Why C++? C++ allows expression of abstract ideas C++ is a third generation language that allows a programmer to express their ideas at a high level as compared to assembly languages. C++ still allows a programmer to keep low-level control it has some of the "feel" of an assembly language.

Why C++? C++ has national standards (ANSI) Code written in C++ that conforms to the national standards can be easily integrated with preexisting code. C++ is reusable and object-oriented C++ is widely used and taught

Structure of a program

Line separation

Multiple instructions

Type of Structuring

Comments

C++’ Names The name of a variable: Starts with an underscore “_” or a letter, lowercase or uppercase, such as a letter from a to z or from A to Z. Examples are Name, gender, _Students, pRice Can include letters, underscore, or digits. Examples keyboard, Master, Junction, Player1, total_grade, _Score_Side1

C++’ Names Cannot include special characters such as !, %, ], or $ Cannot include an empty space Cannot be any of the reserved words Should not be longer than 32 characters (although allowed)

Reserved keywords

Data Types A Byte

Data Types Character

Data Types \

Reading Assignment 26 Please Read: Program Structure, Variables, Data Types, and Constants Operators and Operands Basic Input/Output