Design Recipe Team Challenge! 1)Every team submits their answer in writing. 2)Every team can gain points for every question. 3)Wrong answers are worth.

Slides:



Advertisements
Similar presentations
In our lesson today we will learn how to find the area of a building.
Advertisements

Chapter 2 Programming by Example. A Holistic Perspective Three sections separated by blank lines. Program comment File: FileName.java
Chapter 2: Using Objects Part 1. To learn about variables To understand the concepts of classes and objects To be able to call methods To learn about.
Density Lab Part One. Density Lab: Part One DESCRIBE Describe the color and the shape of the object using 2 words.
How many cubes can you fit perfectly into your box?
Math Calculations For HERS Raters 1 Why Worry 2.
CSC 160 Computer Programming for Non-Majors Lecture #3c: Working with Pictures (continued) Prof. Adam M. Wittenstein
Bell Ringers. Directions: Write a fraction for each model.
VOLUME OF RECTANGULAR PRISMS. No tutoring tomorrow.
Learning Target: I can… Convert rational numbers.
Calculating the area of a TRIGLE AN.
Rectangle The area of a rectangle is by multiplying length and height. The perimeter of a rectangle is the distance around the outside of the rectangle.
Precision vs. Accuracy There really is a difference.
Length= 10ft Width= 15ft Area= L*W Area= Shape= Rectangle Floor= Wood Floor= 150*5= $750.
10-4 Surface Areas of Prisms and Cylinders Warm Up Problem of the Day
Lesson Objective By the end of the lesson you should be able to work out repeated percentage increases or decreases.
Accurate measurements are needed for a valid experiment.
Significant Digits. Rules for Significant Digits.
ABC/ Mathematics / Chapter 3 / TP / Rev 1 © 2003 General Physics Corporation OBJECTIVES 1.Without a calculator; ADD, SUBTRACT, MULTIPLY, and DIVIDE.
Significant Figures. What is a significant figure? There are 2 kinds of numbers: 1. Exact : Known with certainty. Example: the number of students in this.
LETS REVIEW SIGNIFICANT FIGURES ONE MORE TIME Solving Problems with Significant Figures.
Changing Dimensions What’s the effect on Perimeter and Area??
Chapter 4 Variables and constants. 4.1 Variables -Use of variables is good programming style -easier to modify -easier for a programmer to understand.
Significant Digits Measurements. Description and Measurement  Key Vocabulary  Precision  Accuracy.
 There are 2 kinds of numbers:  Exact: the amount of money in your account. Known with certainty.  Approximate: weight, height— anything MEASURED.
INFORMATION TECHNOLOGY CSEC CXC 10/25/ PASCAL is a programming language named after the 17th century mathematician Blaise Pascal. Pascal provides.
C++ Programming: Basic Elements of C++.
Agriculture Mechanics I.  Square measure is a system for measuring area. The area of an object is the amount of surface contained within defined limits.
Learning about Using Inverse Operations for finding the original price after a percentage increase or decrease.
The height of the actual soccer goal is 100 in. The width of the picture is 21 cm., and it is 7 cm. In height. Help us us find the width of the actual.
Strategy Problem: Gina sold 30 tickets as adult tickets. Two- thirds of the student tickets sold were unreserved seats. How many of the student tickets.
Chapter 4 Variables and constants. 4.1 Variables -Use of variables is good programming style -easier to modify -easier for a programmer to understand.
EXAMPLE 1 Evaluate powers a. (–5) 4 b. –5 4 = (–5) (–5) (–5) (–5)= 625 = –( )= –625.
Math, Data Types. Python Math Operations OperationOperator Addition + Subtraction – Multiplication * Division (floating point) / Division (integer) //
General Exam Tips Think Read the question carefully and try to understand the scenario, then think about the Maths you will need to do. Is it perimeter,
1 Algorithms Practice Topics In-Class Project: Tip Calculator In-Class Project: Drawing a Rectangle.
© T Madas. Find the mean percentage mark of 37%, 42%, 68%, 55% and 39%. Find of Find 7% of 675. Find the area of a triangle with base of 1.25.
How to Solve: 1.Read the problem. 2.Write what we know: (ex: 1 foot= 12 inches) 3.If the units in the problem go from: BIG small: you multiply X small.
Jeopardy Topic 1Topic Q 1Q 6Q 11Q 16Q 21 Q 2Q 7Q 12Q 17Q 22 Q 3Q 8Q 13Q 18Q 23 Q 4Q 9Q 14Q 19Q 24 Q 5Q 10Q 15Q 20Q 25.
Algebra I and Algebra I Concepts Chapter 0. Section 0-2 Real Numbers Real Numbers Irrational Numbers Rational Numbers Integers Whole Natural.
Exercise 1 #include int main() { printf(“Hello C Programming!\n”); return 0; } 1.Run your Visual Studio 2008 or Create a new “project” and add.
1 Project 2: Using Variables and Expressions. 222 Project 2 Overview For this project you will work with three programs Circle Paint Ideal_Weight What.
Volume of Cones & Spheres
Volume of a Geometric Solid 5.10B-Connect Models for Volume with their Respective Formulas (Supporting Standard) 5.10C-Select & Use Appropriate Units and.
Joe’s Sprinkle Company Color of Sprinkles: Orange: 34% Blue: 56% Red: 10% The following custom sprinkle order needs to be filled To fill this order you.
Perimeter and Area Formulas.  Perimeter is the distance around an object. It is easily the simplest formula. Simply add up all the sides of the shape,
Math Review Basics Using Multiplication and Division.
Area of Regular and irregular polygons Mrs. Korchmaros.
Squared and Cubed Conversion Factors
Accuracy, Precision and Significant Figures. Scientific Measurements All of the numbers of your certain of plus one more. –Here it would be 4.7x. –We.
14.0 Math Review 14.2 Inches to Feet & Areas. Division 80 ÷ 5 = 16 Also written as:
CS 240 Computer Programming 1
GCSE COMPUTER SCIENCE Practical Programming using Python
Week 12 Name ____________________ Day 1 Day 2
*Always measured in units cubed (u3)
Standard Form A number expressed in standard form is a number written between 1 and 10 multiplied by 10 to an appropriate power. The use of standard form.
Unit 1 Significant Figures in Measurements
Dividing by a number is the inverse of multiplying by that number
Correct the following equation so that it makes sense – you can add numbers and operators to it. Challenge: Make the equation make sense by re-arranging.
Use a graphing calculator or computer to determine which viewing rectangle produces the most appropriate graph of the function {image} Choose the answer.
Fractions 1/2 1/8 1/3 6/8 3/4.
VOLUME.
Multiplying Polynomials Using Algebra Tiles
Warm Up I will give 20 minutes to finish homework and ask questions
Operations on Mixed Number
Unit 3 Review Game.
Determine the graph of the given function. {image}
Measurement Rounding.
Finding the area of fractional side lengths
Algorithms, Part 3 of 3 Topics In-Class Project: Tip Calculator
Presentation transcript:

Design Recipe Team Challenge!

1)Every team submits their answer in writing. 2)Every team can gain points for every question. 3)Wrong answers are worth $50. Wild guesses and blank answers are worth $0! 4)Each round is worth more money! The rules

Design Recipe Steps Step 1 - State the Problem Step 2 - Define the DataDefine the Data Step 3 - Write the ContractWrite the Contract Step 4 - Make ExamplesMake Examples Step 5 - Take InventoryTake Inventory Step 6 - Code Step 7 - Test Step 1 - State the Problem Step 2 - Define the DataDefine the Data Step 3 - Write the ContractWrite the Contract Step 4 - Make ExamplesMake Examples Step 5 - Take InventoryTake Inventory Step 6 - Code Step 7 - Test

$100 - Step 2 Problem Statement Write a function ‘ triple ’, which takes in a number as input and outputs a number three times its size. Problem Statement Write a function ‘ triple ’, which takes in a number as input and outputs a number three times its size.

Data Definition: Numbers like 20, 567, 0, 18 Data Definition: Numbers like 20, 567, 0, 18 Problem Statement Write a function ‘ triple ’, which takes in a number as input and outputs a number three times its size. Problem Statement Write a function ‘ triple ’, which takes in a number as input and outputs a number three times its size. $100 - Step 2

Problem Statement You ’ re buying tile for a new bathroom, and you must convert the measurements from feet to inches. Write a function “ feet->inches ” which takes a length (in feet) and returns a length (in inches). Problem Statement You ’ re buying tile for a new bathroom, and you must convert the measurements from feet to inches. Write a function “ feet->inches ” which takes a length (in feet) and returns a length (in inches).

Data Definition: Numbers like 20, 567, 0, 18 Data Definition: Numbers like 20, 567, 0, 18 Problem Statement Write a function “ feet->inches ” which takes a length (in feet) and returns a length (in inches). Problem Statement Write a function “ feet->inches ” which takes a length (in feet) and returns a length (in inches). $100 - Step 2

Problem Statement Write a function ‘ hello ’, which takes in a name as input and prints out “ Hello, _____ ” for that person, filling in their name. Problem Statement Write a function ‘ hello ’, which takes in a name as input and prints out “ Hello, _____ ” for that person, filling in their name.

Data Definition: Strings like “Rasheem” and “Vinelle” Data Definition: Strings like “Rasheem” and “Vinelle” Problem Statement Write a function ‘ hello ’, which takes in a name as input and prints out “ Hello, _____ ” for that person, filling in their name. Problem Statement Write a function ‘ hello ’, which takes in a name as input and prints out “ Hello, _____ ” for that person, filling in their name. $100 - Step 2

Problem Statement You go out to dinner and everything is perfect, but how much do you tip the waiter? Write a function “ tip ”, which takes two inputs: the cost of the meal and the tax. It should return the size of the tip. (to calculate tax, take the cost of the meal and multiple it by the tax, then divide by 100) Problem Statement You go out to dinner and everything is perfect, but how much do you tip the waiter? Write a function “ tip ”, which takes two inputs: the cost of the meal and the tax. It should return the size of the tip. (to calculate tax, take the cost of the meal and multiple it by the tax, then divide by 100)

Data Definition: Numbers like 20, 567, 0, 18 Data Definition: Numbers like 20, 567, 0, 18 Problem Statement Write a function “ tip ”, which takes two inputs: the cost of the meal and the tax. It should return the size of the tip. Problem Statement Write a function “ tip ”, which takes two inputs: the cost of the meal and the tax. It should return the size of the tip. $100 - Step 2

Data Definition: Strings like “red”, “blue”, “yellow” Data Definition: Strings like “red”, “blue”, “yellow” Problem Statement Write a function ‘ circle30 ’, which takes a color as input, and outputs a solid circle of the appropriate color. The radius of the circle must always be 30. Problem Statement Write a function ‘ circle30 ’, which takes a color as input, and outputs a solid circle of the appropriate color. The radius of the circle must always be 30. $100 - Step 2

Problem Statement Write a function ‘ blue-rect ’, which takes width and height as input, and outputs a solid blue rectangle of the appropriate size. Problem Statement Write a function ‘ blue-rect ’, which takes width and height as input, and outputs a solid blue rectangle of the appropriate size.

Data Definition: Numbers like 30, 54, 102 Data Definition: Numbers like 30, 54, 102 Problem Statement Write a function ‘ blue-rect ’, which takes width and height as input, and outputs a solid blue rectangle of the appropriate size. Problem Statement Write a function ‘ blue-rect ’, which takes width and height as input, and outputs a solid blue rectangle of the appropriate size. $100 - Step 2

Problem Statement 100 is the smallest three-digit number, and 999 is the biggest. Anything in between these numbers is also three digits. Write a function ‘ 3digits ’ that takes a number as input and returns ‘ true ’ if the input is more than 100 and less than 999. Problem Statement 100 is the smallest three-digit number, and 999 is the biggest. Anything in between these numbers is also three digits. Write a function ‘ 3digits ’ that takes a number as input and returns ‘ true ’ if the input is more than 100 and less than 999.

Data Definition: Numbers like 30, 574, 102 Data Definition: Numbers like 30, 574, 102 Problem Statement Write a function ‘ 3digits ’ that takes a number as input and returns ‘ true ’ if the input is more than 100 and less than 999. Problem Statement Write a function ‘ 3digits ’ that takes a number as input and returns ‘ true ’ if the input is more than 100 and less than 999. $100 - Step 2

Data Definition: Numbers like 20, 567, 0, 18 Data Definition: Numbers like 20, 567, 0, 18 Problem Statement Write a function ‘ triple ’, which takes in a number as input and outputs a number three times its size. Problem Statement Write a function ‘ triple ’, which takes in a number as input and outputs a number three times its size. $200 - Step 3 Contract+Purpose Statement ; triple : Number -> Number ; multiplies the input by 3 Contract+Purpose Statement ; triple : Number -> Number ; multiplies the input by 3

Data Definition: Numbers like 20, 567, 0, 18 Data Definition: Numbers like 20, 567, 0, 18 Problem Statement Write a function “ feet->inches ” which takes a length (in feet) and returns a length (in inches). Problem Statement Write a function “ feet->inches ” which takes a length (in feet) and returns a length (in inches). $200 - Step 3 Contract+Purpose Statement ; feet->inches : Number -> Number ; converts the input from feet to inches

Data Definition: Strings like “Rasheem” and “Vinelle” Data Definition: Strings like “Rasheem” and “Vinelle” Problem Statement Write a function ‘ hello ’, which takes in a name as input and prints out “ Hello, _____ ” for that person, filling in their name. Problem Statement Write a function ‘ hello ’, which takes in a name as input and prints out “ Hello, _____ ” for that person, filling in their name. $200 - Step 3 Contract+Purpose Statement ; hello : String -> String ; takes a name and prints “Hello, <name>”

Data Definition: Numbers like 20, 567, 0, 18 Data Definition: Numbers like 20, 567, 0, 18 Problem Statement Write a function “ tip ”, which takes two inputs: the cost of the meal and the tax. It should return the size of the tip. Problem Statement Write a function “ tip ”, which takes two inputs: the cost of the meal and the tax. It should return the size of the tip. $200 - Step 3 Contract+Purpose Statement ; tip : Number Number -> Number ; given a price and a tip percentage, return the tip amount

Data Definition: Numbers like 30, 54, 102 Data Definition: Numbers like 30, 54, 102 Problem Statement Write a function ‘ blue-rect ’, which takes width and height as input, and outputs a solid blue rectangle of the appropriate size. Problem Statement Write a function ‘ blue-rect ’, which takes width and height as input, and outputs a solid blue rectangle of the appropriate size. $200 - Step 3 Contract+Purpose Statement ; blue-rect : Number Number -> Image ; draws a blue rectangle of the correct size Contract+Purpose Statement ; blue-rect : Number Number -> Image ; draws a blue rectangle of the correct size

Data Definition: Numbers like 30, 574, 102 Data Definition: Numbers like 30, 574, 102 Problem Statement Write a function ‘ 3digits ’ that takes a number as input and returns ‘ true ’ if the input is more than 100 and less than 999. Problem Statement Write a function ‘ 3digits ’ that takes a number as input and returns ‘ true ’ if the input is more than 100 and less than 999. $200 - Step 3 Contract+Purpose Statement ; 3digits : Number -> Boolean ; returns true if the input has 3 digits

Data Definition: Numbers like 20, 567, 0, 18 Data Definition: Numbers like 20, 567, 0, 18 Problem Statement Write a function ‘ triple ’, which takes in a number as input and outputs a number three times its size. Problem Statement Write a function ‘ triple ’, which takes in a number as input and outputs a number three times its size. $300 - Step 4 Contract+Purpose Statement ; triple : Number -> Number ; multiplies the input by 3 Contract+Purpose Statement ; triple : Number -> Number ; multiplies the input by 3 Examples ; (triple 5) => 15 Examples ; (triple 5) => 15

Data Definition: Numbers like 20, 567, 0, 18 Data Definition: Numbers like 20, 567, 0, 18 Problem Statement Write a function “ feet->inches ” which takes a length (in feet) and returns a length (in inches). Problem Statement Write a function “ feet->inches ” which takes a length (in feet) and returns a length (in inches). $300 - Step 4 Contract+Purpose Statement ; feet->inches : Number -> Number ; converts the input from feet to inches Examples ; (feet->inches 6) => 75 Examples ; (feet->inches 6) => 75

Data Definition: Strings like “Rasheem” and “Vinelle” Data Definition: Strings like “Rasheem” and “Vinelle” Problem Statement Write a function ‘ hello ’, which takes in a name as input and prints out “ Hello, _____ ” for that person, filling in their name. Problem Statement Write a function ‘ hello ’, which takes in a name as input and prints out “ Hello, _____ ” for that person, filling in their name. $300 - Step 4 Contract+Purpose Statement ; hello : String -> String ; takes a name and prints “Hello, ” Example ; (hello “Jose”) => “hello, Jose”

Data Definition: Numbers like 20, 567, 0, 18 Data Definition: Numbers like 20, 567, 0, 18 Problem Statement Write a function “ tip ”, which takes two inputs: the cost of the meal and the tax. It should return the size of the tip. Problem Statement Write a function “ tip ”, which takes two inputs: the cost of the meal and the tax. It should return the size of the tip. $300 - Step 4 Contract+Purpose Statement ; tip : Number Number -> Number ; given a price and a tip percentage, return the tip amount Example: ; (tip 50 20) => 10

Data Definition: Numbers like 30, 54, 102 Data Definition: Numbers like 30, 54, 102 Problem Statement Write a function ‘ blue-rect ’, which takes width and height as input, and outputs a solid blue rectangle of the appropriate size. Problem Statement Write a function ‘ blue-rect ’, which takes width and height as input, and outputs a solid blue rectangle of the appropriate size. $300 - Step 4 Contract+Purpose Statement ; blue-rect : Number Number -> Image ; draws a blue rectangle of the correct size Contract+Purpose Statement ; blue-rect : Number Number -> Image ; draws a blue rectangle of the correct size Example: (blue-rect 10 40) =>

Data Definition: Numbers like 30, 574, 102 Data Definition: Numbers like 30, 574, 102 Problem Statement Write a function ‘ 3digits ’ that takes a number as input and returns ‘ true ’ if the input is more than 100 and less than 999. Problem Statement Write a function ‘ 3digits ’ that takes a number as input and returns ‘ true ’ if the input is more than 100 and less than 999. $300 - Step 4 Contract+Purpose Statement ; 3digits : Number -> Boolean ; returns true if the input has 3 digits Example: ; (3digits 173) => true

Problem Statement Write a function ‘ triple ’, which takes in a number as input and outputs a number three times its size. Problem Statement Write a function ‘ triple ’, which takes in a number as input and outputs a number three times its size. $400 - Step 5 Contract+Purpose Statement ; triple : Number -> Number ; multiplies the input by 3 Contract+Purpose Statement ; triple : Number -> Number ; multiplies the input by 3 Examples ; (triple 5) => 15 Examples ; (triple 5) => 15 (define (triple x) …function body…)

Problem Statement Write a function “ feet->inches ” which takes a length (in feet) and returns a length (in inches). Problem Statement Write a function “ feet->inches ” which takes a length (in feet) and returns a length (in inches). $400 - Step 5 Contract+Purpose Statement ; feet->inches : Number -> Number ; converts the input from feet to inches Examples ; (feet->inches 6) => 75 Examples ; (feet->inches 6) => 75 (define (feet->inches f) …function body…)

Problem Statement Write a function ‘ hello ’, which takes in a name as input and prints out “ Hello, _____ ” for that person, filling in their name. Problem Statement Write a function ‘ hello ’, which takes in a name as input and prints out “ Hello, _____ ” for that person, filling in their name. $400 - Step 5 Contract+Purpose Statement ; hello : String -> String ; takes a name and prints “Hello, ” Example ; (hello “Jose”) => “hello, Jose” (define (hello name) …function body…)

Problem Statement Write a function “ tip ”, which takes two inputs: the cost of the meal and the tax. It should return the size of the tip. Problem Statement Write a function “ tip ”, which takes two inputs: the cost of the meal and the tax. It should return the size of the tip. $400 - Step 5 Contract+Purpose Statement ; tip : Number Number -> Number ; given a price and a tip percentage, return the tip amount Example: ; (tip 50 20) => 10 (define (tip total percent) …function body…)

Problem Statement Write a function ‘ blue-rect ’, which takes width and height as input, and outputs a solid blue rectangle of the appropriate size. Problem Statement Write a function ‘ blue-rect ’, which takes width and height as input, and outputs a solid blue rectangle of the appropriate size. $400 - Step 5 Contract+Purpose Statement ; blue-rect : Number Number -> Image ; draws a blue rectangle of the correct size Contract+Purpose Statement ; blue-rect : Number Number -> Image ; draws a blue rectangle of the correct size Example: (blue-rect 10 40) => (define (blue-rect x y) …function body…)

Problem Statement Write a function ‘ 3digits ’ that takes a number as input and returns ‘ true ’ if the input is more than 100 and less than 999. Problem Statement Write a function ‘ 3digits ’ that takes a number as input and returns ‘ true ’ if the input is more than 100 and less than 999. $400 - Step 5 Contract+Purpose Statement ; 3digits : Number -> Boolean ; returns true if the input has 3 digits Example: ; (3digits 173) => true (define (3digits 543) …function body…)