EMT 2390L Lecture 9 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts.

Slides:



Advertisements
Similar presentations
Programming for Beginners Martin Nelson Elizabeth FitzGerald Lecture 3: Flow Control I: For Loops.
Advertisements

CS 101 Introductory Programming - Lecture 7: Loops In C & Good Coding Practices Presenter: Ankur Chattopadhyay.
String and Lists Dr. Benito Mendoza. 2 Outline What is a string String operations Traversing strings String slices What is a list Traversing a list List.
EMT 2390L Lecture 4 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts.
1 Cankaya University Electronics and Communication Engineering Department ECE 425 Microprocessor I Course Outline Instructor: Assist. Prof. Dr. Orhan Gazi.
COMP102 – Programming Fundamentals I LA2B (Mon 5-7pm) LA2E (Fri 3-5pm) LA2F (Fri 5-7pm) TA: Jackie Lo.
1 Session-13 CSIT 121 Spring 2006 Test-1 is on March 9 th ; Demo-5 due date extended to March 7 Test-1 is on March 9 th ; Demo-5 due date extended to.
Java™ How to Program, 9/e © Copyright by Pearson Education, Inc. All Rights Reserved.
1 CS1130 Spring 2011: David Gries & Walker White Transition to Object-Oriented Programming Assumes programming knowledge in a language like Matlab, C,
EMT 2390L Lecture 2 Dr. Reyes. Outline What is the Shell Basic commands Linux Filesystem System commands.
For more info visit at For more info visit at
EMT1111 Logic and Problem Solving Dr. José M. Reyes Álamo Lecture 1.
EMT1111 Logic and Problem Solving Dr. José M. Reyes Álamo Lecture 1.
EMT 2390L Lecture 6 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts.
Final Exam Review Closed book Closed laptop One sheet of notes permitted SE-0010 Dr. Mark L. Hornick 1.
Variables, operators, canvas, and multimedia Dr. José M. Reyes Álamo.
EMT 2390L Lecture 8 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts.
Introduction to Computing Dr. Nadeem A Khan. Lecture 10.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering –Intro to the Robotics –Introducing the IC –Discuss.
ICS102: Introduction To Computing King Fahd University of Petroleum & Minerals College of Computer Science & Engineering Information & Computer Science.
Loops, Databases, Procedures, and Lists Dr. José M. Reyes Álamo.
Introduction to CMPT 281. Outline Admin information Textbooks and resources Moodle site Grading Assignments Project.
EMT 2390L Lecture 5 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts.
Software Engineering Principles Dr. José M. Reyes Álamo.
COIT29222 Structured Programming 1 COIT29222-Structured Programming Lecture Week 02  Reading: Textbook(4 th Ed.), Chapter 2 Textbook (6 th Ed.), Chapters.
EMT 2390L Lecture 3 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts.
CE-2810 Dr. Mark L. Hornick 1 CE-2810 Embedded Systems Software 2 Dr. Mark L. Hornick web: people.msoe.edu/~hornick webCT: webct.msoe.edu.
Learn to subtract integers. Course Subtracting Integers.
Control Flow (Python) Dr. José M. Reyes Álamo. 2 Control Flow Sequential statements Decision statements Repetition statements (loops)
Variables, operators, canvas, and multimedia Dr. Reyes.
Introduction to Logic and Conditional Block Dr. José M. Reyes Álamo.
Programming using Visual Basic MIS 211 Course. Lecture Instructors Nora Almezeini Office # S 153 Zahya Alharbi
Control Structure  What is control Structure?  Types of Controls  Use the control structure in VBScript.  Example Summery.
String and Lists Dr. José M. Reyes Álamo. 2 Outline What is a string String operations Traversing strings String slices What is a list Traversing a list.
DEVRY BSOP 429 C OMPLETE W EEK 4 Check this A+ tutorial guideline at For more classes visit
BUS 642 Week 2 Exercises Complete the following exercises: In your text book Complete Making Research Decisions 1, page 50 In text answer Terms in Review,
BUS 642 Week 3 Exercises Complete the following exercises: In your text book Complete Making Research Decisions, 5, page 315. Complete Terms in Review,
BUS 642 Week 5 Exercises Complete the following exercises: In your text book Complete Making Research Decisions, 2, page 450 Complete From Concept to Practice,
Complete the BUS 642 Week 4 Exercises following exercises: In your text book Complete Terms in Review, 1-4, on page 204. On companion website Read Case.
BUS 660 Week 6 Assignment Research Paper To purchase this material link 660/BUS-660-Week-6-Assignment-Research- Paper.
RDG 350 Week 3 Individual Assignment Genre Presentation Choose and research a children’s literature genre. Construct a narrative paper (350-word minimum)
RDG 350 Week 4 Individual Assignment Caldecott and Newbery Award Book Summaries Research the Caldecott and Newbery awards. Choose and read one book honored.
DBM 265 Week 4 Individual Assignment DBMS Support and Security Paper Write a 750- to 1,000-word paper in which you discuss the support and security strategies.
Week-4-Learning-Team-Presentation-Website- Development Check this A+ tutorial guideline at 352/BSHS-352-Week-4-Learning-Team-
BCOM 275 Week 3 Learning Team Learning Team Debate Paper Outline Check this A+ tutorial guideline at
BIS 219 Week 4 Learning Team Where Did You Find that Book Check this A+ tutorial guideline at Learning-Team-Where-Did-You-Find-that-Book.
BIS 219 Week 5 Learning Team Where Did You Find that Book Check this A+ tutorial guideline at 219/BIS-219-Week-5-Learning-Team-Where-
BIS 303 Week 1 Individual Assignment Hospitality Information Technology Matrix Resource: Hospitality Information Technology Matrix Worksheet, located in.
BIS 303 Week 2 Learning Team Hospitality Information Systems Direct Reservations Resource: Hospitality Information Systems: Direct Reservations, located.
BSA 375 Week 3 DQ 1 Principles of User Interface Design presentation located on the student website Review the Principles of User Interface Design presentation.
BSHS 302 Week 2 Learning Team Write an outline together for the Learning Team assignment due in Week 3 Check this A+ tutorial guideline at
ACC 421 Week 2 Individual Assignment P1, P2, P3, P4 To purchase this material link Week-2-Individual-Assignment.
ACC 220 Week 4 Assignment Internal Cash Control Check this A+ tutorial guideline at 220/ACC-220-Week-4-Assignment-Internal-
ACC 220 Week 7 DQ 1 And DQ 2 Check this A+ tutorial guideline at 220/ACC-220-Week-7-DQ-1-And-DQ-2 ACC 220 Week 7 DQ.
Control Flow (Python) Dr. José M. Reyes Álamo.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Intro to the Robotics Introducing the IC Discuss.
3rd prep. – 2nd Term MOE Book Questions.
The Linux Command Line Chapter 29
The Linux Command Line Chapter 27
Computers & Programming Languages
GTECH 709 Course web site How to navigate the course BlackBoard site
The Linux Command Line Chapter 28
The Linux Command Line Chapter 25
Welcome to Physics 1D03 !.
CMSC201 Computer Science I for Majors Final Exam Information
EECE.2160 ECE Application Programming
EECE.2160 ECE Application Programming
EECE.2160 ECE Application Programming
EECE.2160 ECE Application Programming
The Linux Command Line Chapter 27
Presentation transcript:

EMT 2390L Lecture 9 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts

Outline Branching with if Branching with case while loop for loop

Branching with if if statement allows you to evaluate a condition and branch based on the results Syntax Example

Test and Expressions An if command will test an expression You may use test or enclose it with [ ] o text expression o [ expression ] When using [ expression ] you must leave a space after opening the first bracket and another space before closing the last bracket [expression] may give unexpected results (notice the lack of spacing)

String Expressions

Integer Expressions

Branching with case Case syntax Case example

while Loop Syntax Example

for Loop C-language Syntax Example

More info Visit the book author’s website at: o More details about decision and repetition statements Examples

Assignments Check the class OpenLab site for new Labs Check Blackboard for new Quizzes Work on your Project Study for the Second Exam (next week)