All posts by Mr Stratton

Computing teacher and a PT at Coltness High School.

Prelim Preperation

The class will have a class assessment on the  16th of December, this assessment will cover all areas of the class covered.

The assessment will be based on a single past paper taken from the last 6 or so years, I will remove all the content we have not covered.

I will return the paper to you before the holidays so that you can look over the sections to need to study before the prelim.

NAB Preparation Task

Right, you should have finished off the prep task for next Tuesday Dec 6th.

The submission must have the following parts

  • Your pseudocode design
  • An implemented program matching your design
  • Indication of data flow at the top level of the algorithm
  • A test run showing the data from the task sheet

No time will be given in class to print it off, if you need to print it then do so at lunch time this week or on Monday.

Image sizes

There are plenty of posts on the internet about image file sizes and image file types.

We discussed in class how to calculate image file sizes, however, it’s often hard for raw numbers to mean anything. We forget that file storage was not always the multi Gigabyte size it is now. Here is a way for you to try and get your head around it.

The new iPhone 4s’ camera has a resolution of 3264 by 2448 pixels @ 24 bits per pixel, how many uncompressed images can you fit on a standard 16GB iPhone 4s?

Homework for Thursday 1st Dec

Answer the following questions.

Convert the following to decimal

  1. 11111100 (2’s comp)
  2. 00110110
  3. 11111111 (2’s comp)

How many pixels in the following files

  1. 320×240 @ 8 bits/pixel
  2. 1024×768 @ 16 bit colour depth
  3. 1280×1024 @ 24bpp

What are the sizes of the following files in bytes

  1. 320×240 @ 8 bits/pixel
  2. 1024×768 @ 16 bit colour depth
  3. 1280×1024 @ 24bpp

Calculate the storage requirements for the following images in Megabytes (to 2 decimal places)

  1. 1440×1080 @ 24 bpp
  2. 1920×1080 @ 24 bpp
  3. 7689×4320 @ 24 bpp

Data representation – Arrangements

  • Representation of positive numbers in binary including place values and range up to and including 32 bits
  • Conversion from binary to decimal and vice versa
  • Description of the representation of negative numbers using two’s complement using examples of up to 8 bit numbers
  • Description of the relationship between the number of bits assigned to the mantissa/exponent and the range and precision of floating point numbers
  • Conversion to and from bit, byte, Kilobyte, Megabyte, Gigabyte, Terabyte. (Kb, Mb, Gb, Tb)
  • Description of Unicode and its advantages over ASCII
  • Description of the bit map method of graphic representation using examples of colour/greyscale bit maps
  • Description of the relationship of bit depth to the number of colours using examples up to and including 24 bit depth (true colour)
  • Description of the vector graphics method of graphic representation
  • Description of the relative advantages and disadvantages of bit mapped and vector graphics
  • Description of the relationship between the bit depth and file size
  • Explanation of the need for data compression using the storage of bit-map graphic files, as examples

Binary 2’s Complement

I posted on this last year, I don’t feel the need to go back over it. However, if you would like me to give another full post please just ask.

Remember for 8 bit 2’s complement the column headers are -128 64 32 16 8 4 2 1

The homework for tonight is to convert the following to binary using 2’s complement, the answers should be in Bytes so either 8 or 16 bits.

  1. 397
  2. -45
  3. 128
  4. -120
  5. -13
  6. 0
  7. 1013
  8. -92
  9. -100
  10. -3

Have fun

Digital sources of information.

All of the class have been given a login and password for the following sites. I have verified that each pupil’s login details work within the class, they have all assured me they have tested these from home.

We have been using Glow within the class this year and I have uploaded all the course notes, past papers, past course works & revision materials to the various Glow areas. All pupils are encouraged to contribute to the Glow forum & blog for the subject. Scholar has its on discussion board which is staffed by Scholar approved teachers & lecturers. Materials and quizzes can also be found on the school’s website and a copy can be lifted directly from the school’s server using a flash drive.

This term has seen the introduction of Glow mail, the pupils can use this to send messages directly to my Glow inbox. Details are given within the Glow groups.

Hopefully the pupils will make full use of these digital resources; usage stats show a slow but steady uptake.