Professional Documents
Culture Documents
Garbage-in-garbage-out (GIGO)
~ Erroneous data always produces inaccurate information. It is known as
Garbage-in-garbage-out.
Data Control
1. Data Validation 數據有效性校驗
If the number of “1” in binary number is odd, an even parity number is set 1.
Vice versa, if the number of “1” in binary number is even, an odd parity number
is set 0.
Question 1
Calculate the value of the parity bit.
Data: 1 1 1 1 0 1 1 0 (send in odd parity) à The odd parity bit is 1.
Data: 0 1 1 1 0 0 1 1 (send in even parity)à The even parity bit is 1.
Question 2
Decide whether the data is error-free.
Data: 1 0 1 1 1 1 1 0 (send in odd parity) à The data is error free. (i.e. 六個”1”)
CHAR: Character
Decimal: Number
(25), (2), (3,0) are represent the character is limited to the according number. For
(25), The number of characters of ‘name’ field cannot not more than 25. The
limited number should be reasonable.
Wong Yum Yui and Chan Pak San are missing after the function run
Wong Yum Yui, Chan Pak San and Wong Yik Pok are added 1 respectively when
the function run.
Binary to Denary
Binary digit 1 0 1 1
Place Value 23 22 21 20
Digit Value 1 x 23 0 x 22 1 x 21 1 x 20
\ 1 1 0 1 2 = 1 x 23 + 0 x 22 + 1 x 21 + 1 x 20
= 1 1 10
Hexadecimal To Denary
Binary digit 2 C A 9
Place Value 163 162 161 160
Digit Value 2 x 163 12 x 162 10 x 161 9 x 160
\ 2CA916 = 2 x 163 + 12 x 162 + 10 x 161 + 9 x 160
= 1 1 4 3 3 10
Denary to binary
Covert 3710 into a Binary number.
2|37
2|18 …1
2|9 …0
2|4 …1 \ 3710 = 1 0 0 1 0 1 2
2|2 …0
1 0
Denary to Hexadecimal
Covert 42010 into a Hexadecimal number.
16|420
\ 42010 = 1 A 4 16
16|24 ……4
1 …… 10 <-- A
~ Bits is the smallest unit of computer data. A bit is usually a short form of a binary digit.
1. 1 Byte(B) = 8 bits
2. 1 Kilobyte (KB) = 1024 B
3. 1 Megabyte (MB) = 1024 KB
4. 1 Gigabyte(GB) = 1024 MB
5. 1 Terabyte(TB) = 1024 GB
Word
~ The word length (word size) is measured in bits. Modern computers usually have a word
16, 32 or 64 bits.
The Greek alphabet comprises 24 letters, which has been used to represent the Greek
language for more than a thousand years. What is minimum number of bits to represent
this set of letters?
A. 3
B. 4
C. 5
C
D. 6
Hints: 2? = 24
24 = 16, 25 =32, …
As 32 > 24 ® The correct answer is C
Then 25 > 24 > 24. The minimum number of bits required is 5.
Sign-and-magnitude
~ The sign bit is set to 0 for a positive integer while it is set for 1 for a negative integer.
Word Minimum signed binary Maximum signed binary
length Integer allowed Integer allowed
4-bit 11112 01112
= -710 = 710
8-bit 1111 1111 2 0111 11112
= -12710 = 12710
16-bit 1111 1111 1111 11112 0111 1111 1111 11112
= -32,76710 = -32,76710
24-bit 1111 1111 1111 1111 1111 11112 0111 1111 1111 1111 1111 11112
= -8,388,60710 = -8,388,60710
Two ‘s complement
~ It is widely used in computer to represent binary integer.
~ All integers have unique representations.
Two’s 0111 0110 0101 0100 0011 0010 0001 0000
complement
Decimal Value 7 6 5 4 3 2 1 0
Evaluate the denary value of the following 8-bit two’s complement representation.
1100 00112
One’s Complement of -1310 = 0011 11002
Two’s Complement of -1310 = 0011 11012
The denary magnitude of 1100 00112= 6110
Unicode 統一碼
~ Support both simplified Chinese and traditional Chinese.
ai) Unicode. As Unicode support both simplified Chinese and traditional Chinese
]]
Formatting features
Formatting is the process of modifying the appearance of a document, including text
attributes and text arrangement.
Table
Click Insert -> Click Table -> choose the size you need
Blue: Column
Red: Row
Column
~ improve the readability of a passage
Click ‘Layout’ tab -> Click “columns” button
-> Select the number column required from the column gallery.
Table of content
Click the References tab -> Click the Tables of contents buttons
Footnotes1
Click Reference tab -> Click insert footnote button -> Enter the footnote
Mail Merge
~ Personalize a generic document with name and contract information from an internal data
source.
1
Footnotes are short text messages that are used to comment or explain a source of the main text in a document.
Ch. 7 Spreadsheet
~ It is a computer file created by spreadsheet which allows users to input and organize
data, create chars, and perform data analysis.
AutoFill
~ It allows users to create a series of values based on the value of one or more selected
cells adjacent to each other.
AutoFill function
Select the range of A1 to A4 -> Move the cursor downward to the cell you want.
You may find that the information of A1 to A4 are copied and pasted into the cell range A5
to A12.
If I copy and paste cell D2 to D4, what is the result and the formula?
= A4 * B5
Result is 2 * 500 = 1000
The formula of D2 is =$A5*B$3, so find what is the result and formula on cell D1 and E3
respectively?
D1: The result is 600. The formula is =$A4*B$3
E3: The result is 0. The formula is =$A6*C$3
Activity 3
Find the formula of B8
=(A8*(1-B7)-B3)/B3*100%
Then copies the formula in cell B8 to E11. Does it deliver the expected result? Explain your
answer briefly and correct the formula if necessary.
No. The correct formula is: =($A8*(1-B$7)-$B$3)/$B$3*100%
Statistical Function
1. MAX (<range>) 從指定範圍中找到最大的數值/ MIN (<range>) 從指定範圍中找到最小的數值
For example: =MAX (A1:A10) / =MIN (A1:A10)
From the above figure, you can see the maximum number from cell A1 to A10 is 34 and the minimum
number from cell A1 to A10 is 1.
3. LARGE (<range of cells>, k) / SMALL (<range of cells>, k) kth largest value/ kth smallest value
For example: =LARGE (A1:A5,2) / =SMALL (A1:A5,2)
c) =IF(AND(H2="pass", F2>E2,G2>F2),"YES","")
Mathematical Functions
1. SUM (<range of cells>) 指定範圍之和
(No Example here) Sorry!
Creating Charts
Year Operating income net profit after tax
2011 652.25 140.13
2011 1082.49 259.13
2012 1512.73 417.33
2013 1942.97 370.37
2014 2373.21 395.1
2015 2803.45 533.94
2016 3233.69 456.87
2017 3663.93 483.51
2018 4094.17 595.31
2019 2601.74 552.56
2020 2745.15 574.11
Apple Inc.
(Unit: US$ 100 million)
4500
4000
3500
3000
2500
2000
1500
1000
500
0
2011 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020
Operating income 652.25 1082.49 1512.73 1942.97 2373.21 2803.45 3233.69 3663.93 4094.17 2601.74 2745.15
net profit after tax 140.13 259.13 417.33 370.37 395.1 533.94 456.87 483.51 595.31 552.56 574.11
Click Insert -> Select the chart data -> Click the column in the chart group