This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: c A.H.Dixon CMPT 150 : Assignment 4 1 Due 23:59 Wednesday, March 19, 2008 (2 pages) NOTE: Before you prepare your final submission, please access the course web- site and check the “Submissions” link for information on how to present your solutions and what to submit for marking. You are responsible for having read these guidelines and marks may be deducted for not following them. In any programming language, in order to display a result on a workstation in a form readable to humans, that result must be expressed as a sequence of characters. For example, a computation might produce the result: 0 1 0 0 1 1 0 0 Now if it is known that this is the base-2 representation of an integer, then it must be converted to the character string “76” because that is the what the base-2 number given by the binary sequence 01001100 represents. Therefore every programming language in- cludes “output procedures” to make this conversion so that you will observe “76” on your workstation rather than 01001100 ....
View Full Document
- Spring '08
- Positional notation, Decimal, Binary-coded decimal, ASCII, display area, BCD codeword