An Introduction to Programming with C++1 An Introduction to Control Structures Tutorial 1.

Slides:



Advertisements
Similar presentations
Packaging a Presentation on a CD, using PowerPoint 2003 Multimedia Services at The Citadel Updated
Advertisements

Burning a Video or File to a CD 1.Double click on the Nero- Burning Rom icon on your desktop or go to “Start” > “Programs” > “ahead Nero” > “Nero Burning.
Microsoft Windows Vista Chapter 5 Personalize Your Work Environment.
COMPREHENSIVE Windows Tutorial 3 Personalizing Your Windows Environment.
This tutorial will show you, step by step, how to upload a file to Moodle.
Microsoft Office 2010 Access Chapter 1 Creating and Using a Database.
SIS Software Install Instructions Cookbook Multibeam Advisory Committee March 21, 2012 SIS Multibeam Advisory Committee – March 21, 2012.
Microsoft Windows Vista Chapter 6 Customizing Your Computer Using the Control Panel.
Defining Control Structures
Office 2003 Introductory Concepts and Techniques, 2 nd Edition M i c r o s o f t Windows XP Project Introduction to Microsoft Windows XP and Office 2003.
PowerPoint 2002 Linking Video in Presentation and Delivering Presentation on the Road.
Putting Your PowerPoint into WebCT. To put your PowerPoint online Create an appropriate folder Upload the PowerPoint file to that folder Create a link.
Citrix Metaframe Solution Software Installation
Installing SAS 9.3 TS1M1 Raymond R. Balise Health Research and Policy.
Operating Systems Day 4. Cascade Windows 1.Open one or more windows 2.Right click on task bar 3.Click cascade windows menu item Tile Windows 1.Open one.
With experience you can develop the skills needed to clean and maintain your computer, and diagnose and resolve basic problems that may occur when using.
Ch 9 Managing Active Directory User Accounts. Objectives Create Organizational Unit Creating User Accounts in Active Directory Disabling, Enabling, and.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Outlook Project 2 Scheduling Management and Instant Messaging Using Outlook.
Office XP Introductory Concepts and Techniques Windows XP Edition M i c r o s o f t Windows XP Project An Introduction to Windows XP Professional and Office.
Copyright 2007, EMC Paradigm Publishing Inc. WINDOWS XP BACKNEXTEND 1-1 LINKS TO OBJECTIVES Starting Windows Using the Taskbar, opening & switching programs.
Dzongkha Unicode Agenda System Requirements: Hardware & Software
Entire contents of this document copyright Serendipity Consulting Pty Ltd A.C.N and Systems Unlimited 1 Installation 2. Create Shortcut Icon.
Project 3 File, Document, Folder Management, Windows XP Explorer Windows XP Service Pack 2 Edition Comprehensive Concepts and Techniques.
Chapter 1 Databases and Database Objects: An Introduction
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 4 1 Microsoft Office FrontPage 2003 Tutorial 4 – Using Shared Borders and Themes.
TO YOUR H:DRIVE PLD8865(\\ins-fs1\home)(H:) How to Save Lesson 2 – November 13, 2013 – Michelle Lowe.
Microsoft Windows 7 Essential Introduction to Windows 7.
Microsoft Windows 7 Part 1 Fundamentals of Using Windows 7.
Installing and Using Active Directory Written by Marc Zacharko.
Alice 2.0 Introductory Concepts and Techniques Project 1 Exploring Alice and Object-Oriented Programming.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t PowerPoint Collaboration Feature Delivering Presentations to and Collaborating with Workgroups.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 6 Switchboards, PivotTables, and PivotCharts.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 5 Enhancing Forms with OLE Fields, Hyperlinks, and Subforms.
© Paradigm Publishing Inc. MICROSOFT WINDOWS XP MAINTAINING FILES AND CUSTOMIZING WINDOWS Section 2.
Happy Monday!!!  Open the Agenda  Copy it in your Agenda form.  Wait for further instructions.
Project Deployment IT [211 CAP] How to convert your project to a full application.
Macromedia Dreamweaver 8-- Illustrated Introductory 1 Macromedia Dreamweaver 8 Unit B Creating a Web Site.
RIGHT Mouse Button Formatting Cut Copy Paste Save LEFT Mouse Button MAIN BUTTON Single clicks Double clicks Drag Highlight.
Creating a backup file Downloading a backup file Uploading a backup file Resetting or restoring your course from a backup file.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 8 Debugging, Creating Executable Files, and Distributing a Windows Application.
Introduction to Web Services. Examples Using a Web Service Creating a new Web Service.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 7 – Creating and Using Templates in a Web.
Project 2 Working on the Windows XP Desktop Windows XP Service Pack 2 Edition Comprehensive Concepts and Techniques.
Chapter 1: An Introduction to Control Structures Introduction to Programming with C++ Fourth Edition.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 2 I Am Not a Control Freak!
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
How to:-. “MATERIALS” tab is the default selection when you login to this product ADD Materials into a Manifest Store / Folder ** From MATERIALS Tab **
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
Installing SAS 1. Requirements If you do not have an old copy of SAS installed on your computer, go directly to Slide 6. Make sure you have uninstalled.
File Management In this exercise the A drive is used as an example. If you are using another storage device, substitute that drive letter (D, E, F…) where.
Installing Drivers on HP Plotter Step By Step Instructions by Plotter4u.
Creating and Editing a Web Page
XP New Perspectives on Microsoft Windows XP Tutorial 2 1 Microsoft Windows XP Working with Files Tutorial 2.
Create Windows Setup and Deployment Projects Windows Development Fundamentals LESSON 5.2.
“MATERIALS” tab is the default selection when you login to this product ADD Materials Into a Manifest Store / Folder ** From MATERIALS Tab **
Teach Yourself Windows 95 Module 6: Networking and Working with Multiple Computers.
Creating and Editing a Web Page Using Inline Styles
Teach Yourself Windows 98 Module 3: Using Multimedia Features and Optimizing Your Computer.
1 /17 Installing and Configuring TaxWise © 2006, Universal Tax Systems, Inc. All Rights Reserved. Installing and Configuring TaxWise Objectives –In this.
QCAMPform SETUP 1. The following window will appear with the execution of the “setup.exe” file. (Note: “setup.exe” file is extracted from the “cf2dsetup.zip”
XP New Perspectives on Creating Web Pages With Word Tutorial 1 1 Creating Web Pages With Word Tutorial 1.
Troubleshooting Dashhawk Issues. Here's what you have to do to have the DashHawk run properly Go to the ACTUAL PROGRAM file (not the short cut)
How to Create and Use a VericrYPT CONTAINER
Windows Tutorial 3 Personalizing Your Windows Environment
An Introduction to Computers and Visual Basic
An Introduction to Control Structures
An Introduction to Computers and Visual Basic
An Introduction to Control Structures
MAINTAINING FILES AND CUSTOMIZING WINDOWS Section 2
Presentation transcript:

An Introduction to Programming with C++1 An Introduction to Control Structures Tutorial 1

An Introduction to Programming with C++2 Objectives Explain the sequence, selection, and repetition structures Write simple algorithms using the sequence, selection, and repetition structures

An Introduction to Programming with C++3 Concept Lesson

An Introduction to Programming with C++4 Defining Control Structures All computer programs, no matter how simple or how complex, are written using one or more of three basic structures: –Sequence –Selection –Repetition

An Introduction to Programming with C++5 The Sequence Structure Directs the computer to process the program instructions, one after another, in the order listed in the program Rob, the mechanical man: –Has limited instruction set (walk, turn, and sit)

An Introduction to Programming with C++6 The Sequence Structure

An Introduction to Programming with C++7 The Repetition Structure Makes a decision, then takes appropriate action based on that decision –Example: shampoo bottles typically include the repetition structure in the directions for washing your hair

An Introduction to Programming with C++8 The Repetition Structure

An Introduction to Programming with C++9 The Repetition Structure

An Introduction to Programming with C++10 Rob’s New Instruction Set

An Introduction to Programming with C++11 The Selection Structure Directs the computer to repeat one or more instructions until some condition is met, at which time the computer should stop repeating the instructions –Example: Selection structure is used every time you drive your car and approach an intersection

An Introduction to Programming with C++12 The Selection Structure

An Introduction to Programming with C++13 Application Lesson

An Introduction to Programming with C++14 Programming Rob the Mechanical Man To install the Rob the Mechanical Man files on your computer’s hard disk: 1.Click the Start button on the taskbar, and then click Run to open the Run dialog box 2.Click the Browse button to open the Browse dialog box. Open the Rob Installation Files folder, which is located in the CppNet folder on your computer’s hard disk

An Introduction to Programming with C Click Setup (Setup.exe) in the list of filenames, and then click the Open button to return to the Run dialog box 4.Click the OK button in the Run dialog box. A message box appears and indicates that seven files are being copied to your computer’s hard disk 5.Read the message in the dialog box. If necessary, close any open files, then click the OK button in the dialog box Programming Rob the Mechanical Man

An Introduction to Programming with C++16 Installation Message

An Introduction to Programming with C++17 Programming Rob the Mechanical Man (Cont.) As the dialog box indicates, the files will be installed in the Program Files\Rob directory (folder) on your computer’s hard disk. You can use the Change Directory button to install the files in another directory 6.If desired, change the default installation directory to one of your choosing

An Introduction to Programming with C Click the Click here to begin setup button in the dialog box. The Rob the Mechanical Man – Choose Program Group dialog box opens and shows Rob the Mechanical Man selected in the list of groups 8.Click the Continue button. When the message “Rob the Mechanical Man Setup was completed successfully” appears, click the OK button Programming Rob the Mechanical Man (Cont.)

An Introduction to Programming with C++19 Rob and the Flower Bed

An Introduction to Programming with C++20 Running the Application To run the application that you will use to create Rob’s algorithm: 1.Click the Start button on the taskbar, and then point to All Programs on the Start menu 2.Point to Rob the Mechanical Man on the All Programs menu, and then click Application Lesson. The Rob the Mechanical Man application shown in Figure 1-13 appears on your screen

An Introduction to Programming with C++21 Rob the Mechanical Man Application

An Introduction to Programming with C++22 Initial Algorithm for Rob

An Introduction to Programming with C++23 Initial Algorithm for Rob (Cont.)

An Introduction to Programming with C++24 Final Algorithm for Rob

An Introduction to Programming with C++25 Entering the Algorithm To enter the algorithm shown in Figure 1-15, and then verify that it works correctly: 1.Scroll down the Instruction Set list box until you see the repeat 6 times: instruction. Double-click repeat 6 times: in the Instruction Set list box 1.Double-click if the flower is red, then do this: (inside loop) to copy this instruction to the Algorithm list box 1.Double-click pick up the flower with your right hand (inside loop|selection) to copy this instruction to the Algorithm list box 1.Double-click otherwise, do this: (inside loop), then double- click pick up the flower with your left hand (inside loop|selection)

An Introduction to Programming with C++26 Entering the Algorithm (Cont.) 1.Scroll down the Instruction Set list box, if necessary, until you locate the walk (inside loop|selection) instruction, then double-click walk (inside loop|selection) 1.Double-click walk (outside loop|selection) 1.Click the Verify Algorithm button. The Verify message box opens and displays the “Great job!” message. Click the OK button to close the message box 1.Click the Exit button to close the application

An Introduction to Programming with C++27 First Instruction

An Introduction to Programming with C++28 Completed Algorithm

An Introduction to Programming with C++29 Uninstalling Rob the Mechanical Man 1.Click the Start button, and then click Control Panel on the Start menu 2.Click Add or Remove Programs to open the Add or Remove Programs window 3.Scroll down the list of currently installed programs, if necessary, then click Rob the Mechanical Man in the list. Click the Change/Remove button. When you are asked if you are sure you want to remove Rob the Mechanical Man and all of its components, click the Yes button 4.When the “Program installation removed” message appears, click the OK button 5.Click the Close button to close the Add or Remove Programs window, then close the Control Panel window

An Introduction to Programming with C++30 Summary Basic components of all algorithmic problem solutions: –Sequence Process instructions one after another –Selection Take an action based on a decision –Repetition Repeat a set of instructions until a condition is met Write simple algorithms using the sequence, selection, and repetition structures