Computing (1)
Computing (1)
Getting started
What do you already know? starnent
Continueod
Nowtrythis!
Workwith a partne. Ask your partner what they think when they
thethings listed in this table.
Formatting Examples
bold
textthatis You m tays look both ways
wher sDgthe road.
underlined
text that is Nevi rIean to people.
red
text that is written in What s thisicxt make you
feel aout the words?
rext that has abackground Does this formatting feel positive
colour that is green or negative?
Itext that has abackground Does this formatting feel positive
colour that is yellow or negative?
Thenfind out which text is bold in this book. Why is it bold?
You have just been thinking about what different formatting can
mean when it is applied to text.
Spreadsheets
A readsheet is a computer file that lets you AutoSave
File
on)
Home Insert
5
Page Layout
Spread..
make calculations A B D
Column
create databases
2
analyse the data (work out what the 3
147
2 Managing data
Conditional
A formatting
condition is 1est result. For
Cxample,
aspects
a that gIves a1ruc orfalse stvle of certain fill
ls the value greater than 10" Iormatting isthe orthe
of a colour oftext. to make
For example. the font. SiZeOr beusedtogether
colourdocument.
of cells.
Conditions and formatting
can
11 casicr lo see uscful data in a containing
spreadsheel.
appliedto cells want to
Conditional fornatting
data that mects
is a stvle that iss.
example. we might
conditions. For
make it so that: cerlan blue
the text in the cell turns
if the value in a cell is grcater than 10,
10, the textinthecell
if the value in a cell is less than or cqual to
turns green.
1015
148 )
2.1 Spreadsheets
Home
'nsert
Page Layou formula Data Rev
willhave agreen
money
when the business has
B inthe bank,
E
Income
Balance
April $680 00 $320.00
May $1,020.03 s420.00
June $2,500.00 ZE30 30 S!.,510.0
July $2,800.00 $310.00 $1,820
August $2,250.00 $S30.02 St420.00
7
September $1,440.00 $715 03 S725.00
8
The cell will have a red background if the business is in debt. Being in
Laht means that the business has spent more money than it has received
on sales. If the business is in debt, this cellwill showa negative
pumber on a red background.
X
Spreadsthe
Iosert Page Layout Formulas Data Reviw View Hel PComments S Share
Home
A D E
1
Income Costs Balance
debt
rigure 2.3: Spreadsheet showing the business is in
149
2 Managing data
Practical,
task 2.1
Youwill
need: a desktop computer, laptop or tablet with
sourcefile 2.1_drama
society_accountmatting
Youaregoingto apply conditionali
s.xisxto ayouth drama
sOciety'saccountS spreadsheet ic sae y show.
e the society has
earnt more than it has spent on tts recent
Income
Ticketsales $2,050.0)
Merchandise sales $350.00
Refreshment sales $470.00
Totalsales $2,870.00
Costs
Building hire $800.00
Lighting hire $200.00
Costume hire $260.00
Merchandise costs $150.00
Refreshment costs $230.00
|Tcal costs $1,640.00
E ance $1,230.00
151
2 Managing data
Continued
Select cell C16. Select the conditional formatting option from the tool bar.
AutoSaveO9
Home Insert DrarmasoCietyAcKounts
Formulas
Sesrch (AkQ)
Paste
Catihr
- 11 A A E =
Data Reyiey Visy Help
nsert Comments
General Eoeete
it A K % 9 8 99
Conditional Format s Cell
Format Sort Find E
Clipboard Formatting Table Styles Filter Seiect
Font
Cells
H31 Alionment Number Styles
Eding
B
D F G H K
Income
Ticket sales $2,050.00
Merchandise sales $350.00
Refreshment
Total sales
sales $470.00
8
$2,870.0o Sales target $2,900.00
Costs
10 Building hire $800.00l
11 Lighting hire $200.00
12 Costumne hire $260.00
13 Merchandise costs $150.00
14 Refreshment
Total costs costs $230.00
15 $1,640.00
I6
17 Balance $1,230.0o
Sheeti
Ready
Acessíbility. Good to go
Display Settings
Figure 2.4: 'Conditional Formatting' button in
Microsoft Excel (highlighted, top, right ot centre)
InMicrosoft spreadsheet software, youwill see a
1 menu ot options:
Select the option 'Highlight Cels Rules'
2 Select the option 'Greater Than'.
This willopen a box. You can input
formattingto options on the right. lf youdataareforusing
the condition on the left and
choose
moment find out how to use the different spreadsheet software,
conditional formatting tools in your software.take a
Greater Than
? X
Format cells that are GREATER THAN:
152 >
2.1 Spreadsheets
Continueod
Greater Than' option is atype of rule. This is a rule that will formatthe cell if
tt
ontainsa value greater than another value.
The
Ticketsales $2,050.00
Merchandisesales $350.00
Refreshmentsales $470.00
$2,870.00
Totalsales
Costs
$800.00
Building hire
$200.00
Lichting hire
$260.00
Costume hire
$150.00
M.chandise costs
$230.00
|Rireshment costs
$1,640.00
Total costs
$1,230.00
Balance
greater than O is
lable 2.3: Cell C16
has avalue
it the value it contains
C16 red do this.
software to format cell
above to work out how to
to tellthe instructions yourrule.
TOunow need can use the the value in C3 to $800 to test
less than 0. See if you rule works. Change
new
Nowtest whether your
153
2 Managing data
Continued
conditional
Self-assessment
setthe
correct formatting?
optionsto
Did you manage to find the right
work? Ifit
Howdid you know which ones to choose
test
your rule
your rule? Did youthink you need to
did, dowhy
to
Did you change the value in cell red? Ifit didn't, what do
C3 to
isthe formatting for cell C16 now
make your rule work? you are using a
How confident did youteel doingthis
task?Show how
contident
smile or
a frown (or something in between!).
Continueã
celsthat
Fomat
are EQUAL TO:
formatting based on
Conditional
another cell have done has been based on the
you cell
the conditional formatting have told theformatting of
DO lar, formatting:you.
value in the cell you are the valuein cell C16. value in a
Cl6to change based on value in a cell based on the this.
youneedto
format the
will tell you howto do
Sometimes,
diferent cell. Thefollowing
practicaltask
155
2 Managing data
Talk to a partner.
Did you find it easy to choose which formatting to choose for the total
sales value or did you find it difficult?
Why did youchoose the formatting you did?
Did your partner choose the same tormatting as you?
Why did they choose the formatting they did?
Howeffective do youthink it was?
156 )
2.1 Spreadsheets
Activity
2.
Summary checklist
understand what a condition is.
conditional formatting to format a cell.
formatting depending on the data in the cell.
can use
Simu
Getting started spre
eet
What do you already moc
know?
Data is very useful for all kinds of organisations. We can use
data to help solve problems in industries such as
manutacturing and retail. We can health,
(look at it in detail to see what it collect toand analyse data
means) see
happened, why it has happened and what couldwhat has
be done to
change asituation.
Data can be entered into
can then be used to help spreadsheets. Spreadsheet tools
the data. investigate and make sense of
MA MJ}ASOND
2.2 Modelling
Continued
NoW
try
thi_1
Gabriel's
birthday. You need to plan a
n st o rGabriel
meal
and his tamily. You birthday
are qiven this celebration
(amilys
toO likes and dislikes: data about the
Name Favourite food
Food they do not likei
Carlos salad, pIZza, noodles
Sue
pasta, Carrots, Ice r
Gabriel seafood, salad,
Sebastian chicken, salad, past.
Anika CouscoUs, chicken, chocoat i, rce: burger
Table2.4:Datafor Gabriel's birthday meal
Income
Ticket sales $2,050.00
Merchandise sales $350.00
Refreshment sales $470.00
$2,900.00
Total sales $2,870.00 Sales target
Costs
Building hire $800.00
Balance $1,230.00
accounts spreadsheet
Table 2.5: Youth drama society
)2Modalling
stons22
the
Ailerent Iypesof
Labke
are the
data cellk information hae heen colour coded
colour arctthe
Hhat
labelk
coour are the
Hhat results of caleulattons
TheTotalsale
Ount in cel
Note:
acaluatIon. The Tc
addsu
C6stherestof
nderIncOme ahevaues
Ticket
otalsales=
sales
Unpluggedactivity
Youwill need: a pen anc Daper
the
calculation ior Total sales, we have just used the
To explain
abelson the spreadsheet rather than the values. The Total costs
Balance amounts in cells C14 and C16 are also calculation
slhs. On a piece ot paper, write down the correct calculations
inr these amounts USingthe labels.
What happens
if you change a value in
a spreadsheet?
canthen change
Unce aspreadsheet has labels, calculations and data, we that could be
effects)
e data to see the different outcomes (results or spreadsheet tosee
Poduced. For example. the drama society could use this the next time the
SI,500.00
Miat wouldhappen if building hire increased to
the total costs changeto?
cly needs to hire thetheatre. What would
161 )
2 Managing data
Continuecd
needsto know how much the
Gofia
depending on the price of the bike, monthly
fhom
whatehe's
saved, howW how
to pay back the loan. much interest her
repayment
much of the s and final cost wll be
cOst she can pay herself
takes parents charge and how long she
the fileo 2.2 bike
Open
model.xlsx and you should see Table 2.6:
Bike loan calculator
Costofbike:
Purchase prce of the bike
Deposit:
Amount Sofia can payby herself irom
her savings
Amount borrowed:
$0.00 How much her parents will lend her
(the loan)
Interest rate (%):
Percentage of the loan that her parents
will charge
Duration (years): Number of years Sofia would like to take
torepay the loan
Duration (months): " Number of months this is, and therefore
howmany payments
Monthly payment: #NUM! " Howmuch Sofia needs to pay her parents
back each month
Total amount to #NUM! " Howmuch Sofia will repay her parents
te repaid: in total
otal cost of bike: #NUM! " How much the bike will cost Sofia in total
163 >
2 Managing data
Continued is a
percentage ofithe loan
loan. This to help Sofia
Her parents will charge interest on the they are providing,interest
amount added on as a fee for the service setthe rate at 3%
parents WOuld like to
learn how a loan works. Sofia's parents to pay back
each month to her
Sofia will then paythe same amount
the loan and interest. Cost of bike:
Enter these values into the white cells in the
spreadsheet model: Deposit:
calculator will Interest rate (%):
When you enter these values, the loan
tell you: Duration (yearc):
how many monthly payments are needed Table 2.7: Data for
how much each monthly payment will be ctical task
the total amount Sofia will repay
at the end.
how much in total thebike willhave cost her
Questions
from her parents to buy the bike?
How much does Sofia need to borrow
youenter these values?
2
wnat is the monthly payment when
vouenter these values?
3 What is the total cost of the bike when
would really love, but it
Soia hasseen a more expensive bike that she manage a deposit of $110, and
costs $540.00. She thinks she might be able to rather than tWo. Her parents
she would prefer to pay back the loan in one year she will
part-time job
are willing to lower the interest rate to 2.5%. If she gets a enough left over for
be able to make amonthly payment of $30 and stillhave
other things.
Change the values in the loan model to find the answers to these questions:
4 What are the monthly payments for the more expensive bike?
5 WillSofia be able to pay the monthly payments and repay the whole loan
in one year?
6 What is the lowest deposit Sofia would need in order to be able to repay
the loan in one year?
7
What is the shortest loan duration that would result in monthly payments
Sofiacould afford? (Hint: the duration does not need to be whole years.)
You now know how to usea spreadsheet to model different scenarios, for example,
takingout a loan to help you buy something expensive.
2.2 Modeiling
spreadsheetcalculations
Tomakea snrcadsheet model. someone nccds to write the calculations
into
thecells that need them. This is done using a simple type ol code.
isa little bit like
whih programming.
Alc:alculations in asprcadshcet start with=, This tclis the sowate
thatyou want that cell to contain acaleulation. You can se
(netions, Or a mix of both to make
calculaions in a spreadsheel
Formulas are simple calculations that use
with numbers and/or comparso
(ihe colur elr
and-
number of another cell, for exampe D4). Iucludgc:Teto
calculation means that whatevervaluis in ht c i! witi o
ina
intheccalculation. Formulas look i hke smple sums you in.H
onpaper.
Functions are built-in chunks of code that iellthe spreadsheet to do
mething a bit more complex. They avoid us needing to write a long
irmula using lots of operators and cell references. Each function has
a name,
which we write after the = when We want to use the function.
The basic formulas and functions you should know are shown in
Table 2.8.
Questions 2.3
D6 do?
1 What does the calculation in cell
cell D14 do?
2 What does the calculation in cell D10
does?
calculation in
3
Can you work out what the
unction nceded"
Why is the ROUNDUP
particular
do a
How will you remember which formulas
examples of howyoumight
calculation? Can you think of any Do you finnd theformulas
use the formulas in your daily life? to makeit easier?
easy to use? If not, what could youdo
Activity 2.2
tablet with spreadsheet software
laptop or
You will need: a desktop computer,
cakes donations
bouncy castle hire drink sales
Table 29: The start ot a charity tair costs and income spreadsheet
2.2 Modelling
Continued
Costs ? ?
|Income
Drinks 500 $0.30 Ticket sales
Cakes 450 $0.50 Donations
Bouncy castle hire 1 $200.00 Drink sales
Cake sales
Face paints
Table 2.10: Charity fair costs and income spreadsheet being filled in
167 )
2 Managing data
Peer-assessment piece of
(red, amber and green) and a paper
You will need: three coloured cards
their
Listen to the presentation from each group about
Spreadsheet model. After each aroup has spoken, hold up
a red, amber or green card.
understood the design tor
A green card means you have
the spreadsheet model and feel confident that you can
answer questions about the design.
An amber card means you understand most of the design
but donot feel confident about answering questions
about it.
A red card means you do not understand the design tor
the spreadsheet model and need further explanation.
If you hold up an amber or a red card, think of one question
that you would like to ask the group about their presentation.
Simulators
You have seen hovw a spreadsheet can be used to model the
possible outcomes of a scenario. Another type of computerdifferent
that can be used for modelling is a program
simulator.
system that can beused to mimic real-life
A simulator is a computer
imitate or behave the same way as something.situations. To mimic means to
research or for training people. Here are some Simulators can be used for
examples ofsimulators.
Simulators
Before a pilot is
in pilot training
allowed to fly an aeroplane, they are
simulator. This much safer than training in a real trained in a flight
is
looks like a real cockpit (pilot's plane. The simulator
compartment)
displays and controls, but it has with all the same
These screens then show the pilot computer screens instead of windows.
what
really flying the plane. The pilot can they would see if they were
controls and learn how to see what happens when they use the
fly
effectively, without needing to actually fly.
168
2.2 Modelling