ITEC 109 Lecture 10 More on Repetition / Choices.

Slides:



Advertisements
Similar presentations
1 FCAT at Home Karyn Lindsay Coordinator of Educational Services Region XIV Comprehensive Center at ETS 1000 N. Ashley Drive Suite 312 Tampa, FL
Advertisements

Lilian Blot CORE ELEMENTS SELECTION & FUNCTIONS Lecture 3 Autumn 2014 TPOP 1.
An intro to programming concepts with Scratch Session 8 of 10 sessions Working with lists; sorting a list.
Test practice Multiplication. Multiplication 9x2.
366,84 m2 114,09 m2 220,84 m262,34 m2 Renaissance Premium have 2 underground parking floors which let 66 cars to park safely. 1 st Floor Bank Cafe Renaissance.
ECS 15 if and random. Topic  Testing user input using if statements  Truth and falsehood in Python  Getting random numbers.
+ Read the section of the article you have been assigned. You may underline the following as you read. Text Reading Protocol ✔ Agree ✖ Argue ? Ask a question.
INFM 718A / LBSC 705 Information For Decision Making Lecture 1.
1 of 30 1 st Derivative The formula for the 1 st derivative of a function is as follows: It’s just the difference between subsequent values and measures.
Section 4C Loan Payments, and Credit Cards Pages C.
Multiple Choice 1.I invest £1000 for 3 years in a bank account. At the end of the 3 years I have £1260 to the nearest pound. What was the interest rate?
11+ procedures for Headlines:- The 11+ tests were changed last year and put into one day only, instead of 2 days. There are two tests and a.
Chapter 2 - Algorithms and Design
We note that: Math Trick: Multiplications of Numbers 25  35 = ? 25 =  = 
Ways To Multiply.
ENG 1181 College of Engineering Engineering Education Innovation Center MAT – Conditional Statements Topics: 1.Conditional statements if-end if-else-end.
CSC Intro. to Computing Lecture 13: PALGO. Announcements Midterm is in one week  Time to start reviewing  We will do more review in class Tuesday.
Get out your ISN! You will be able to solve permutations. You will be able to solve combinations. Today’s Objectives:
Formula? Unit?.  Formula ?  Unit?  Formula?  Unit?
CS 8803 Design Game GamesRamkumar MS CS MS CS. Interesting Game(??!!??)  Tough task to choose   A game has to be both funny and challenging to make.
CMPSC 16 Problem Solving with Computers I Spring 2014 Instructor: Lucas Bang Lecture 5: Introduction to C: More Control Flow.
Exponential Growth & Decay
Math 15 Introduction to Scientific Data Analysis Lecture 8 Python Programming – Part 2 University of California, Merced.
Rules For Creating an Effective Questionnaire Nick and Dalton.
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?
ITEC 109 Lecture 7 Operations. Review Variables / Methods Functions Assignments –Purpose? –What provides the data? –What stores the data? –What type of.
How do I write this Civil Rights thing?. Introduction The Civil Rights movement was… There were many events that helped to… Three (or four) important.
Higher and National 5 Course Assessment: Question Paper.
Creating a mystic meg program A simple program asking the user questions and using their answers to build up a fortune telling in a list.
Login Screen Homepage Homepage for super admin has a option to create a new complex or access the existing complex/ society When selected to access.
CMP 131 Introduction to Computer Programming Violetta Cavalli-Sforza Week 11.
© The McGraw-Hill Companies, 2006 Chapter 3 Iteration.
Midterm Exam Topics (Prof. Chang's section) CMSC 201.
CS190/295 Programming in Python for Life Sciences: Lecture 6 Instructor: Xiaohui Xie University of California, Irvine.
Career Decision Making
Powerpoint in the Primary Maths Classroom … slides to attempt.
Lecture 1 INTRODUCTION TO ALGORITHMS Professor Uday Reddy
1 CSC103: Introduction to Computer and Programming Lecture No 9.
Introduction to programming in java Lecture 11 Boolean Expressions and Assignment no. 2.
Name_____________ Assignment # _____ EQ: HOW CAN I LEARN TO MAKE GOOD DECISIONS?
Algebra I Keystone Test Prep Part 1: Tuesday, April :00 pm-4:00 pm Part 2: Tuesday, April :00 pm-4:00 pm Part 3: Tuesday, May :00.
Nursing homework help BEST ASSIGNMENT.
Python 23 Mr. Husch.
CSE 220 – C Programming C Fundamentals.
4th Grade Math Bee Practice.
3rd Grade Math Bee Practice.
5th Grade Campus Math Bee
Making Choices with if Statements
Health Insurance Survey Results
4th Grade Campus Math Bee
Consecutive Number Equations
Lesson 3 - Repetition.
CS190/295 Programming in Python for Life Sciences: Lecture 6
The Linux Command Line Chapter 28
Program Flow Control Selection & repetition
New EQ: How are sequences like functions?
Python 19 Mr. Husch.
Decision I (if Statement)
4th Grade Campus Math Bee
5th Grade Math Bee Practice.
5th Grade Campus Math Bee
5th Grade Campus Math Bee School Year.
The Selection Structure
Problem solving.
Python 19 Mr. Husch.
Hint idea 2 Split into shorter tasks like this.
Review Lab assignments Homework #3
CMPT 120 Lecture 4 – Unit 1 – Chatbots
Challenge Guide Grade Code Type Slides
Presentation transcript:

ITEC 109 Lecture 10 More on Repetition / Choices

Multiple choices Review Questions Mini-exam next Tuesday Iteration –What is it –How do we use it –What are reasons why we would use it

Multiple choices Objectives Extend choices beyond just one or the other Work on a homework assignment

Multiple choices Reality There are more than 2 cars in the world

Multiple choices Example Extremely expensive ExpensiveAverage Cheap

Multiple choices Problem Want to buy a car, but not multiple cars Have $200k in the bank, want to get best car bankAccount=200000; if (bankAccount>500000): buyferrari(); bankAccount = bankAccount ; if (bankAccount > 60000): buybmw(); bankAccount = bankAccount ; if (bankAccount > 20000): camry.buy(); bankAccount = bankAccount – 20000; Are you always going to buy a camry?

Multiple choices Multiple Choices 1 st choice –if 2 nd to Xth choice –else if Last choice –else bankAccount=200000; if (bankAccount>500000): buyferrari (); bankAccount = bankAccount ; elif (bankAccount > 60000): buybmw(); bankAccount = bankAccount ; elif (bankAccount > 20000): buycamry(); bankAccount = bankAccount – 20000; Optional

Multiple choices Homework Create a program that asks the user to input one of four possible commands Use if /elsif / else to call a function that implement the command Come up with your own commands –Ideas Turtle movement Math formulas