Comp Sci Notes
Comp Sci Notes
Means hiding detail and only using relevant detail it's a representation reality, using symbols to show real-life features or irrelevant
features left out. Examples: Road symbols so users can practise obeying these when driving, road number symbol, colour codings. Software is modular. Reusable components is modular,, example is an
object. Modules can be transplanted into new software. Or shared at run time, through the use of program libaries. Zebra crossing so user can practise slowing down. PEdestrian so user can practice
looking out for and avoiding pedestrians. Increase chance of creating program successfully, reduce programming time and factors that can detract from the program. Environment not shown,
33
movements reduced, time may not be represented as minutes, seconds. Reduces complexity of programming, requires less computational power so the game can be played on lower spec devices like
phonesm focus on the core aspects of the program rather than extras, too much abstraction can detract from the appeal of the game, may be too simplistic, to engage users. Virtual V Rueal, remove of
feature like stations, or might not be to scale, so distances may not be true. Think Ahead- Target temp- integer, wheel movement- boolean, engine running- boolean, internal temp- integer, external temp-
Abstraction- process of separating ideas from particular instances. Means hiding detail and only using relevant detail it's a representation reality, using symbols to show real-life features or irrelevant features left out.
internal.
Examples: Road symbols so users can practise obeying these when driving, road number symbol, colour codings. Software is modular. Reusable components is modular,, example is an object. Modules can be transplanted into
new software. Or shared
Itemsatofrun time,
data- throughData,
Popularity the use ...........................................................................................................................................
of program
Platforms libaries.
available, Zebracharged,
Prices crossingDoes
so user canalready?
it exist practise Number
slowing down. PEdestrian
of something, so user
Speed, can practice
Altitudes, Rate Oflooking out for and avoiding pedestrians. Increase chance of
Acceleration.
creating program successfully, reduce programming time and factors that can detract from the program. Environment not shown, movements reduced, time may not be represented as minutes, seconds. Reduces
complexity of programming, requires less computational power so the game can be played on lower spec devices like phonesm focus on the core aspects of the
Questionaire-Set of Questions given out to potential users to fill in and return. Interview- face to face discussions where potential users are asked questions, program rather than extras, tooWhere
Obeservation- much abstraction
users of thecan detract
existing
from the appeal of the game,aremay be too simplistic, to engage users.
thatVirtual V Rueal, remove
storedof
infeature
cache inlike stations, or might
again,not be to scale,access
so distances mayuse.
not Example
be true. Think
'StoreAhead- Target temp- integer, wheelinmovement-
system
boolean, engine running-
observed
boolean,startGame-load
simulation'. internal temp- integer, ...........................................................................................................................................
using it. Caching-Data
external temp-
game displaying
has been
internal.
the load-up
used is case it is need allows faster for future patients details'
screen, displayMap- outputs the map onto the screen. selectArea- user clicks on the area of the map and this is displayed on screen.
'Design of people
Decomposition- breaking down a complex problem or system into smaller parts that can be represented as a self contained subroutine. Makes project easier to manage, as different software
Items of data- Popularity Data, Platforms available, Prices charged, Does
development teams can be assigned to separate sections of theit exist already? Number ofto
code according something, Speed, Altitudes, Rate Of Acceleration.
their specialisms.
Questionaire-Set ofBarcode
Questions ofgiven
item purchased
...........................................................................................................................................
out to potential readusers to fill in and
at checkout, return.
barcode Interview-
compared with face to facestored
barcodes discussions wherenumber
on stockfile, potential ofusers
something are asked questions, Obeservation-
is decremented, new value compared Where users with the of thefield existing
containg system are observed
the minimum
using it. Caching-Data numberthat has beenare
of thing used is stored
allowed. in cacheof
If number insomething
case it is need again,
is less than allows
minimum faster access
stock andfor futureisuse.
no order Examplefor
outstanding 'Store
thispatients
item. details' 'Design of people in simulation'. startGame-load game displaying the
load-up screen, displayMap- outputs the map onto the screen. selectArea- user clicks on the area of the map and this is displayed on screen. Decomposition- breaking down a complex problem or system into smaller parts
that can be represented as a selfmay
No function contained
be longer ...........................................................................................................................................
subroutine.
than a single Makes page project
of code: easier
this tois tomanage,
reduceas different software
complexity development
and aid readability. teams
Variable can be assigned
identifiers must conform to separate sections
to a standard of the codethis
convention: according
helps other to their specialisms.
to understand the code
and reduces the likelihood of duplication, makes maintenance easier.
Barcode of item purchased read at checkout, barcode compared with barcodes stored on stockfile, number of something is decremented, new value compared with the field containg the minimum number of thing are allowed.
If number of something is less than
Concurrent minimumOne
Processing- stock and nodoes
process ordernot is outstanding
have to finish for this item.
before the other starts- example plane can move independently, all move at the same time, each element needs to be run simultaneuously,
wind, rain direction of air. ...........................................................................................................................................
No function may be longer than a single page of code: this is to reduce complexity and aid readability. Variable identifiers must conform to a standard convention: this helps other to understand the code and reduces the
likelihood of duplication, makes maintenance
Processes are happeningeasier. at the same time, one 1 process can happen at a time on a single core processor, concurrent tries to simulate multiple processes. Multiple orders can be made and added to the
...........................................................................................................................................
list at the same time, programming will need to allow multiple threads to manipulate a single list.
Concurrent Processing- One process does not have to finish before the other starts- example plane can move independently, all move at the same time, each element needs to be run simultaneuously, wind, rain direction of air.
WIll allow for multiple orders at the same time as it would happen in real life. Access to the linked list will need to be limited so it cant be accessed. Not all of the process will be paralleliseable. X
Processes are happeningprocessors at thedoesnt
same time,meant one it 1
willprocess can happen
run in 1/xth at a time
of the time of one onprocessor.
a single core processor, concurrent tries to simulate multiple processes. Multiple orders can be made and added to the list at the same time,
...........................................................................................................................................
programming will need to allow multiple threads to manipulate a single list.
Local Variables-Defined within 1 module, accessible only in that module, can be used as parameters, data is lost at the end of the module. 2 features of global variables that distinguish them from local-
WIll allow for multiple ordersat
Defined atstart
the same time asexist
of program, it would happen program.
throughout in real life. Variable
Access is tothe thename/identifier
linked list will need of ato be limited
memory so it cant
location used betoaccessed.
store data.Not all ofmeans
Scope the process a range willofbe paralleliseable.
statements that a Xvariable
processors doesnt
is valid for. Itmeant
takesit will
run in 1/xth of the time of one processor.
precedence over a glboal variable of the same name allowed to be used for diff purposes without conflict. Global are defined at start of program, can be seen everywhere in program. Local only be seen in
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
instruction of high level code represent many instr of machin code, same code will work for many diff machine y processors, programmer can easily store data in lots of diff structure without knowing about the
...........................................................................................................................................
memory structure, code is easy to read and understand and modify, must be translated b4 computer is able to understand, program will be less mem efficient and slower. Low Level factor- 1 instruction of
assembly code usually only represents 1 instruction of\ machine code, usually written for 1 type of machine or processor. Programmer needs to know about internal structure of cpu and how it manage
memory, code is difficult to read understand and modify, program are more memory effeient and faster. Procedural programming language- A high level language gives a series of instructions in a logical order.
...........................................................................................................................................
Variable can be used by delcaring that variable as a local variable in each procedure. Accessible within one proceudre at a time.
Parameter Passing- parameter passed by value or by reference. By value, local copy of data is used then discarded, so value of og data is used then discarded, so value of og data is unchanged, by reference,
location of data is used so changes may be made to value of data.
...................................................................................................................................... [9]
© OCR 2022