21 3 Variables Selection Functions Repetition Challenge 21

Slides:



Advertisements
Similar presentations
Files Used to transfer data to and from disk. Opening an Output File Stream #include // File stream library. ofstream outfile;// Declare file stream variable.
Advertisements

Stacking Cups Algebra 1 Connection Patterns & Functions Connecting Patterns & Functions.2.
Composite Functions Consider a person working for a concrete contractor. One of his jobs is to estimate the cost for the product to put in a concrete driveway.
Flowcharts Remember that a solution to a problem is called an algorithm. Algorithms are often a series of steps required to solve the problem. A flowchart.
JavaScript with Input & Output Step 1: Use tags JavaScript Template.
2.3.2 – Slope as Rate of Change. In real life context, we can extend the idea of a slope Remember, slope is a ratio; change in one set of numbers over.
In a not gate, if the input is on(1) the output is off (0) and vice versa.
CONVERSION GRAPHS A conversion graph is used to “convert” or change one unit into another.
Finding the Area of a Rectangle. Area of a Rectangle WALT: To calculate areas of rectanglesTo calculate areas of rectangles To calculate areas of polygons.
LOGS EQUAL THE The inverse of an exponential function is a logarithmic function. Logarithmic Function x = log a y read: “x equals log base a of y”
What is Correlation? Do we have to learn it with high calculations? Do we have to go for a complicated formula to understand it?
Equations of Linear Relationships
Python Repetition. We use repetition to prevent typing the same code out many times and to make our code more efficient. FOR is used when you know how.
EXERCISE IN CLASS CHAPTER 2. PART 1 SEQUENCE SCENARIO 1 Write an algorithm for a C program, that prompts user to enter total number of umbrellas he/she.
C OMPUTER P ROGRAMMING 1 Assignment. A SSIGNMENT We have used gets to input a value into variable The second way to give a variable a value is known as.
Mapping to Scale.
Planning & Budgeting Barnet Federation of Horticultural & Allotment Societies.
My Python Programmes NAME:.
2 pt 3 pt 4 pt 5pt 1 pt 2 pt 3 pt 4 pt 5 pt 1 pt 2pt 3 pt 4pt 5 pt 1pt 2pt 3 pt 4 pt 5 pt 1 pt 2 pt 3 pt 4pt 5 pt 1pt Polynomials Lines Equations GeometryPerimeter.
A function is a special kind of relation. (A relation is an operation, or series of operations, that maps one number onto another.)
Objective: Understand and convert between mixed numbers and improper fractions © Hamilton Trust Stepping Up Term 2 Week 1 Day 3.
Equations of Linear Relationships
Conversion Graphs Learning Objective: Be able to use conversion graphs. 27/01/10.
Object Oriented Programming Lab 7. Lab Task#1 Create a create POINT to represent a point in Cartesian coordinate system Choose appropriate data members.
Variables.. Part 2 Calculations. Review of yesterday Three types of variables var num:int var average:real var username:string No decimals Might have.
Calculations Involving Density Calculating Density from Mass and Volume.
Unit Conversions. A physical quantity must include: Number + Unit.
Chapter 6 Testing and running a solution. Errors X Three types Syntax Logic Run-time.
Proportionality. Direct Proportionality What is it? Direct proportionality is when one thing is directly proportional to another. Two quantities are in.
CS 240 Computer Programming 1
More Trig - Radian Measure and Arc Length Warm-up Learning Objective: To convert from degree measure to radian measure and vice versa and to find arc length.
Learning to use a ‘For Loop’ and a ‘Variable’. Learning Objective To use a ‘For’ loop to build shapes within your program Use a variable to detect input.
Rational Numbers as Exponents Section 7-5. Objectives To calculate radical expressions in two ways. To write expressions with rational exponents as radical.
GCSE COMPUTER SCIENCE Practical Programming using Python
Dimensional Analysis.
IGCSE 1 Cambridge Algorithms and flowcharts Unit 7 Computer Science
Translating From One Unit to Another
Brought to you by Tutorial Services – The Math Center
Drawing This lesson is about drawing to scale and why it is useful. Students need to be aware of the units of metres and centimetres and how to convert.
Aim: How to plot or graph data
Measuring Inches.
Find the function rule for the function table.
G7 programing language Teacher / Shamsa Hassan Alhassouni.
Convert the following angle to radians or vice versa.
Converting Repeating Decimals to Fractions
الفصل الثاني الخوارزمية
5A.1 - Logarithmic Functions
Modeling in the Time Domain
Year 6 Spring Block 4 Converting Units
Function Notation “f of x” Input = x Output = f(x) = y.
Area of a Composite Calculate the area of this shape Total Area =
Choose the best answer for each problem.
Python 9 Mr. Husch.
LMC Little Man Computer What do you know about LMC?
Logic Gates Truth Table Challenge
Evaluating Logarithms
Algebra 1 Connection Patterns & Functions
Unit 3 Review (Calculator)
Pre and Post Questions Programming Tips and Challenges
Metric Units Monday, 22 April 2019.
Rate of Change The rate of change is the change in y-values over the change in x-values.
Alegebra 2A Function Lesson 1 Objective: Relations, and Functions.
We’ve reached second semester! Welcome back!
Calculate 9 x 81 = x 3 3 x 3 x 3 x 3 3 x 3 x 3 x 3 x 3 x 3 x =
Aim: How to plot or graph data
Regression and Correlation of Data
Finding the Area of a Rectangle
Lesson 3.3 Writing functions.
Presentation transcript:

21 3 Variables Selection Functions Repetition Challenge 21 Write a program that converts between centimetres, and inches and vice versa, by: asking the user to input a number asking the user to choose between converting from centimetres to inches or from inches to centimetres calculating and outputting the result using functions (one to convert to inches and one to convert to centimetres) The program will then ask the user if they wish to convert another number You will need to use: Variables Selection Functions Repetition Space for notes... Tip: 1 inch = 2.54 cm 1 cm = 0.393700787 inches 3