Professional Documents
Culture Documents
input username
if username exists
go to step 1
else:
enter password
if password does not exists then
go to step 4
Answer:
Activity 2:
Re-order the written description of algorithm, so that the algorithm will run as expected.
Turn toaster on. cut one slice from the end of the loaf of bread
put the slice of bread in the toaster
Put toasted bread on a plate.
turn toaster on
Put the slice of bread in the toaster. wait for toaster to finish
Cut one slice from the end of the loaf of bread. put toasted bread on a plate
Spread butter on toast. spread butter on a toast
List of instructions:
Start
Stop
Extension Activity:
When you enter a search term into Google, a list of links to websites is returned. But
why are they presented that particular order?
Research the PageRank algorithm that Google uses to rate the importance of
websites and write a short report about your findings.
That is because they are put in order of the websites that have
been viewed more
The page rank algorithm uses a rating of importance which is defined measure where a page becomes important
only if there are a lot of good ratings on the page which leads to better websites being promoted