Pemrograman VisualMinggu …4… Page 1 MINGGU Ke Empat Pemrograman Visual Pokok Bahasan: Control Statement I Tujuan Instruksional Khusus: Mahasiswa dapat.

Slides:



Advertisements
Similar presentations
Control Flow Statements: Repetition/Looping
Advertisements

Decisions If statements in C.
Pemrograman VisualMinggu …6… Page 1 MINGGU Ke Enam Pemrograman Visual Pokok Bahasan: Module, Class & Methods Tujuan Instruksional Khusus: Mahasiswa dapat.
Pemrograman VisualMinggu …2… Page 1 MINGGU Ke Dua Pemrograman Visual Pokok Bahasan: Console Application Tujuan Instruksional Khusus: Mahasiswa dapat menjelaskan.
3. S/E with Control Structures 3.1 Relational Operators and Expressions 3.2 If and if-else Statements 3.3 The Type Double 3.4 Program Design with the While.
Pemrograman VisualMinggu …5… Page 1 MINGGU Ke Lima Pemrograman Visual Pokok Bahasan: Control Statement II Tujuan Instruksional Khusus: Mahasiswa dapat.
Pemrograman VisualMinggu …7… Page 1 MINGGU Ke Tujuh Pemrograman Visual Pokok Bahasan: Arrays Tujuan Instruksional Khusus: Mahasiswa dapat menjelaskan.
Pemrograman VisualMinggu …3… Page 1 MINGGU Ke Tiga Pemrograman Visual Pokok Bahasan: Class, Objects, Methods and Instance Variable Tujuan Instruksional.
Pemrograman VisualMinggu …12… Page 1 MINGGU Ke Duabelas Pemrograman Visual Pokok Bahasan: File and Stream Tujuan Instruksional Khusus: Mahasiswa dapat.
Pemrograman VisualMinggu …8… Page 1 MINGGU Ke Delapan Pemrograman Visual Pokok Bahasan: Graphical User Interface Tujuan Instruksional Khusus: Mahasiswa.
Matakuliah : G1184 Travel Management Tahun : 2005 Pertemuan ke-: 7-8 Chapter 2 (Power Point 7.1) Pokok Bahasan: Intermediaries Materi:  The Nature of.
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall
Announcements Quiz 1 Posted on blackboard Handed Back (and Gone Over)Next Monday “Only a Quiz” Counts 5% of Final Grade Exam 1 Counts 10%
Fall 2007ACS-1805 Ron McFadyen1 Chapter 7 Repetition.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic JavaScript: Control Structure.
CHAPTER 2 ANALYSIS OF ALGORITHMS Part 2. 2 Running time of Basic operations Basic operations do not depend on the size of input, their running time is.
1 Pertemuan 06 Repetition Matakuliah: D0524 / Algoritma dan Pemrograman Komputer Tahun: 2005 Versi:
Examples from “c++ how to program” book. SELECTIONS WITH IF-ELSE Example: if ( grade >= 60) cout = 60) cout
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 8 - JavaScript: Control Structures I Outline 8.1 Introduction 8.2 Algorithms 8.3 Pseudocode 8.4.
Pemrograman VisualMinggu …12… Page 1 MINGGU Ke Duabelas Pemrograman Visual Pokok Bahasan: Exception Handling Tujuan Instruksional Khusus: Mahasiswa dapat.
Control Structures Session 03 Mata kuliah: M0874 – Programming II Tahun: 2010.
Pemrograman VisualMinggu …10… Page 1 MINGGU Ke Sepuluh Pemrograman Visual Pokok Bahasan: ADO.NET II Tujuan Instruksional Khusus: Mahasiswa dapat menjelaskan.
 2003 Prentice Hall, Inc. All rights reserved.  2004 Prentice Hall, Inc. All rights reserved. Chapter 8 - JavaScript: Control Statements I Outline 8.1.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Structural Program Development: If, If-Else Outline.
CSCI 3328 Object Oriented Programming in C# Chapter 5: C# Control Statement – Part II UTPA – Fall
Logic Disjunction A disjunction is a compound statement formed by combining two simple sentences using the word “OR”. A disjunction is true when at.
 2002 Prentice Hall. All rights reserved. 1 Chapter 4: Control Structures: Part 1 Outline 4.1 Introduction 4.2 Algorithms 4.3 Pseudocode 4.4 Control Structures.
CHAPTER 4: Selection Control Structure. Objectives  Use the relational comparison operators  Learn about AND logic  Learn about OR logic  Make selections.
Chapter 04 Control Statements: Part II. OBJECTIVES In this part you will learn: if…else Double-Selection Statement. while Repetition Statement.
 2003 Prentice Hall, Inc. All rights reserved. 1 Chapter 4 - Control Structures: Part 1.
1 Chap 4. Data Should know Declare & Initialize variables Declare constants Assignment Operators Increment and Decrement Operators Precedence of Operators.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 8 - JavaScript: Control Statements I Outline 8.1 Introduction 8.2 Algorithms 8.3 Pseudocode 8.4.
Lecture 2 Control Structure. Relational Operators -- From the previous lecture Relational Operator Meaning == is equal to < is less than > is greater.
Visual Basic 2010 How to Program © by Pearson Education, Inc. All Rights Reserved.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 8 - JavaScript: Control Structures I Outline 8.1 Introduction 8.2 Algorithms 8.3 Pseudocode 8.4.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall. Chapter 5 Ratio, Proportion, and Measurement.
© 2010 Pearson Prentice Hall. All rights reserved. CHAPTER 3 Logic.
Visual Basic 2010 How to Program © by Pearson Education, Inc. All Rights Reserved.1.
Chapter 15 JavaScript: Part III The Web Warrior Guide to Web Design Technologies.
Visual Basic 2010 How to Program © by Pearson Education, Inc. All Rights Reserved.1.
Dr. Qusai Abuein1 Internet & WWW How to program Chap.(7) JavaScript: Control Statements I.
 2003 Prentice Hall, Inc. All rights reserved. 1 Will not cover 4.14, Thinking About Objects: Identifying Class Attributes Chapter 4 - Control Structures.
CSCI/CMPE 4341 Topic: Programming in Python Chapter 4: Control Structures (Part 2) Xiang Lian The University of Texas – Pan American Edinburg, TX
CSCI 3328 Object Oriented Programming in C# Chapter 4: C# Control Statement – Part I – Exercises 1 Xiang Lian The University of Texas Rio Grande Valley.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Chapter 3 - Structured Program Development Outline.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Flow Control (while) Outline 3.7The While Repetition.
1 Chapter 4 - Control Statements: Part 1 Outline 4.1 Introduction 4.4 Control Structures 4.5 if Selection Structure 4.6 if/else Selection Structure 4.7.
Matakuliah : G1184 Travel Management Tahun
Announcements Quiz 1 Posted on blackboard
DASAR – DASAR PEMASARAN
Chapter 8 - JavaScript: Control Statements I
Chapter 4: Control Structures
Structured Program Development
Bools & Ifs.
Control Structures in VB
The University of Texas Rio Grande Valley
Alice in Action with Java
The University of Texas – Pan American
محاضرة 1: مقدمة للمسـاق و مراجعـة للأساسيـات
CSCI 3328 Object Oriented Programming in C# Chapter 4: C# Control Statement – Part I – Exercises UTPA – Fall 2012 This set of slides is revised from lecture.
The University of Texas – Pan American
Bools & Ifs.
3 Control Statements:.
Three Special Structures – Case, Do While, and Do Until
Visual Basic – Decision Statements
DASAR-DASAR PEMASARAN
Control Structures in VB
Chapter 4: Boolean Expressions, Making Decisions, and Disk Input and Output Prof. Salim Arfaoui.
Flow of Control Flow of control is the order in which a program performs actions. Up to this point, the order has been sequential. A branching statement.
Presentation transcript:

Pemrograman VisualMinggu …4… Page 1 MINGGU Ke Empat Pemrograman Visual Pokok Bahasan: Control Statement I Tujuan Instruksional Khusus: Mahasiswa dapat menjelaskan dan mengaplikasikan konsep control statement I pada Visual Basic 2008 Referensi: Deitel Deitel, Visual Basic 2008 (2009), How to Program, Prentice Hall. Chapter 5

Pemrograman VisualMinggu …4… Page 2 Agenda If … Then Selection Statement If … Then … Else Selection Statement While Repetition Statement Do While … Loop Repetition Statement Do Until … Loop Repetition Statement Compound Assignment Operators Nested Control Statement Nested Repetition Statement

Pemrograman VisualMinggu …4… Page 3 If/Then Selection Structure grade>=60 Console.writeLine(“Passed”) If studentGrade>=60 Then Console.WriteLine(“Passed”) End If True False

Pemrograman VisualMinggu …4… Page 4 If/Then/Else Selection Structure grade>=60 Console.writeLine(“P assed”) If studentGrade>=60 Then Console.WriteLine(“Passed”) Else Console.WriteLine(“Failed”) End If Console.writeLine(“ Failed) TrueFalse

Pemrograman VisualMinggu …4… Page 5 While Repetition Structure Product<=1000 Product=Product*2 Dim Product as Integer=2 While Product<=1000 Console.Write(“{0}”, Product) Product=Product*2 End While True False

Pemrograman VisualMinggu …4… Page 6 Do While/Loop Repetition Structure Product<=1000 Product=Product*2 Dim Product as Integer=2 Do While Product<=1000 Console.Write(“{0}”, Product) Product=Product*2 End While True False

Pemrograman VisualMinggu …4… Page 7 Do Until/Loop Repetition Structure Product > 1000 Product=Product*2 Dim Product as Integer=2 Do Until Product > 1000 Console.Write(“{0}”, Product) Product=Product*2 End While False True

Pemrograman VisualMinggu …4… Page 8 Demo While Statement

Pemrograman VisualMinggu …4… Page 9 Demo Do While

Pemrograman VisualMinggu …4… Page 10 Demo Do Until

Pemrograman VisualMinggu …4… Page 11 Compound Assignment Operator Visual Basic provides the compound assignment operator for abbreviating assignment statements eq. +=, -=, *=, /=, \=, ^= and &=

Pemrograman VisualMinggu …4… Page 12 Nested Control Statement

Pemrograman VisualMinggu …4… Page 13 Test Program for Class Analysis

Pemrograman VisualMinggu …4… Page 14 Nested Repetition Statement

Pemrograman VisualMinggu …4… Page 15 Questions & Answers

Pemrograman VisualMinggu …4… Page 16 Thank You