{"id":30,"date":"2022-05-06T10:19:14","date_gmt":"2022-05-06T09:19:14","guid":{"rendered":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/?page_id=30"},"modified":"2022-05-10T19:25:00","modified_gmt":"2022-05-10T18:25:00","slug":"data-representation","status":"publish","type":"page","link":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/data-representation\/","title":{"rendered":"Binary"},"content":{"rendered":"<h2 style=\"color: red\">Binary and Decimal<\/h2>\n<p><strong>Decimal<\/strong> means numbers are written in base 10 using the digits 0 to 9<\/p>\n<p><strong>Binary<\/strong> means numbers are writtenmin base 2 using the digits 0 and 1<\/p>\n<p><strong>Computer systems use binary numbers to encode all information because<\/strong><\/p>\n<ol>\n<li>Electronically it is easier to represent just two values<\/li>\n<li>It is easier to build electronic circuitry for carrying out calculations when only two values are involved<\/li>\n<li>The significant advances in hardware mean that it is possible to store and process enormous quantities of digital information (information that is held in codes made up of 1s and 0s)<\/li>\n<\/ol>\n<h2 style=\"color: red\">Converting Decimal to Binary<\/h2>\n<div style=\"width: 625px;\" class=\"wp-video\"><!--[if lt IE 9]><script>document.createElement('video');<\/script><![endif]-->\n<video class=\"wp-video-shortcode\" id=\"video-30-1\" width=\"625\" height=\"352\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phsn5computingscience\/uploads\/sites\/10033\/2022\/05\/10143449\/Number-to-Binary.mp4?_=1\" \/><a href=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phsn5computingscience\/uploads\/sites\/10033\/2022\/05\/10143449\/Number-to-Binary.mp4\">https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phsn5computingscience\/uploads\/sites\/10033\/2022\/05\/10143449\/Number-to-Binary.mp4<\/a><\/video><\/div>\n<p>&nbsp;<\/p>\n<p><strong>What is 73 in binary?<\/strong><\/p>\n<p>The column headings are always <strong>(right to left)\u00a0 1, 2, 4, 8, 16, 32, 128<\/strong> and so on. These are powers of 2.<\/p>\n<table style=\"height: 142px\" width=\"592\">\n<tbody>\n<tr>\n<td width=\"39\">\n<h3 style=\"text-align: center\"><strong>128<\/strong><\/h3>\n<\/td>\n<td style=\"text-align: center\" width=\"38\">\n<h3><strong>64<\/strong><\/h3>\n<\/td>\n<td style=\"text-align: center\" width=\"38\">\n<h3><strong>32<\/strong><\/h3>\n<\/td>\n<td style=\"text-align: center\" width=\"38\">\n<h3><strong>16<\/strong><\/h3>\n<\/td>\n<td style=\"text-align: center\" width=\"38\">\n<h3><strong>8<\/strong><\/h3>\n<\/td>\n<td style=\"text-align: center\" width=\"38\">\n<h3><strong>4<\/strong><\/h3>\n<\/td>\n<td style=\"text-align: center\" width=\"38\">\n<h3><strong>2<\/strong><\/h3>\n<\/td>\n<td style=\"text-align: center\" width=\"38\">\n<h3><strong>1<\/strong><\/h3>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\" width=\"39\">\n<h3><strong>0<\/strong><\/h3>\n<\/td>\n<td style=\"text-align: center\" width=\"38\">\n<h3><strong>1<\/strong><\/h3>\n<\/td>\n<td style=\"text-align: center\" width=\"38\">\n<h3><strong>0<\/strong><\/h3>\n<\/td>\n<td style=\"text-align: center\" width=\"38\">\n<h3><strong>0<\/strong><\/h3>\n<\/td>\n<td style=\"text-align: center\" width=\"38\">\n<h3><strong>1<\/strong><\/h3>\n<\/td>\n<td style=\"text-align: center\" width=\"38\">\n<h3><strong>0<\/strong><\/h3>\n<\/td>\n<td style=\"text-align: center\" width=\"38\">\n<h3><strong>0<\/strong><\/h3>\n<\/td>\n<td width=\"38\">\n<h3 style=\"text-align: center\"><strong>1<\/strong><\/h3>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ol>\n<li>Does 128 go into 73? &#8211; The answer is no, so we put a 0<\/li>\n<li>Does 64 do into 73? &#8211; The answer is yes, so we put a 1 &#8211; with a remainder of &#8211; (73-64 = 9)<\/li>\n<li>Does 32 go into 9? &#8211; The answer is no, so we put a 0<\/li>\n<li>Does 16 go into 9? &#8211; The answer is no, so we put a 0<\/li>\n<li>Does 8 go into 9? &#8211; The answer is yes, so we put a 1 &#8211; with a remainder of &#8211; (9-8 = 1)<\/li>\n<li>Does 4 go into 1? &#8211; The answer is no, so we put a 0<\/li>\n<li>Does 2 go into 1? &#8211; The answer is no, so we put a 0<\/li>\n<li>Does 1 go into 1? &#8211; The answer is yes, so we put a 1<\/li>\n<\/ol>\n<p>Put 1s and 0s in the right columns so that the numbers add up to 73<\/p>\n<h3><strong>64 + 8 + 1 =73<\/strong><\/h3>\n<p><strong>Answer: 73 in decimal = 01001001 in binary<\/strong><\/p>\n<h2 style=\"color: red\">Converting\u00a0 Binary to Decimal<\/h2>\n<div style=\"width: 625px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-30-2\" width=\"625\" height=\"352\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phsn5computingscience\/uploads\/sites\/10033\/2022\/05\/10143802\/Binary-to-Number-.MOV.mp4?_=2\" \/><a href=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phsn5computingscience\/uploads\/sites\/10033\/2022\/05\/10143802\/Binary-to-Number-.MOV.mp4\">https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phsn5computingscience\/uploads\/sites\/10033\/2022\/05\/10143802\/Binary-to-Number-.MOV.mp4<\/a><\/video><\/div>\n<p>What is 11001110 in binary?<\/p>\n<p>The column headings are always <strong>(right to left)\u00a0 1, 2, 4, 8, 16, 32, 128<\/strong> and so on. These are powers of 2.<\/p>\n<table style=\"height: 142px\" width=\"592\">\n<tbody>\n<tr>\n<td width=\"39\">\n<h3 style=\"text-align: center\"><strong>128<\/strong><\/h3>\n<\/td>\n<td style=\"text-align: center\" width=\"38\">\n<h3><strong>64<\/strong><\/h3>\n<\/td>\n<td style=\"text-align: center\" width=\"38\">\n<h3><strong>32<\/strong><\/h3>\n<\/td>\n<td style=\"text-align: center\" width=\"38\">\n<h3><strong>16<\/strong><\/h3>\n<\/td>\n<td style=\"text-align: center\" width=\"38\">\n<h3><strong>8<\/strong><\/h3>\n<\/td>\n<td style=\"text-align: center\" width=\"38\">\n<h3><strong>4<\/strong><\/h3>\n<\/td>\n<td style=\"text-align: center\" width=\"38\">\n<h3><strong>2<\/strong><\/h3>\n<\/td>\n<td style=\"text-align: center\" width=\"38\">\n<h3><strong>1<\/strong><\/h3>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\" width=\"39\">\n<h3><strong>1<\/strong><\/h3>\n<\/td>\n<td style=\"text-align: center\" width=\"38\">\n<h3><strong>1<\/strong><\/h3>\n<\/td>\n<td style=\"text-align: center\" width=\"38\">\n<h3><strong>0<\/strong><\/h3>\n<\/td>\n<td style=\"text-align: center\" width=\"38\">\n<h3><strong>0<\/strong><\/h3>\n<\/td>\n<td style=\"text-align: center\" width=\"38\">\n<h3><strong>1<\/strong><\/h3>\n<\/td>\n<td style=\"text-align: center\" width=\"38\">\n<h3>1<\/h3>\n<\/td>\n<td style=\"text-align: center\" width=\"38\">\n<h3><strong>1<\/strong><\/h3>\n<\/td>\n<td width=\"38\">\n<h3 style=\"text-align: center\"><strong>0<\/strong><\/h3>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Put 1s and 0s in the correct columns headings as shown above.<\/p>\n<h3><strong>128 + 64 +\u00a0 8 + 4 + 2 = 206<\/strong><\/h3>\n<p><strong>Answer: 11001110 in binary = 206 in decimal<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Binary and Decimal Decimal means numbers are written in base 10 using the digits 0 to 9 Binary means numbers are writtenmin base 2 using the digits 0 and 1 Computer systems use binary numbers to encode all information because Electronically it is easier to represent just two values It is easier to build electronic [&hellip;]<\/p>\n","protected":false},"author":79984,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-30","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/pages\/30","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/users\/79984"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/comments?post=30"}],"version-history":[{"count":13,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/pages\/30\/revisions"}],"predecessor-version":[{"id":174,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/pages\/30\/revisions\/174"}],"wp:attachment":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/media?parent=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}