Monday, 10 October 2016

Numbers

Sieve of Eratosthenes


Eratosthenes (275-194 B.C., Greece) devised a 'sieve' to discover prime numbers. A sieve is like a strainer that you use to drain spaghetti when it is done cooking. The water drains out, leaving your spaghetti behind. Eratosthenes's sieve drains out composite numbers and leaves prime numbers behind.
To use the sieve of Eratosthenes to find the prime numbers up to 100, make a chart of the first one hundred positive integers (1-100):

  1. Cross out 1, because it is not prime.
  2. Circle 2, because it is the smallest positive even prime. Now cross out every multiple of 2; in other words, cross out every second number.
  3. Circle 3, the next prime. Then cross out all of the multiples of 3; in other words, every third number. Some, like 6, may have already been crossed out because they are multiples of 2.
  4. Circle the next open number, 5. Now cross out all of the multiples of 5, or every 5th number.
Continue doing this until all the numbers through 100 have either been circled or crossed out. You have just circled all the prime numbers from 1 to 100!



Monday, 12 September 2016

Q29 polytech imagemap

<img src ="http://www.studyappliedsciences.co.nz/wp-content/uploads/Otago-Poly-air-SM-sm.jpg"
width="1200" height="785" border="0"
alt="Solar system"
usemap ="#SolarSystem Map">

<map id ="SolarSystem Map"
name="SolarSystem Map">
  <area shape ="circle" coords ="649,221,60"
  href ="http://www.signalgroup.co.nz/media/4817/GWP_mg_3878.jpg" target="_blank" alt="Hub">
  <area shape ="rect" coords ="820,429,1080,530"
  href ="https://3dwarehouse.sketchup.com/warehouse/getpubliccontent?contentId=e7658e11-0a66-49ff-aa15-6bc573fef1da" target="_blank" alt="D Block">
  <area shape ="circle" coords ="190,510,50"
  href ="http://www.masonandwales.com/store/images/Comm_17_SBlock_01-big.jpg" target="_blank" alt="S block">
  <area shape ="circle" coords ="60,310,50"
  href ="http://www.otago.ac.nz/library/robertson/" target="_blank" alt="Robertson Libary">
 
 

Q 32

<body bgcolor="#E6E6FA">

<h2 style="background-color:red">
LOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOL
</h2>

<style>
p.serif {
    font-family: "Times New Roman", Times, serif;
}

p.sansserif {
    font-family: Arial, Helvetica, sans-serif;
}

h1 {
    text-align: center;
}

h2 {
    text-align: left;
}

h3 {
    text-align: right;
}

</style>
</head>
<body>

<p><font size="6">HI</font></p>
<h1>CSS font-family</h1>
<p class="serif">This is a paragraph, shown in the Times New Roman font.</p>
<p class="sansserif">This is a paragraph, shown in the Arial font.</p>

<h1>This is heading 1</h1>

<h2>This is heading 2</h2>

<h3>This is heading 3</h3>


</body>

</style>
</head>

Tuesday, 6 September 2016

Q.34 , 36 , 26

<p><b><strong><i> <sup><mark>Hello</sup>My name is <del>Nick</del><ins>Morgoth the Destroyer</ins></b></strong></i></mark></p>

<p><abbr>WHO</abbr></p>

<address>
Nick is God.<br>
Visit us at:<br>
NickIsGod.com<br>
Box 564, NickIsGod<br>
Mordor
</address>

<bdo dir="rtl">Nick Alexander</bdo>

<p><cite>GOD</cite> Is Nick</p>

<blockquote><q>
Hello there
<q/></blockquote>

<img src="https://media.giphy.com/media/3oz8xQLHtJ5cIEnEaI/giphy.gif" alt="Cat gif" style="width:648px;height:448px;">

Task 30 Image map

<img src ="http://examples.quackit.com/pix/mueller_hut/mueller_hut_t.jpg"
width="225" height="151" border="0"
alt="Mueller Hut, Mount Cook, and I"
usemap ="#muellermap">

<map id ="muellermap"
name="muellermap">
  <area shape ="circ" coords ="104,90,5"
   href ="http://cdn6.viralscape.com/wp-content/uploads/2014/07/Scary-GIF-19.gif" target="_blank" alt="Person">
  <area shape ="poly" coords ="55,55,120,80,90,80,90,100,70,100,20,80,55,55"
  href ="http://en.wikipedia.org/wiki/Mount_Cook" target="_blank" alt="Mount Cook">
  <area shape ="poly" coords ="145,80,145,100,215,90,215,80,180,60,145,80"
  href ="http://www.natural-environment.com/places/mueller_hut.php" target="_blank" alt="Mueller Hut">
</map>



Monday, 5 September 2016

Solar system code


Code For solar System


<img src ="https://i.kinja-img.com/gawker-media/image/upload/s--LQHnMsqC--/18gs3pzs6vtcnjpg.jpg"
width="1200" height="720" border="0"
alt="Mueller Hut, Mount Cook, and I"
usemap ="#SolarSystem Map">

<map id ="SolarSystem Map"
name="SolarSystem Map">
  <area shape ="circle" coords ="750,250,30"
  href ="https://i.ytimg.com/vi/yzqbN6z8ncc/maxresdefault.jpg" target="_blank" alt="Venus">
  <area shape ="circle" coords ="562,440,40"
  href ="http://solarviews.com/raw/earth/bluemarblewest.jpg" target="_blank" alt="earth">
  <area shape ="circle" coords ="328,325,20"
  href ="http://www.gizmodo.in/photo/51683959/This-Mineral-Deposit-May-Provide-Definitive-Evidence-of-Water-On-Mars.jpg" target="_blank" alt="Mars">
  <area shape ="circle" coords ="512,313,15"
  href ="http://fullhdpictures.com/wp-content/uploads/2015/12/Mercury-Wallpaper-HD.jpg" target="_blank" alt="Mercury">
  <area shape ="circle" coords ="172,650,100"
  href ="https://i.ytimg.com/vi/KIGw5RRse7k/maxresdefault.jpg" target="_blank" alt="Jupitar">
  <area shape ="circle" coords ="145,40,15"
  href ="http://nineplanets.org/nh-charon-neutral-bright-release.jpg" target="_blank" alt="Pluto">
  <area shape ="circle" coords ="132,270,30"
  href ="http://www.celestialreference.com/wp-content/uploads/2014/11/Uranus-planet.jpg" target="_blank" alt="Uranus">
  <area shape ="circle" coords ="351,120,30"
  href ="http://static1.squarespace.com/static/5466bceae4b0be5980a12a7a/t/54e957bae4b08db9da864d33/1424578499153/photodune-6389763-neptune-m+(1).jpg?format=1500w" target="_blank" alt="Neptune">
  <area shape ="circle" coords ="1069,70,50"
  href ="http://nssdc.gsfc.nasa.gov/planetary/image/saturn.jpg" target="_blank" alt="Saturn">
  <area shape ="circle" coords ="597,290,40"
  href ="http://i.dailymail.co.uk/i/pix/2012/12/05/article-2243291-137A213B000005DC-540_634x547.jpg" target="_blank" alt="Sun">

</map>


Tuesday, 23 August 2016

Scripts

<h1>HI</h1>
<h2>HI</h2>
<h3>HI</h4>
<h5>HI</h5>
<h4>HI</h4>
<h6>HI</h6>


<i>HI</i>
<b>hi</b>
<u>hi</u>

<a href="https://en.wikipedia.org/wiki/Dunedin"> Visit Dunedin wiki page</a>

<img src="https://media.giphy.com/media/12zi3fytrxlr9u/giphy.gif" alt="HTML5 Icon" style="width:528px;height:528px;">

<h1>Universal Studios Presents</h1>

<h2>Jurassic Park</h2>


<h3>About</h3>