--- Price List --- A - Marshmallow: £0.20 B - Bubble gum: £0.30

Slides:



Advertisements
Similar presentations
Macroeconomic Equilibrium
Advertisements

12 Pontoon1May Pontoon program CE : Fundamental Programming Techniques.
James Tam Loops In Python In this section of notes you will learn how to rerun parts of your program without having to duplicate the code.
Shortage, Surplus & Equilibrium
1 The Competitive Firm in the Long Run. 2 Remember that the long run is that period of time in which all inputs to the production process can be changed.
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.
Lucky Candies Probability Game By: Laura Santa Maria Isabella Moreno.
Rules of Integers. Positive numbers are numbers that are above zero. Negative numbers are numbers below zero.
MrsBillinghurst. net A2 Computing A2 Computing Projects Game Animation in Pascal.
Looping While-continue.
MOM! Phineas and Ferb are … Aims:
Objective: Students will add integers using models and rules (11-3).
Scratch pong challenge Pong is a classic 1970s video game  Open the pongv1.sb2 file in Scratch  Click the.
1 x 2 Game 1: One Player Game If you select a number sentence, give the answer. If you select an answer give the number sentence that has that answer.
Analyzing Puzzles and Games. What is the minimum number of moves required to complete this puzzle?
AD 305 Electronic Visualization I : School of Art and Design : University of Illinois at Chicago : Spring 2007 Action Script 12 "The games of a people.
More on Logic Today we look at the for loop and then put all of this together to look at some more complex forms of logic that a program will need The.
Section 2 Standard Units and Areas under the Standard Normal Distribution.
TOOLBOX#2: 1.2 ESTIMATING WITH WHOLE NUMBERS By: Miss McKeown.
SEQUENCES. Learning Objectives Generate terms of a simple sequence, given a rule, finding a term from the previous term Generate terms of a simple sequence,
Scratch Programming Cards
ECONOMICS FOR BUSINESS (MICROECONOMICS) Lesson 2
Click the mouse button or press the Space Bar to display the answers.
Name 8/29/17.
STANDARD COST.
CSC111 Quick Revision.
IB ECONOMICS – A COURSE COMPANION (Blink & Dorton, 2007/2012)
3.2 Math Scrabble Lesson : Constructing Equalities and placing them on a Board using the MathScrabble symbols.
THE BEER GAME.
Miss Fulena’s 7th & 8th Grade Math
Entry Ticket: Algorithms and Program Construction
Laws of Demand.
Rounding Numbers.
Aim: What is the law of supply and demand?
Pure Competition in the Short-Run
Warmup 11/30/16 Objective Tonight’s Homework If you aren’t Christian:
Supply and Demand in a Market Economy
Perfect Competition: Short Run and Long Run
Chapter 5: Control Structure
Making a profit or surplus
As the title suggests, the aim of First to Eight is to be the first player to reveal eight circles within the play zone. The game can be played by 1 -
Lecture 9 The Costs of Production
3.2 Math Scrabble Lesson : Constructing Equalities and placing them on a Board using the MathScrabble symbols.
Input/Output Tables Please cooperate and take turns with writing on the Smartboard. Go onto the next slide when your group is ready!
a Dealing with Dollar$ workshop
Bellwork (in your spiral)
While loops The while loop executes the statement over and over as long as the boolean expression is true. The expression is evaluated first, so the statement.
Adding Integers on A Number Line
Flow of Control October 16, 2017.
More Loops.
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.
Game Controller Lesson Three.
Chapter 6 Notes The Price System.
Lesson Objectives Aims You should be able to:
flow charts and system diagrams
Supply and Demand.
Adding Integers with Different Signs
Digital file 13: 11-times table: Football crazy
Console.WriteLine(“Good luck!”);
I have 0 Jelly Beans I need Jelly Beans.
Agenda Warmup Lesson 1.9 (random #s, Boolean variables, etc)
Functions MIS 3406 Department of MIS Fox School of Business
Aim: To be able to describe the general rule for a sequence
Supply and Demand.
Dry Run Fix it Write a program
WJEC GCSE Computer Science
Pseudo-Code Conditional Branches
CS Problem Solving and Object Oriented Programming Spring 2019
As the title suggests, the aim of First to Eight is to be the first player to reveal eight circles within the play zone. The game can be played by 1 -
Agenda Warmup Lesson 1.9 (random #s, Boolean variables, etc)
Presentation transcript:

--- Price List --- A - Marshmallow: £0.20 B - Bubble gum: £0.30 Start --- Price List --- A - Marshmallow: £0.20 B - Bubble gum: £0.30 C - Jelly Bean: £0.15 D - Candy Stick: £0.35 E - Cola Whips: £0.22 X - Exit Display price list   money = Input “How much can you spend?”   While money > 0   sweet = Input “Which sweet do you want to buy?”   if sweet == “X” Break / Exit while loop   quantity = input “How many sweet do you want to purchase?”   if sweet == “A”   sweet == “B” else if else if …. “C” …. “D” …. “E” cost = 0.20 * quantity cost = 0.30 * quantity   if money > cost else   Display “You do not have enough money” money = money - cost   Display “Money left:” + money End

Player’s total Score 23 or less 0 Points Between 24 to 33 Limit 33 “Limit 33” is a simple game of adding a series of random numbers to a running total. The player’s aim it to reach a total as close as possible to 33 without taking this total over 33. Rules of the game: A player starts with a total of zero. On each turn a random number, between 1 and 10 is generated and added to the player’s total. If the player’s total exceeds 33, the player has lost and the games end: Game Over. At the end of each turn the player is asked whether they want to complete another turn or quit. If they quit, the player is given a score as follows: Zero points if their total is below 24 or above 33. 10 x (total – 23) points if their total is between 24 to 33. For instance with a total of 29, the player would score 10 x (29-23) = 60 Points. The maximum score they can reach is 10 x (33-23) = 100 when they reach a total of 33! Player’s total Score 23 or less 0 Points Between 24 to 33 total – 23 points Above 33 0 Points – Game Over