{"id":2282,"date":"2019-04-15T14:52:56","date_gmt":"2019-04-15T13:52:56","guid":{"rendered":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/?p=2282"},"modified":"2019-04-15T15:01:51","modified_gmt":"2019-04-15T14:01:51","slug":"n5-cs-data-representation","status":"publish","type":"post","link":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/2019\/04\/15\/n5-cs-data-representation\/","title":{"rendered":"N5 &#8211; CS &#8211; Data Representation"},"content":{"rendered":"<p><strong>Describe and exemplify the use of binary to represent positive integers. <\/strong><\/p>\n<p><strong>Convert from binary to denary and vice-versa. <\/strong><\/p>\n<ul>\n<li>An integer is a whole number.<\/li>\n<li>Binary is how a computer system stores data. Everything stored by a computer is stored using<\/li>\n<li>A Binary Digit (bit) is either a 0 or a 1<\/li>\n<li>37 =<\/li>\n<\/ul>\n<table>\n<tbody>\n<tr>\n<td width=\"64\">128<\/td>\n<td width=\"64\">64<\/td>\n<td width=\"64\">32<\/td>\n<td width=\"64\">16<\/td>\n<td width=\"64\">8<\/td>\n<td width=\"64\">4<\/td>\n<td width=\"64\">2<\/td>\n<td width=\"48\">1<\/td>\n<\/tr>\n<tr>\n<td width=\"64\">0<\/td>\n<td width=\"64\">0<\/td>\n<td width=\"64\">1<\/td>\n<td width=\"64\">0<\/td>\n<td width=\"64\">0<\/td>\n<td width=\"64\">1<\/td>\n<td width=\"64\">0<\/td>\n<td width=\"48\">1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>Add the column headers where there is a 1 to go from binary to decimal so the example above is 32+4+1=37<\/li>\n<\/ul>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>Describe floating point representation of positive real numbers using the terms mantissa and exponent. <\/strong><\/p>\n<ul>\n<li>Floating point representation is for storing a number with a decimal point.<\/li>\n<li>The mantissa and exponent are stored as separate numbers within the computer\u2019s memory. The computer recreates the number for calculations when it needs to.<\/li>\n<li>For the number 0.<u>10111<\/u> x 2<sup>1011 <\/sup><u>Mantissa<\/u> =<u>10111<\/u> Exponent=1011<\/li>\n<\/ul>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>Describe extended ASCII code (8-bit) used to represent characters. <\/strong><\/p>\n<ul>\n<li>Each character is given an 8-bit ASCII Code, this is a binary number.<\/li>\n<li>For example \u2013 V = 86 = 01010110<\/li>\n<\/ul>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>Describe the vector graphics method of graphic representation for common objects: <\/strong><\/p>\n<ul>\n<li>Vector graphics are made up of objects. Each objects is described by attributes \u2013 e.g. the instructions to draw the shape.<\/li>\n<li><strong>Rectangle<\/strong> &#8211; (height, width, x, y, fill colour, line colour)<\/li>\n<li><strong>Ellipse<\/strong> &#8211; (cx, cy, rx, ry, fill colour, line colour)<\/li>\n<li><strong>Line<\/strong> &#8211; (x1, y1, x2, y2, line colour)<\/li>\n<li><strong>Polygon <\/strong>&#8211; <em>any shape with 3 of more sides <\/em>&#8211; (x1, y1, x2, y2, x3, y3, fill colour, line colour)<\/li>\n<\/ul>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>Describe the bit-mapped method of graphics representation. <\/strong><\/p>\n<ul>\n<li>Computers stores, in binary, each pixel. The greater the number of pixel the greater the resolution and file size of the image. Number of bits per pixel depends on the number of colours in the image \u2013 more colours, more bits.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Describe and exemplify the use of binary to represent positive integers. Convert from binary to denary and vice-versa. An integer is a whole number. Binary is how a computer system stores data. Everything stored by a computer is stored using A Binary Digit (bit) is either a 0 or a 1 37 = 128 64 &hellip;<\/p>\n","protected":false},"author":32,"featured_media":1385,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[432080,432083,432053],"tags":[],"class_list":["post-2282","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-computer-systems-2","category-data-representation","category-national-5-2"],"jetpack_featured_media_url":"https:\/\/blogs.glowscotland.org.uk\/nl\/public\/ColtnessHS-ComputingScience\/uploads\/sites\/12638\/2016\/09\/Slide3.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts\/2282","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/users\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/comments?post=2282"}],"version-history":[{"count":3,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts\/2282\/revisions"}],"predecessor-version":[{"id":2291,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/posts\/2282\/revisions\/2291"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/media\/1385"}],"wp:attachment":[{"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/media?parent=2282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/categories?post=2282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/nl\/ColtnessHS-ComputingScience\/wp-json\/wp\/v2\/tags?post=2282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}