Introduction ELEC 206 Computer Applications for Electrical Engineers Dr. Ron Hayne.

Slides:



Advertisements
Similar presentations
Etter/Ingber Engineering Problem Solving with C Fundamental Concepts Chapter 1 Engineering Problem Solving.
Advertisements

ELEC 206 Computer Applications for Electrical Engineers Dr. Ron Hayne
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Lecture 1: Overview of Computers & Programming
Chapter 1: An Overview of Computers and Programming Languages
Introduction Kingdom of Saudi Arabia Shaqra University
INTRODUCTION T.Najah Al_Subaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University College of Computer Since and Information System CS240.
COSC 120 Computer Programming
Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
Ch. 1 Engineering Problem Solving. Contents I.Engineering in the Twenty-First Century II.Computing Systems: Hardware and Software III.An Engineering Problem-Solving.
1 Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
Wednesday, 9/4/02, Slide #1 1 CS 106 Intro to CS 1 Wednesday, 9/4/02  Today: Introduction, course information, and basic ideas of computers and programming.
CMPT 120 Introduction to Computer Science and Programming I Chris Schmidt.
CS211 Data Structures Sami Rollins Fall 2004.
1 Introduction to computers Overview l · Grading Policy »Cheating Rules (serious concern) »Examinations and Fixation of Timings »Quizzes »Homework Assignments.
Chapter 1: An Overview of Computers and Programming Languages
C++ Programming: Program Design Including Data Structures, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ Programming:
CS 101 Problem Solving and Structured Programming in C Sami Rollins Spring 2003.
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages Updated by: Dr\Ali-Alnajjar.
Programming is instructing a computer to perform a task for you with the help of a programming language.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Chapter Introduction to Computers and Programming 1.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Introduction COMP104: Fundamentals and Methodology.
Chapter 1 Engineering Problem Solving 1. Hardware and Software 2 A computer is a machine designed to perform operations specified with a set of instructions.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
UniMAP Sem1-08/09EKT120: Computer Programming1 Week 1 – Lecture 1.
Chapter 1 Introduction to Computers and C++ Programming Goals: To introduce the fundamental hardware and software components of a computer system To introduce.
Chapter 1: An Overview of Computers and Programming Languages
1 CISC181 Introduction to Computer Science Dr. McCoy Lecture 1 February 8, 2005.
INTRODUCTION Kingdom of Saudi Arabia Princess Nora bint Abdul Rahman University College of Computer Since and Information System CS240.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
EG280 Computer Science for Engineers Fundamental Concepts Chapter 1.
1 Turgay Korkmaz Office: NPB Phone: (210) Fax: (210) web:
MATLAB Environment ELEC 206 Computer Applications for Electrical Engineers Dr. Ron Hayne.
1 C++ Programming Basics Chapter 1 Lecture CSIS 10A.
1 COMS 261 Computer Science I Title: C++ Fundamentals Date: September 05, 2005 Lecture Number: 4.
12/4/20151 Introduction To Computer Science Bina Ramamurthy.
Computer organization Practical 1. Administrative Issues The course requirements are: –To be nice and open minded –To pass the exam (there is a boolean.
Hardware and Software Programming. COMP104 Lecture 2 / Slide 2 Hardware and Software l Why should we bother with hardware, while we are having a programming.
Computing Systems & Programming ECE Fundamental Concepts Chapter 1 Engineering Problem Solving.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Data Files ELEC 206 Computer Applications for Electrical Engineers Dr. Ron Hayne.
CHAPTER 1: INTRODUCTION C++ Programming. CS 241 Course URL: Text Book: C++ How to Program, DETITEL & DEITEL, eighth Edition.
Introduction ELEC 330 Digital Systems Engineering Dr. Ron Hayne.
UniMAP Sem2-10/11 DKT121: Fundamental of Computer Programming1 Introduction to C – Part 1.
Chapter 1 An Overview of Computers and Programming Languages.
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Software Engineering Algorithms, Compilers, & Lifecycle.
By Kundang K Juman Hardware & Software. COMP102 Prog. Fundamentals I: Software / Slide 2 l Four components of a computer system: n CPU - central processing.
CHAPTER 1 OVERVIEW OF COMPUTER AND PROGRAMMING 1.1 Electronic Computer Then and Now 1.2 Computer Hardware 1.3 Computer Software 1.4 The Software Development.
BIL 104E Introduction to Scientific and Engineering Computing Lecture 1.
Chapter 1: Introduction to Computers and Programming
Engineering Problem Solving With C An Object Based Approach
Chapter 1: Introduction to computers and C++ Programming
Chapter 1: An Overview of Computers and Programming Languages
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Chapter 1: An Overview of Computers and Programming Languages
C++ Programming: From Problem Analysis to Program Design
Computer Science I CSC 135.
Computer Electronic device Accepts data - input
Chapter 1: An Overview of Computers and Programming Languages
Hardware & Software Programming. COMP102 Prog. Fundamentals I: Software / Slide 2 l Four components of a computer system: n CPU - central processing unit.
Computer Electronic device Accepts data - input
ICS103 Programming in C 1: Overview of Computers And Programming
Presentation transcript:

Introduction ELEC 206 Computer Applications for Electrical Engineers Dr. Ron Hayne

206_C12 Admin  Course materials available online  Students are encouraged to print lecture slides in advance and use them to take notes in class

206_C13 Course Outline  Intro Ch 1  C++ Simple C++Ch 2 Control StructuresCh 3 Data FilesCh 4 Modular ProgrammingCh 5 ArraysCh 6 MatricesCh 7 Test #1 Test #2

206_C14 Course Outline  MATLAB IntroCh 1 MATLAB EnvironmentCh 2 Predefined FunctionsCh 3 PlottingCh 4 ProgrammingCh 5 Control StructuresCh 5 Matrix ComputationsCh 6 Test #3 Test #4

206_C15 Grading  Projects, Homework, Quizzes25%  Tests (4)50%  Final Exam25%  All individual work!

206_C16 Course Software  C++ Dev-C++ Bloodshed Software Free  MATLAB MATLAB & Simulink Student Version The MathWorks

206_C17 Questions?

206_C18 Computing Systems  Computer Machine designed to perform operations specified by a program  Hardware Computer Equipment Keyboard, mouse, hard disk, printer,...  Software Programs that describe the steps for the computer to perform

206_C19 Computer Hardware Internal Memory External Memory Processor ALU CPU OutputInput

206_C110 Computer Software  Operating System Interface between user and hardware  Application Software Word Processors, Spreadsheets, Databases,... Computer-aided Design (CAD) Mathematical Computation Tools (MATLAB)  Computer Languages Machine Language Assembly Language High-level Languages (C++)

206_C111 Program Execution  Compiler Converts source program to object program  Linker Converts object program to executable program Compile Link/ Load Execute (run) Input data Program output Machine language program C++ program

206_C112 Problem-Solving  An Engineering Problem-Solving Methodology Problem Statement Input/Output Description Hand Example Algorithm Development Testing

206_C113 Example  Problem Statement Compute the straight-line distance between two points in a plane  Input/Output Description Point 1 (x1, y1) Point 2 (x2, y2) Distance (d)

206_C114 Example  Hand Example p1 = (1, 3) p2 = (4, 7)  Algorithm Development (outline) Give values to the two points Compute lengths of two sides of right triangle Compute distance between points (hypotenuse) Print distance between points

206_C115 C++ Program /* */ /* Program chapter1_1 */ /* */ /* This program computes the distance between */ /* two points */ #include using namespace std;

206_C116 C++ Program int main() { // Declare and initialize objects double x1(1), y1(3), x2(4), y2(7), side1, side2, distance; // Compute sides of right triangle side1 = x2 - x1; side2 = y2 - y1; distance = sqrt(side1 * side1 + side2 * side2);

206_C117 C++ Program // Print distance cout << "The distance between the two points is " << distance << endl; // Windows friendly exit system("PAUSE"); return 0; } /* */

206_C118 Testing

206_C119 End of Lecture  Administration  Introduction