All posts by Mr Stratton

Computing teacher and a PT at Coltness High School.

Today’s little problem

So this got the heart racing today for some of you 🙂

Another subprogram in the building management software is used to find the range of temperatures in a building in one day. The temperature is recorded every 15 minutes within a 24 hour period and stored in a list.
Use pseudocode to design one algorithm to find both the highest and lowest temperatures in this list. (5Marks)

It was from the 2010 past paper, I asked you to code out the program. This program looks complicated but was a walk in the park for some people in the class, the rest of you need to go over the standard algorithms.

I gave you this snippet of code to create the data.

For counter = 1 To 96

temps(counter) = Int((Rnd() * 30) + 1)

Next Continue reading Today’s little problem

Memory Calculations – in your head

Right then, after digging out my calculator and going back over everything, I have it again 🙂

I did miss out a step, here is the worked example

32 bit Address Bus – 64 bit Data Bus

  • 2Address Bus * Data Bus
  • 232 * 64 bits is equivalent to
  • 232 * 8 Bytes
  • 8 * 232 is equivalent to
  • 8 * 22 * 230
  • 8 * 4 * 230
  • 32 * 230 Bytes

230 is a GigaByte so the answer is 32GB

Remember

FAQ – Functions of a single user Operating System

Description and exemplification of the main functions of a single user operating system :

  • interpreting users commands
  • file management
  • memory  management
  • input/output management
  • resource allocation
  • managing processes

Continue reading FAQ – Functions of a single user Operating System