1.)
A scientist has 100 female fish and 100 male fish. She measures their lengths to the nearest cm.
These are shown in the following box and whisker diagrams.
(a)
Find the range of the lengths of all 200 fish.
(3)
(b)
Four cumulative frequency graphs are
1.)
(a)
correct end points
(A1)(A1)
max = 27, min = 4
(b)
range = 23
A1
N33
Graph 3
A2
N22
[5]
2.)
(a)
fx = 1(2) + 2(4) + . + 7(4), fx = 146 + 5x (seen anywhere)
fx
evidence of substituting into mean =
(M1)
f
(b)
A1
correct equation
146 5 x
e.g.
= 4.5, 14
21
Chapter
Linear modelling
Syllabus reference: 5.4
cyan
magenta
95
100
50
75
0
5
95
yellow
25
Correlation
Pearsons correlation coefficient
Line of best fit
The least squares regression line
Interpolation and extrapolation
A
B
C
D
E
100
50
75
25
0
5
95
10
Repetition in Java
While Loops Recall: Simple Selection
One Action
The simplest selection statement tests a single
condition, and has a single action if the condition
is true.
int age = In.getInt();
if (age >= 18)
cfw_
System.out.println("You can vote!");
Repetition using Java Simple for Statements
The following is a practical example to illustrate the while statement. Depending upon the
condition at the beginning ofthe while loop, the code inside the loop may be executed zero, once, or
many times.
while (
Repetition in Java
Do Loops
(check condition at end) Recall: Simple Selection
One Action
The simplest selection statement tests a single
condition, and has a single action if the condition
is true.
int age = In.getInt();
if (age >= 18)
cfw_
System.out.pri
Repetition
One of the greatest strengths of computers is their
ability (and willingness) to do the same task over
and over again.
In addition, the computer will always perform the
task in exactly the same way for the same input,
provided the programmer (y
Repetition using Java do Statements
The following is a practical example to illustrate the while statement.
while (there are lumps in the gravy
give the gravy a stir
end while
First we check for lumps. If there are any lumps, start stirring. The idea is t
Making Decisions in Java
For our programs to become more useful, we
need to start making decisions.
Suppose we want to decide, Is the user old
enough to vote?
Conditions
Conditions are statements that can be tested as
either TRUE or FALSE.
input age
if (a
Assignment Repetition Scoring a Baseball Game
For this assignment, you will create a program to track the score of a baseball game. A standard
baseball game has 9 innings, but you may use a shorter game if you prefer (e.g, 3 innings is sufficient).
Regard
ICS 3U Assignment 3 Baseball Scoring
Example Output for Level 3
What is the name of the first team:
Royals
What is the name of the second team:
Blue Jays
Inning: 1
Current Score:
Royals: 0
Blue Jays: 0
How many runs for Royals:
1
How many runs for Blue Ja
Assignment Selection Statements
Feb 25, 2015
Problem Statement
One way of giving a direction is to simply use one of the letters N, E, S,
or W, indicating the nearest compass point. Another way is to give a
bearing as a number from 0 to 359 (since 360 wou
2016
Canadian
Computing
Competition:
Senior
Division
Sponsor:
1
Canadian Computing Competition
Student Instructions for the Senior Problems
1. You may only compete in one competition. If you wish to write the Junior paper, see the
other problem set.
2. Be
ICS3x
Arrays in Java Sample Code
Version 0: Collect 4 grades for a semester and add them together without arrays
Without using arrays, we need a variable for each mark. Whenever we need to something with
the marks, we need to refer to each of them by name
Arrays in Java Using Arrays
Recall Length of an Array
Once an array has been created in memory, its size is fixed for the duration of its existence. Every
array object has a length field whose value can be obtained by appending .length to the array
identi
2016
Canadian
Computing
Competition:
Junior
Division
Sponsor:
1
Canadian Computing Competition
Student Instructions for the Junior Problems
1. You may only compete in one competition. If you wish to write the Senior paper, see the
other problem set.
2. Be
Getting Started With Java Data Types
The basic unit of information on a computer is called a bit, which has two states: on or off (1 or 0). Bits
are generally grouped into units of 8, which is called a byte. A single byte can store all of the possible
com
ICS3U -LOOPING/ARRAYS REVIEW
Name:
TRUE/FALSE fix the false statements to make them true
1. Programmers use the repetition structure, also called looping, to tell the computer to repeat one or more
instructions contained in a program. True
2. Two forms of
Arrays in Java Understanding Arrays
Many problems involve the manipulation of large amounts of data for example, lists and tables of
data. For many such problems, an array provides an appropriate structure for storing and organizing
the data.
Consider the
Input/Processing/Output Triangle Calculations
Feb 10, 2015
Given the three side lengths of any triangle, it is possible to make several calculations about the triangle.
Write a program that will ask the user for the three sides of a triangle and perform a
Card Game Assignment Arrays and Strings
This assignment will display your understanding of Strings and One Dimensional Arrays.
Given :
String[] faces = cfw_Ace, Deuce, Three ,Four, Ten, Jack, Queen, King;
String[] suits = cfw_Hearts, Diamonds, Clubs, Spad
CALCULATING PROGRAMS
Complete the following exercises. This will be practice with data types, input/output and arithmetic symbols. Write the
solutions to these problems. NOTE: You may complete all of the exercises in one class file/ separate your code wit