ME 123 Computer Applications I Lecture 11: More on For loop 3/27/03

Slides:



Advertisements
Similar presentations
This presentation can be used as a teacher- led activity to practice a variety of methods and strategies for solving problems that compare fractions.
Advertisements

© Janice Regan, CMPT 128, Jan CMPT 128: Introduction to Computing Science for Engineering Students Control Structures Nested ifs, switch statements.
Lecture 4 More Examples of Karnaugh Map. Logic Reduction Using Karnaugh Map Create an Equivalent Karnaugh Map Each circle must be around a power of two.
Lecture 14 Go over midterm results Algorithms Efficiency More on prime numbers.
General Computer Science for Engineers CISC 106 Lecture 08 Dr. John Cavazos Computer and Information Sciences 2/27/2009.
General Computer Science for Engineers CISC 106 Lecture 07 James Atlas Computer and Information Sciences 9/18/2009.
General Computer Science for Engineers CISC 106 Lecture 05 Dr. John Cavazos Computer and Information Sciences 2/20/2009.
COMPE 111 Introduction to Computer Engineering Programming in Python Atılım University
Selection Programming EE 100. Outline introduction Relational and Logical Operators Flow Control Loops Update Processes.
ENG 1181 College of Engineering Engineering Education Innovation Center MAT – Conditional Statements Topics: 1.Conditional statements if-end if-else-end.
Lesson 6-3B Objective: Solve inequalities using more than one step…continued.
ENEE244-02xx Digital Logic Design Lecture 12. Announcements HW4 due today HW5 is up on course webpage. Due on 10/16. Recitation quiz on Monday, 10/13.
Ch 2.5 Variable on Both Sides Objective: To solve equations where one variable exists on both sides of the equation.
September 15, 2014 What are we doing today? Correct Pg. 26 #2 – 42 evens 1.6 – Combining Like Terms -Lecture and Vocabulary HW – 1.6 – Pg. 30 #3-45.
Ambiguous Law of Sines Compute b sin A, then compare to a No solution One Solution Two Solutions One Solution Compute side a to side b No solution One.
ITEC 109 Lecture 11 While loops. while loops Review Choices –1 st –2 nd to ?th –Last What happens if you only use ifs? Can you have just an else by itself?
General Computer Science for Engineers CISC 106 Lecture 2^4 Roger Craig Computer and Information Sciences 03/23/2009.
One Answer, No Answers, or an Infinite Number of Answers.
ME 123 Computer Applications I Lecture 16: More Matlab Programming: Secant Method, Review 4/4/03.
March 16, 2015 What are we doing today? Review One-Step Equations - HW – One-Step Equations Worksheet Due: End of Period Target To review one-step equations.
Materials Reminders. Get out your agenda if you see your name below. You need to come to my room tomorrow. Period 2Period 7.
Solving Equations with Variables on both sides
Solve for x. Do Now. Homework Solutions 1)c 2 – 26c – 56 = 0 (c – 28)(c + 2) = 0 {-2, 28} 2)d 2 – 5d = 0 d (d – 5) = 0 {0, 5} 3)v 2 – 7v = 0 v (v – 7)
PHY 107 – Programming For Science. Announcements no magic formulas exist  Need to learn concepts: no magic formulas exist  Single solution not useful;
Bell Work10/15/14 s olve and graph. 1. a + 4 > < x – v < < -13x.
Dr. Naveed Riaz Design and Analysis of Algorithms 1 1 Formal Methods in Software Engineering Lecture # 27.
ITEC 2600 Introduction to Analytical Programming
A-level Computing Programming challenge 1: Fizzbuzz
Unit 1/2 Estimation and Computation Students will know that…
7.3 Products and Factors of Polynomials
ECE 1304 Introduction to Electrical and Computer Engineering
Chapter 4 MATLAB Programming
Algebra Bell-work 9/13/17 Turn in your HW! 1.) 7x – 6 = 2x + 9
Introduction to Programming for Mechanical Engineers (ME 319)
Simplify Expressions 34 A number divided by 3 is 7. n ÷ 3 = 7.
ME 123 Computer Applications I
Conditional Construct
EGR 141 Computer Problem Solving in Engineering and Computer Science
Control Structure Senior Lecturer
ME 123 Computer Applications I Lecture 24: Character Strings 4/18/03
Objective Solve equations in one variable that contain variable terms on both sides.
ME 123 Computer Applications I
Equations with Variables on Both Sides
Conditional Statements
Conditional Logic Presentation Name Course Name
First week of Homework.
ME 123 Computer Applications I Lecture 23: Advanced Graphics 4/17/03
Islamic University of Gaza
Recapitulation of Lecture 8
Objective Solve equations in one variable that contain variable terms on both sides.
are statements that are true for all numbers.
Linear Algebra Lecture 6.
Lecture 9 Superposition.
Algebra 1 09/21/16 EQ: How do I solve equations with variables on both sides? HW: Due Friday pg. 95 # 1-33 all Bring textbooks tomorrow Quiz on Friday.
Problem solving.
Millennium High School Agenda Calendar
Solve multi step equations and inequalities.
CSCE 206 Lab Structured Programming in C
ME 123 Computer Applications I Lecture 25: MATLAB Overview 4/28/03
Lecture 9 Superposition.
Recapitulation of Lecture 11
Recapitulation of Lecture 5
ME 123 Computer Applications I
Hossain Shahriar CISC 101: Fall 2011 Hossain Shahriar
Recapitulation of Lecture 13
ME 123 Computer Applications I Lecture 4: Vectors and Matrices 3/14/03
ME 123 Computer Applications I Lecture 8: System of Equations 3/21/03
Recapitulation of Lecture 12
ME 123 Computer Applications I Lecture 5: Input and Output 3/17/03
ME 123 Computer Applications I Lecture 7: Basic Functions 3/20/03
Presentation transcript:

ME 123 Computer Applications I Lecture 11: More on For loop 3/27/03

ME 123 Computer Applications I Reminder Program 1 due tomorrow before class Lecture 11 ME 123 Computer Applications I

Recapitulation of Lecture 10 In the last lecture, we learned the for loop structure combination of for loop, if statements and function programs can solve a large variety of engineering problems Make use of the else option to reduce you typing and, more importantly, chances of making mistake Always end an if statement by an end statement Difference between elseif and else commands if Condition1 is true perform Operation1 elseif Condition2 is true perform Operation2 else perform operation3 end Lecture 11 ME 123 Computer Applications I

ME 123 Computer Applications I Road Map of Lecture 11 Solutions to HW 3-2 More practice problems on using the for loop Partial sum Prime number finder Lecture 11 ME 123 Computer Applications I