CS305j Introduction to Computing Parameters Case Study 1 Topic 10 Parameters Case Study " Thinking like a computer scientist means more than being able.

Slides:



Advertisements
Similar presentations
CS107 Introduction to Computer Science Lecture 2.
Advertisements

Multi-Step Word Problems
Fact and Opinion Correctly identify facts and opinions to launch your own alien spacecraft. Click to continue.
1 9/29/06CS150 Introduction to Computer Science 1 Loops Section Page 255.
Who Wins The Ironman? Best Swimmer, Cyclist, or Runner A Project Demonstration by Dr. Moffit.
1 9/28/07CS150 Introduction to Computer Science 1 Loops section 5.2, 5.4, 5.7.
1 10/20/08CS150 Introduction to Computer Science 1 do/while and Nested Loops Section 5.5 & 5.11.
11.3 Function Prototypes A Function Prototype contains the function’s return type, name and parameter list Writing the function prototype is “declaring”
CS150 Introduction to Computer Science 1
Variables, Data Types, & Arithmetic Expressions CSC 1401: Introduction to Programming with Java Lecture 3 Wanda M. Kunkle.
1 10/9/06CS150 Introduction to Computer Science 1 for Loops.
CS305j Introduction to Computing Two Dimensional Arrays 1 Topic 22 Two Dimensional Arrays "Computer Science is a science of abstraction -creating the right.
Introduction to Distance-Rate-Time Applications Example 1: Jan drives south out of Denver and averages 65mph. How far is she from Denver after 3 hours.
Solving equations that involve formulas.
EXAMPLE 1 Using a Variable Expression Hot Air Balloons You are riding in a hot air balloon. After traveling 5 miles, the balloon speed changes to 6 miles.
Solving harder physics problems
V Avon High School Tech Club Agenda Old Business –Delete Files New Business –Week 16 Topics: Intro to HTML/CSS –Questions? Tech Club Forums.
Algebra Part 4 Of Math Survival Guide.
Notes Over 1.1 Evaluate the expression for the given value of the variable. Evaluate - means replace the variable by a number and work it out using order.
Pythagorean Theorem Two sides of a right triangle measure 6 feet and 8 feet. What is the length of the hypotenuse?
Bell Quiz.
Do Now: What is the speed of an object that is standing still? Objective: to define and calculate speed.
Solving Multiplication Equations Using the Multiplicative Inverse
Introduction The average running speed of a human being is 5–8 mph. Imagine you set out on an 8-mile run that takes you no longer than 1 hour. You run.
Chapter Piece wise functions.
EXAMPLE 1 Using the Commutative Property SOLUTION Write a verbal model to find the total distance you can cycle in 5 days. Tour Biking You are going on.
Using a Commutative Property You are going on a 400 mile bike trip. You plan to cycle at an average speed of 12 miles per hour for 7 hours per day. Can.
CS305j Introduction to Computing Classes 1 Topic 23 Classes – Part I "A 'class' is where we teach an 'object' to behave." -Rich Pattis Based on slides.
Computer Science By: Erica Ligons Compound Statement A compound statement- block A compound statement- is a unit of code consisting of zero or more statement.
Lesson 6 & 7 Unit 5. Objectives Be able to find equations for direct variation: y = kx Be able to find equations for inverse variation: y = k/x Be able.
A triathlon is a multiple-stage competition involving the completion of three continuous and sequential endurance disciplines. While many variations of.
EXAMPLE 2 Solving a Problem Junior Iditarod Race In the 2001 Junior Iditarod race, one team completed the race in about 18 hours over two days. The team’s.
X = 3y = 4z = 8 2x Step 1X = 3 Step 22(3) 2 – 6 2 Step 4 2(9) – 6 2Step 3 18 – 12 =6.
Warm up. Up to now, we’ve been looking at functions represented by a single equation. In real life, however, functions are represented by a combination.
INVITATION TO Computer Science 1 11 Chapter 2 The Algorithmic Foundations of Computer Science.
Triathlon. Triathlon is made up of 3 different sports, the order of the sports is swimming, cycling, then running. There are certain distances for each.
Computer Programming 12 Mr. Jean March 5 th, 2014.
CS305j Introduction to Computing More Conditional Execution 1 Topic 13 More Conditional Execution " Great dancers are not great because of their technique;
Evaluate Multiplication and Division Expressions SWBAT find the value of algebraic expressions involving multiplication or division.
CS305j Introduction to Computing Parameters and Methods 1 Topic 8 Parameters and Methods "We're flooding people with information. We need to feed it through.
TOPIC 8 MORE ON WHILE LOOPS 1 Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach by M. Guzdial and B. Ericson,
Review for Test2. Scope 8 problems, 60 points. 1 Bonus problem (5 points) Coverage: – Test 1 coverage – Exception Handling, Switch Statement – Array of.
Speed How many measurements for speed can you think of?
You Friend EXAMPLE 1 Understanding and Planning
EXAMPLE 1 Using the Commutative Property
Chapter 1 Introduction to Java
Selection Structures (Part 1)
Evaluating Expressions Eleanor M. Savko Exponents and Powers Word
Introduction The average running speed of a human being is 5–8 mph. Imagine you set out on an 8-mile run that takes you no longer than 1 hour. You run.
Lesson Comparing and Ordering Rational Numbers
Topic 5 for Loops -Arthur Schopenhauer
Chapter 9 Pointers Objectives
Introduction to pseudocode
Unary Operators ++ and --
Event loops.
Lecture Notes – Week 3 Lecture-2
Topic 7 Nested Loops Case Study
Algorithm Discovery and Design
Unitary method.
Algebra Tutor User’s manual.
Title: Mr. Smart Trains for a Sprint Triathlon
Starter Questions Convert the following to minutes :-
Review for Test1.
Python Basics with Jupyter Notebook
Warm Up Fill in or = –
Example 1: Consumer Application
Event loops.
Splash Screen.
 Is a machine that is able to take information (input), do some work on (process), and to make new information (output) COMPUTER.
Event loops.
Presentation transcript:

CS305j Introduction to Computing Parameters Case Study 1 Topic 10 Parameters Case Study " Thinking like a computer scientist means more than being able to program a computer. It requires thinking at multiple levels of abstract." — Jeannette M. Wing Based on slides for Building Java Programs by Reges/Stepp, found at

CS305j Introduction to Computing Parameters Case Study 2 Case Study  This case study involves –structured programs –input from a user –loops –variables –expressions –methods –parameters

CS305j Introduction to Computing Parameters Case Study 3 Problem Statement  A triathlon is an endurance event consisting of a swim, bike, and run portion.

CS305j Introduction to Computing Parameters Case Study 4 More details  Write a program that determines the average speed of each leg based on a number of participants. –Swim is expressed as time per 100m –Biking is expressed in miles per hour –Running is expressed as time per mile  Ask user for number of athletes  User inputs swim, bike, and run distances  User nput times for each athlete  Show results