Friday 17 June 2016

Task 37

Here is a table I made of the top 5 films in 2012 as listed on IMDB and the star ratings of them.



1) The Dark Knight Rises (8.5/10)



2) The Hobbit: An Unexpected Journey (7.9/10)



3) The Avengers (8.1/10)



4) Brave (7.2/10)




5) The Amazing Spider-Man (7.0/10)





The HTML code for the graph:

<!DOCTYPE html>
<html>
<body>
<style>
table, th, td {
     border: 1px solid black;
     border-spacing: 2px;
     background-color: lightblue;
}
</style>

<table style="width:60%">
   <tr>
    <td></td>
    <td><b>Movies</b></td>
    <td><b>Stars</b></td>
  </tr>
 <tr>
    <td>1</td>
    <td>The Dark Knight Rises</td>
    <td>8.5/10</td>
  </tr>
  <tr>
    <td>2</td>
    <td>The Hobbit: An Unexpected Journey</td>
    <td>7.9/10</td>
  </tr>
  <tr>
    <td>3</td>
    <td>The Avengers</td>
    <td>8.1/10</td>
  </tr>
  <tr>
    <td>4</td>
    <td>Brave</td>
    <td>7.2/10</td>
  </tr>
  <tr>
    <td>5</td>
    <td>The Amazing Spider-Man</td>
    <td>7/10</td>
  </tr>
</table>

</body>
</html>

Numbers Task 4 and 4.1

I generated a list of 200 random numbers between 1 and 100. The average of this list was 50, however this change when the list changes. I used a line chart to graph these numbers.




I generated a list of 100 random numbers between 1 and 1000. The average of this list was 774.5, however this change when the list changes. I used a line chart to graph these numbers.


Numbers Task 9

Here is another table showing the prime numbers up until 100 using the sieve of Eratosphenes.




The prime numbers are blue/underlined, the even numbers are all orange and all the other non-primes are grey. The only prime number that is not blue is 2 as it is also an even number.

Numbers Task 8

Using the sieve of Eratosthenes here is a list of all the prime numbers between 1 and 100.



The prime numbers are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89 and  97.

Numbers Task 3.5

The Sieve of Eratosthenes is a simple algorithm for finding all prime numbers up to any given limit. It does this by striking out all the multiples of prime numbers such as 2, 3, 5 and 7. First we strike out the multiples of 2, then the multiples of 3, then the multiples of 5 and then the multiples of 7. What is left are the prime numbers.




The Prime numbers in this table have been underlined and the ones that are not prime and have been marked.

Numbers Task 10 and 11

Here is a list of prime numbers:



Visit this website to see more: Prime Number List.

The biggest known prime number so far is 274,207,281 − 1, a number with 22,338,618 decimal digits. It was found in 2016 by the Great Internet Mersenne Prime Search (GIMPS).

Task 25.3

Trying out all the formatting, quotation and citation tags at w3schools.





The HTML code:

<!DOCTYPE html>
<html>
<body>
<p><cite>WWF's</cite> goal is to: <q><mark><del>Build a future where people live in <i>harmony</i> with <em>nature</em>.</del></mark></q></p>
<blockquote cite="http://www.worldwildlife.org/who/index.html">
 For 50 years, <abbr title="World Wildlife"><b>WWF<b></abbr> has been protecting the future of nature.
The world's leading conservation organization,
<strong>WWF</strong> works in <sub>100</sub> countries and is supported by
1.2 million members in the United States and
close to <sup>5</sup> million globally.
</blockquote>
<address>
<small>WWF</small>-New Zealand<br>
 Level 6, Davis Langdon House<br>
 49 Boulcott Street<br>
 Wellington Central 6011<br>
 New Zealand<br>
</address>
<br>
<bdo dir="rtl">WWF's goal is to: <q>Build a future where people live in harmony with nature.</bdo>
</body>
</html>