The first number is posted telling what random number was selected, I did this for testing purposes, in the real thing it would not be there. Since the.

Slides:



Advertisements
Similar presentations
E.g.9 For to do loop for i:=1 to 10 do writeln(i); While do loop i:=1;
Advertisements

Chapter 5 Loops Liang, Introduction to Java Programming, Tenth Edition, (c) 2015 Pearson Education, Inc. All rights reserved.
Permutations and Combinations
Computer Programming Lab 8.
Introductions: Sit anywhere!!!!!!! Who are you? Who am I?
ECS 10 10/8. Outline Announcements Homework 2 questions Boolean expressions If/else statements State variables and avoiding sys.exit(…) Example: Coin.
©Robomatter – Distribution or copying without permission is prohibited. 3B STEM Computer Science 1 ©Robomatter – Distribution or copying without permission.
Understanding Randomness Chapter 11. Why Be Random? What is it about chance outcomes being random that makes random selection seem fair? Two things: –
RANDOM SAMPLES. Another way to pick the 50 cars could be the use of a Random Number table.
Conditions. Objectives  Understanding what altering the flow of control does on programs and being able to apply thee to design code  Look at why indentation.
1. Understand the application of Pseudo Code for programming purposes 2. Be able to write algorithms in Pseudo Code.
Agenda Basic Logic Purpose if statement if / else statement
Conditional Loops CSIS 1595: Fundamentals of Programming and Problem Solving 1.
Designing While Loops CSIS 1595: Fundamentals of Programming and Problem Solving 1.
Logical Operators, Boolean Variables, Random Numbers This template was just too good to let go in one day!
Week 61 Introduction to Programming Ms. Knudtzon C Period Tuesday October 12.
Random UNPREDICTABLE NUMBERS. A FEW APPLICATIONS THAT USE RANDOM…. Predictions for life expectance used in insurance Business simulations Games (Give.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
Chapter 10 Understanding Randomness. Why Be Random? What is it about chance outcomes being random that makes random selection seem fair? Two things: –
GCSE Computing: Programming GCSE Programming Remembering Python.
1 Chapter 11 Understanding Randomness. 2 Why Be Random? What is it about chance outcomes being random that makes random selection seem fair? Two things:
Statistics 11 Understanding Randomness. Example If you had a coin from someone, that they said ended up heads more often than tails, how would you test.
Conditionals.
Design of Rock-Paper-Scissors end Print instructions Play game Ask user If (s)he wants to play again Play again? Y Print stats: wins, losses and ties start.
Today in CS161 Lecture #7 Learn about… If and else statements Rewrite our First Program Using if and else statements Create new Graphics Demos Using if.
GCSE COMPUTER SCIENCE Practical Programming using Python
CSc 110, Spring 2017 Lecture 12: Random Numbers
CHAPTER 6 Random Variables
Pick the correct vowel to make a word to match the picture.
Allocation Strategies
Scratch – Simple Programming
Arrays (in Small Basic)
Day 6: Simulations Unit 1: Statistics.
Four Points in a Row.
12.1 – Probability Distributions
Conditional Probability
The Need for Addressing
The Maker.
Unit 2 Day 12 Review of Quadratics.
Writing Functions( ) (Part 5)
The three programs to look at are at:
Understanding Randomness
Understanding Randomness
Conditional Statements
Pick a number, any number …
Computer Science 1 Online time to complete/enhance second repeat program Be able to read and write a program that uses the ‘case’ statement.
VISUAL BASIC FINAL PROGRAMMING PROJECT
Loops A portion of a program that repeats a statement or a group of statements is called a loop. The statement or group of statements to be repeated is.
The In’s & Outs of Probability
12.5 Volume of Pyramids and Cones
random number between 1 and 5.
GUI Test Information.
Big problem  small steps
Day 6: Simulations Unit 1: Statistics.
Programs. at the code at the site..
Building a Game in Scratch
Research Sample Groups
Functions MIS 3406 Department of MIS Fox School of Business
Internet safety for parents!
Purpose: how do computers keep our information secret?
Week 6 Computer Programming Gray , Calibri 24
Comparatives Game.
This shows running the first guess number program which only allows one guess - I show the correct answer for testing purposes.
Game Description Player 1: Decides on integer x > 0
Lecture 7 – Unit 1 – Chatbots Python – For loops + Robustness
CMPT 120 Lecture 6 – Unit 1 – Chatbots
Week 6 Computer Programming Year 9 – Unit 9.04
Steps of a Lesson – Wrap Up
Week 5 - Friday CS 121.
Presentation transcript:

The first number is posted telling what random number was selected, I did this for testing purposes, in the real thing it would not be there. Since the random number was 3, I entered a 3 when prompted, they matched so I got the You got it message.

Pick a random number from 1 to 5.

4.

When I guessed 4, I got You got it.

This is comparing not equal

Now I am in the third version of the program that lets you decide whether or not you want to play again.

the random number.

Now we are looking at the logic for the Rock, Paper, Scissors game you need to write. The computer needs to generate a number from 1 to 3 and the user needs to enter a number from 1 to 3.

Help with homework.