Welcome back to Software Development!

Slides:



Advertisements
Similar presentations
The Important Thing About By. The Important Thing About ******** The important thing about ***** is *****. It is true s/he can *****, *****, and *****.
Advertisements

Repetition Statements Perform the same task repeatedly Allow the computer to do the tedious, boring things.
Execute Blocks of Code Multiple Times Svetlin Nakov Telerik Corporation
Execute Blocks of Code Multiple Times Telerik Software Academy C# Fundamentals – Part 1.
While Loops. Challenge: ● Ask the user a simple math questions ● Continue asking the question until the user gets it right.
Example – calculating interest until the amount doubles using a for loop: will calculate up to 1000 years, if necessary if condition decides when to terminate.
16/27/2015 3:38 AM6/27/2015 3:38 AM6/27/2015 3:38 AMTesting and Debugging Testing The process of verifying the software performs to the specifications.
The If/Else Statement, Boolean Flags, and Menus Page 180
What is the out put #include using namespace std; void main() { int i; for(i=1;i
Generalized De Morgan’s Theorem Lecture L5.4 Section 5.1.
A revision guide for programming with python. 1.A program is a set of instructions that tells a computer what to do. 2.The role of a programmer is to.
This will let you see the game you are going to play on the inside. It will help you see what all goes into creating instance to that goes into setting.
Loop Exercise 1 Suppose that you want to take out a loan for $10,000, with 18% APR, and you're willing to make payments of $1,200/month. How long will.
Flow Charting. Goals Create Algorithms using Flow Charting procedures. Distinguish between Flow Charting and Pseudocode. Top-Down Design Bottom-up Design.
For Loops 1 Loops/Iteration Used to repeat an action Must have a STOP condition Three flavors - for, while, do/while Which loop to use? task with a specific.
How to Create a Videogame By: Connor McCann. Java Java is one of many programming languages Java is used to run web browsers and most PC video games I.
Cs 141 Exam 1 Review1 Game Show!. Cs 141 Exam 1 Review2  What type/types hold the following:  'a'  '\n'  '4'
Implementation of the Hangman Game in C++
The for Loop Syntax: for ( expression1 ; condition ; expression2 ) statement ; for ( expression1 ; condition ; expression2 ) { statement ; } Same as: expression1.
Announcements Exam 1 Tuesday July minutes 10 % of Total Grade Covers Everything through Lecture 05. –Includes Quiz 1 Topics (terminology, variables,
Scratch Programming Lesson 5 Programming logic. We are going to learn… Initialize the variables SET VS CHANGE Operator (Part II) Use a variable as a counter.
Conditional Loops CSIS 1595: Fundamentals of Programming and Problem Solving 1.
Week 4 : Function with parameters and return values.
Variables and Functions ROBOTC Software © 2012 Project Lead The Way, Inc.Principles of Engineering.
Random Numbers Random numbers are extremely useful: especially for games, and also for calculating experimental probabilities. Formula for generating random.
Controlling Program Flow with Looping Structures
Sahar Mosleh California State University San MarcosPage 1 One Dimensional Arrays: Structured data types.
GCSE Computing#BristolMet Session Objectives #23 MUST understand what is meant by the programming term iteration SHOULD describe methods of looping used.
PHY 107 – Programming For Science. Today’s Goal  How to use while & do / while loops in code  Know & explain when use of either loop preferable  Understand.
General Condition Loop A general condition loop just loops while some condition remains true. Note that the body of the loop should (eventually) change.
Chapter 6 Controlling Program Flow with Looping Structures.
ITE Hirakjyoti Nath Class 7
Windows Version 3.1
Windows 7 Ultimate
C++ Basic Syntax – Homework Exercises
Accumulators in Programming
- Enter Model Number - Ijsetup Canon
While Loops Chapter 3.
Announcements Exam 1 Grades Posted on Blackboard.
[0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]
When I want to execute the subroutine I just give the command Write()
Part 10 Q46 to Q50 of National 5 Prelim
در تجزیه و تحلیل شغل باید به 3 سوال اساسی پاسخ دهیم Job analysis تعریف کارشکافی، مطالعه و ثبت جنبه های مشخص و اساسی هر یک از مشاغل عبارتست از مراحلی.
Welcome back to Software Development!
Welcome back to Software Development!
C# Basics These slides are designed for Game Design Class
Repetition Structures
Welcome back to Software Development!
Critical Sections User Software Solutions Dekker’s Algorithm
Welcome back to Software Development!
Patterns to KNOW.
The for Loop Syntax: Same as: for (expression1;condition; expression2)
Welcome back to Software Development!
Ашық сабақ 7 сынып Файлдар мен қапшықтар Сабақтың тақырыбы:
Console.WriteLine(“Good luck!”);
Windows басқару элементтері
How can you make a guessing game?
Test Plans Making the world safe for software
Welcome back to Software Development!
Clear and Unclear Windows
Welcome back to Software Development!
How can you make a guessing game?
True / False Variables.
Designing Software.
Қош келдіңіздер!.
Variables and Equations
Информатика пән мұғалімі : Аитова Карима.
Iteration – While Loops
Week 5 - Friday CS 121.
Presentation transcript:

Welcome back to Software Development!

A Friendly Reminder…

A Friendly Reminder… No surfing

A Friendly Reminder… No surfing

A Friendly Reminder… No surfing No gaming

A Friendly Reminder… No surfing No gaming

The While Loop

The While Loop while ( some condition is true ) { do a bunch of stuff somehow condition becomes false }

The While Loop while ( some condition is true ) { do a bunch of stuff somehow condition becomes false }

The While Loop while ( some condition is true ) { do a bunch of stuff somehow condition becomes false }

Bool Variables

Bool Variables Variables that hold the value true or false

Bool Variables Variables that hold the value true or false They do not hold numbers

Bool Variable Example

Bool Variable Example bool enteredRightAnswer;

Bool Variable Example bool enteredRightAnswer; enteredRightAnswer = false;

Bool Variable Example bool enteredRightAnswer; enteredRightAnswer = false; …

Bool Variable Example bool enteredRightAnswer; enteredRightAnswer = false; … if (enteredRightAnswer == true )

Bool Variable Example bool enteredRightAnswer; enteredRightAnswer = false; … if (enteredRightAnswer)

Bool Variable Example bool enteredRightAnswer; enteredRightAnswer = false; … if (enteredRightAnswer) { Console.WriteLine(“Good job! That was a hard one!”); }

Your Task

Your Task Fix your MathGame program so that the user must enter a number.

Clear and Unclear Windows