Monday, October 20, 2014

Using pre-written HTML scripts. An example

Most of your ideal HTML scripts are already available on the Internet. For example at the scripts section of Quackit we can see, for instance the scripts to do with marquees, which are rolling banners on your page.

Let's take the first one below:



Find a simple HTML file to insert your new code into, so as to test it.


Copy the text into your code template:

<marquee behavior="slide" direction="left">Your slide-in text goes here</marquee>

to make the following  file.

<!DOCTYPE html>
<html>
<head>
<title>HTML Tutorial Example</title>
</head>
<body>
<p>Less than 5 minutes into this HTML tutorial and
I've already created my first homepage!</p>
<marquee behavior="slide" direction="left">Your slide-in text goes here</marquee>
</body>
</html>

Then test your code in a browser.


Monday, October 13, 2014

Number systems

Current systems

Some older systems



One to one correspondence came first.





Number tasks

Maths for CIT

Starting concepts. Scope of what we’re doing.
Short history of numbers.
Patterns in numbers.
Random numbers. Generating random numbers in Excel using RND() and RNDBETWEEN()
Eg 1,2,3
5,10,15,20
3,9,27,81,
Visualising patterns
Linear graphs and others.
Factors, multiples, divisor. The MOD function in Excel.
LCM GCD  functions in Excel.

Tasks:
1.)
Project. Create a stand-alone web page that illustrates some part of the history of numbers. It should have at least 5 pictures and contain tables, lists and a small form. (You do not have to use the results of the form.) A total of 10 different tags should be used.  Be prepared to talk to the class about your page. Think about colour, layout, style, tone, grammar  and spelling. This is worth 5% of the final assessment. Due Friday 24 October  5pm.

2)Write a spreadsheet which graphs y=3*x from x=0 to x=20. Take a screenshot for your blog.

3)Also do y = x+4, y=x-2, y=2*x, y=2*x + 1, y = 3*x, y= 3*x +2, y= 3*x – 2, y= 5*x, y = 100*x, y = -2*x. Put the graphs into your blog .

3.5) Write a paragraph in your blog explaining how the Sieve of Eratosthanes works. Construct a table that shows the Sieve and write down the first 20 prime numbers. If possible use colour and fonts to show the number patterns. 

4)Randoms
Generate a list 200 random numbers between 0 and 100 using RANDBETWEEN()
Add up the numbers in your list. What is the average number? Can you work out how to graph this list.
4.1)Randoms
Generate a list 100 random numbers between 0 and 1000 using RANDBETWEEN()
Add up the numbers in your list. What is the average number? Can you work out how to graph this list.
4.2)Randoms
What is the longest list of randoms  between 1 and 100 you can do in Excel using RANDBETWEEN().
Add up the numbers in your list. What is the average number? Can you work out how to graph this list.
4)Randoms
Generate a list 200 random numbers between 0 and 100 using RANDBETWEEN()
Add up the numbers in your list. What is the average number? Can you work out how to graph this list.

5) Do the same as above but this time use 600  random numbers between 1 and 6. This is simulation for dice. Use COUNTIF() to count the number of 1’s, 2’s, … 6’s thrown . Copy your results into a HTML table for your blog and add a sentence about what’s in the table. What were you expecting?

6) Repeat, but this time simulate 1000 tosses of a coin. (So you just want a big list or 0,s and 1,s). Write up your results in the same way. 

7) Make a list of 100 random numbers between 0 and 100. Add them up and divide by 100 to give you the average. You can recalculate several times by pressing F9. Put in your blog three different averages with a suitable sentence.

8) Same as 7 but this time use 1000 numbers between 0 and 100. Your averages should be a bit closer to 50.

9) Make a list of 1000 random numbers and beside each number calculate the remainder when divided by 5 by using =MOD(number,5). Draw a graph of your results and put into your blog with a suitable message.

Tuesday, August 5, 2014

Have a look at this site ( the best browser is ..) and do the associated task. This has made some people review their favorite browser.