12:37 AM

CONVERTING BINARY TO IP ADDRESS AND VICE VERSA


To convert binary into IP address:

- Fill in the table with all the numbers in the code. For each row, list the number which contains the binary 1. Add up the numbers. Do this to all the rows. Arrange the sum into a 4 8 bit octects

64+16+8+4+2= 94
16+4= 20
128+64+2+1= 195
128+64+16+8+4= 220

Code = 94.20.195.220



The code given : 216.1.21.171


To convert IP address into 32 bit binary code:


- Take the first number(216) and subtract the first number from the left(128). If this result in a positive answer, write the number 1 into the first box. Use this answer to subtract the next number along the row. If this gives a negative number, write the number 0 in the box but do not proceed with the subtraction. Instead use the number for the next one in the row. Repeat this for all the row to produce the binary code

The 32-bit binary had been given so we need to find the IP address by using this method:

216-128-64-16-8= 0
1-1= 0
21-16-4-1= 0
171-128-32-8-2-1= 0



5:03 AM

HTML

Assalamualaikum. Hey guys!


This is our first post! This first week being in Computer Science class, we learnt about HTML. What is HTML, you might ask. Well, HTML is the abbreviation for Hypertext Markup Language. With HTML, you can create your own website. HTML is not a programming language, it is a markup language; a set of markup tags. HTML uses markup tags to describe the appearance of webpages. It is not a case sensitive language. HTML documents contain HTML tags and plain text. 

Where do you write HTML code?

HTML code can be written and modified using professional HTML editors. However, for new learners of HTML like ourselves, a simple text editor such as Notepad (PC) or Textedit (MAC) can be used.

- All HTML documents start with <!DOCTYPE html>

- The <!DOCTYPE html> declaration defines this document to be HTML 5
-The <html> element is the root element of an HTML page
- The HTML itself begins with <html> and ends with </html>
- The <head> element contains meta informatio about the document
- The <title> element specifies a title for the document
- Followed by <body> which is ended with </body>
- The <body> element contains the visible page content
- The<h1> element defines a large heading
- The <p> element defines a paragraph
- Once the HTML is written, it is saved by a selectng; File ---> Save As
- The file is named e.g; "File.html" and the encoding is set to "UTF-8" (a preferred encoding for HTML files). Click "Save".
- To view the HTML, open the file by double clicking the file or right- click and choose "Open with"

What is <!DOCTYPE> Declaration?


- The <!DOCTYPE> declaration represents the document type, and helps browsers to display web pages correctly. It must only appear once, at the top of the page, before any HTML tags. The <1DOCTYPE> declaration is not case sensitive. The <!DOCTYPE> declaration for HTML is: <!DOCTYPE html>


What is the most recent of HTML?


There are three versions of HTML still in regular use around the Internet. They are HTML 3.2, HTML 4.0 and HTML 4.01.


What are the codings in HTML?



  
This is how you create the first heading and paragraph

 
This is how you create multiple headings

  
This is how you create multiple paragraphs

  
This is how you insert an image

 
This is how you insert a table

  
This is how you insert a link

By saving the file under "file.html" you can view the webpage in the browser

STANDARD DEVIATION AND VARIANCE


These are the formulas for finding the variance and standard deviation of a certain population.

CORRELATION COEFFICIENT , R


The picture above shows the definition of r which is the correlation coefficient.




Lumos

Lumos

Lumos

Lumos

Lumos

Lumos