• Want to take part in this year's BoS Trials event for Maths and/or Business Studies?
    Click here for details and register now!
  • YOU can help the next generation of students in the community!
    Share your trial papers and notes on our Notes & Resources page

Binary & ASCII Calculations (1 Viewer)

Huy

Active Member
Joined
Dec 20, 2002
Messages
5,240
Gender
Undisclosed
HSC
N/A
Originally posted by Leap
Could sombody give me an example of how to calculate questions like that?
Say we got a question asking how long it takes a 56k modem to download a 900k file, what are the steps involved in working that out?
(I don't do maths, so any question involving calculations - especially without a calculator - always freaks me out).
There's a thread in this forum on it.

Calculating time for data transmission!

http://www.boredofstudies.org/community/showthread.php?s=&threadid=13682
Originally posted by Freedom_Dragon
Hey.
I think they wont ask u to do any calculation like that.
I dont think u need to worry to much. (About calculations).
The Catholic (CSSA) trial did and asked for the time of transmission, given the transmission rate (speed) and filesize.

You could also be asked to calculate file sizes (such as memory and frame buffers) and the usual file storage sizes for audio and video files (mostly contained in the Multimedia Systems option).

So you should know how to answer things like:

a. Calculating the number of bits

You know that the resolution = horizontal pixels x vertical pixels
Now taking the resolution, multiply that by the bit depth.
Now you've got your file size in bits.

b. Calculating the number of bytes.

Same deal, but take the total number of bits and divide by 8 (8 bits per byte).

c. Calculating the number of kilobytes

Take the number of bytes, and divide by 1024.

Now you've got your file size going from bits, to bytes (divide by 8) to kilobytes (divide by 1024)

For bit-mapped images
Usually, file size questions for bit-mapped images will ask for the number of bytes or kilobytes,

File size for an image = (resolution x bit depth) / (8 * 1024)


The answer is now in kilobytes, if the question asked for bytes, then you would leave out 1024, and have:

File size for an image = (resolution x bit depth) / 8


For audio files

File size = sample rate x bit resolution x time x channels


The sample rate (in hertz) = the number of 'slices' (or sample) taken from a sound wave per second.

The bit resolution (in bits) is the measure of how many bits per sample (this is also known as the sample size)

Time is measured in seconds, it's just how long the audio file is (in duration/length)

The number of channels can be mono (one channel) or stereo (two channels).

For video files
File size = bit resolution x frames per second x time


Where the only difference between audio and video file size calculations lies in the channels and sample rate.

The sample rate can then be compared to the number of frames per second (or 'slices') in an audio file.

This is how I like to remember the three:

Images:
pixels across image times pixels down the image, times the bit depth (or how many bits which can hold a particular colour or shade), all over 8 - leaving my answer in bytes.

Audio:
How many slices/samples times how many bits per slice times how long the audio goes for times the number of channels you have.

Video:
The bit resolution (much like an audio file's sample size, or the number of bits per frame) times it by how fast the video moves (frames per second) times it by how long the video lasts.

:)
 

honky tonk

in Miracle World
Joined
Dec 26, 2002
Messages
1,032
Location
Newcastle
Gender
Male
HSC
2003
Originally posted by Winston
IEEE conversions is about the easiest part of the course

sign | mantissa | exponent
I can remember the sign/mantissa/exponent part of the course, but I've never heard of IEEE. :( Should it be in my textbook?
 

Huy

Active Member
Joined
Dec 20, 2002
Messages
5,240
Gender
Undisclosed
HSC
N/A
Originally posted by honky tonk
I can remember the sign/mantissa/exponent part of the course, but I've never heard of IEEE. :( Should it be in my textbook?
This is SDD honky tonk (although you are an SDD student).
Maybe this should be discussed in the SDD forum instead

You won't deal with IEEE in IPT (this forum) :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top