二國民華中
日七十月二十年已己麼更
耀榮瓣王傑演唱會
本港新聞
院L
判
由
「選出各得獎作品
·親子樂攝影比考 ·在了
部份門券撥捐三院 開 第
别由呂搅米的「開心一刻」,張團統的「母愛 尖沙咀梳士巴利道道尖 比賽,經順利選出各得獎作品。冠亞季軍分一小套腐,有康訪往九龍 公司主辦,香港保護兒童合海雄的親子樂透影高級寫瘘南單位大
·人壽保險:[沙田在花中心
1990 中學會考預習專欄
明
社
MILL & DALE PRESS:
Computer (15)
File Handling in BASIC......
Choy
File Handling in BASIC is the most difficult part in BASIC language. This part of the Janguage is, all machine. dependent. The computers used by the different schools in: Hong Kongare different:: Therefore there is no a unique set of commands. Therefore such kind of questions are not examinated/ before. But as an imaginery set of instruction can be defined by the examination paper and the students have
to
ase. the format to answer. the
1990 中學會考預習專欄 明德出版社:
MILL & DALE PRESS
questions.
Writing data to a file can use the READ.DATA format...
e.g.10 READ AS B. C
20 PRINT AS, 8, C
30 DATA HONG KONG",
OR 10 INPUT AS, B, C
20 PRINT A, B, C
If we wish to store these data to a file instead of 'PRINTing them out to the line printer, we shall PRINT them into a file.
The file 170. commarid's discussed below will be confined to GHBASIC version. Those students using other machine
also treat this as can practice in the question format in the examination.
First of all we shall give the file a.name, using the statement ·
10 OPEN "0", n, "Filename".
In the statement, in is the file number and filename is the name of the file. We have informed the computer that this
8. Solve the simultaneous equations
u
Mathematics (15)
WK.LO
Exercise 15 Indice and Logarithe
Section 'A
1. Simplify the fallowing expressjous
(a) Simplify 210g(logx100)
2 + 1¢g(logx)
{b}{f/2 = 5%, and 5:29. find,
without using table calculator, the value of xy.
10. Solve the equation 10-14 - 25.
(a) 2
{5}
(2a)
(36
Simplify the following expressions:
a) (8x-y
4x
Solutions
Section A
(a)
郭日僑華
program is going to use a file called "Filename",
#n simply means the file number n
It is important that if the file with the same filename already exist in the disk, it will be deleted and becomes an empty file.a
e.g. 10 OPEN "0"; #1, "TEL".
We can now read the DATA into the variables as before
20 READ: NS, TELS
and then write DATA Into the file:
30 WRITE#1, 1$, TELS. Line:30 means Write into file 1the values of N$, TEL$. Notice the comma after the file number.
After this program has been executed, the file TEL : Took Jike this
TELS
Of the program has several. WRITE statement, the data is added serially toufile. That is a sequential file
好
is opened.
六期星日三十月一( 〇九九一)年九十七國民基中( 22 )
Every file which has been opened must be closed when the file is ad Tonger in: use, it is because:gan 11) Only up to a certain number of files can be opened at the same time.
(2) Data is written to file indirectly.
through a file buffer.
Closing the file will force all remaining data (if any) in the file buffer to be transferred to disc or tape,
11te button
12
13
15
main store
disc
( Jn BASIC. this is done by the CLOSE
statement
60. CLOSE#1
10984 + 109650 - 10g546)
[log(227) + log(2+5+13)
-log(2-3 7-13)}
[(21092 1093 + log?)"
| Line 60 means put all. remaining data in
the fits buffer f1 td the disc and free
that file buffer for future use.
N.B. a CLOSE: statement, without a file number will effectively close all files which have been opened. e.g. 60 CLOSE Example:
Write a BASIC program to create a file call TEL to store the names and | telephone numbers.. of friend
sequentially, RE
10 REM PROGRAM TO OPEN SEQUENTIAL FILE 20 OPEN "0", #1, "TEL"
30 INPUT #NAME OF A FRIEND (END TO
ENO)", N$
| 40 IF N$ = "END" THEN 88
50 INPUT "TELEPHONE NUMBER:": TEL$
60 WRITE#1, N$,'TELS
70 GOTO 30
80 CLOSE#1.
190 END
You can rewrite. this program: using.
| other File 1/0. commands to suit. your | machine.
or
(Ans.)
(log2 +210g5 +og13) (1092 + Jag3 + 10g7
Tog13)].
.32% = 213) 25y 213
21092 + 21695]
·5y = 13
10g2+ Tog5
Jogfo
(Ans.)
(ans.)
(b) log5
log/7 + log12-10921.
logs + 10g7 + 2{log3+21og2)
23x+2y
3x + 2y = 0 (1) x.3 - (2)
-2109341097)
zing3 + log2
1093-log
13y = 13
Substitute y 1 into (2)
3x + 2 = 0
EAns.)
(Ans.)
(b)
Simplify the following expressions
(a)
改聯港
-2k
合九
(b)
25-2k
的廣影 ®
出鎮
Solve the following equation
選告院
5x+2
Simplify the following expression
(a) log/82 + 10g/650 - 100/546
(Ans.)
(b).
(Ans)
=1+1:
(b) log5+ log7+
光新
10021
(Ans.)
Given 10g20,301, 10g3 = 0.4271.
(b)
and Ing7.-.0:8451, find the value
五四加六 胡天 煮開塲
(a) 10g50
一故奇科
(b) Tog (10584
事驚幻
Section B
片除
7. By making the substitution
solve the equation
虎
12(2
1:32 0
2k(2k-1).
•g(k+3)+(3k-3) X 24k
82x+5= 45x+2
(23)2x+5 (22y(5x+2},
26x+15210x+4
6x+15= 10x+4
[Ans,}
Los (100)
10g100
20.301
1.699
(Ans.).
(b) log3/10584
310910584
(Ans.)
Section B
(Ans.)
(a)
= log? + Jog3 + 10
0.301 + (0.4771) (0.8451)
1.3415
32.0
2.75.
:12y:+:32 = 0
(a) Tog/84+ 10g/650 - 10g/546
{y - 4}(y - 8) = 0
10.
2100(100x100) 2 + Togflogx)
210g(10010gx)
2+ Tog(logx) 2[lag100 + .log(logx}1 2+ log|logx).
-212100(100%))
2[2.+ Tog{logx)].
• Tog{logx)
(Ans.)
(b) 2 = 5%
5 = ....(2) Substitute (1) into {2}
{Ans.)
10x-10g4 =25 log{10*-10g4) = 1og25
(x-log4j1og10 = 1.0g25
1og4-10g25.
= log4 + log25.
10g4 x 25
1og100
-2
(Ans.)
招南县 暴秘王地
的點北場 露密下 故:媽。大 鄉打
迷城福將
華僑日報 前程新頁
急聘全職/ 兼職營業代表
(勤奮工作者短期內可賺取高達 $10,000 之報酬、 ~女性,外貌端莊,口齒伶俐 一有外勤推銷工作經驗,現職營業代 表香煙小姐或保險顧問更佳 一有良好之社會關係
葵涌津中
裁聘下列教職員:: 1中文科學位師能預科中文能於 十二月五日到職
2視聽器材助理員,中學程度,對音響: 華及電器有認識,能於二月十二日到職 有意電4271641 或繕膠區近照客葵涌和 宜合道42號
九龍津中急聘
塲五天今
虎
體育科文憑敎師(代課 由一九九〇年二月至七 月中)有意者請詳歷近 照寄華僑日報信箱1467 號:
~工作日期由30-1-90414-2-90時間 任擇。有意者請速電,90880103,朱先 生洽。(假日照常)
片故都得。
王树病
功能少:早
香港路德會社會服務處 誠聘
文化機構聘請 會計文員
湖西單場七ㄤˋ
宇吳 信方 中胡 良萬
中
爆火、倍濃度極
∵ 夜午晚吟:
∵玉曼張释于林繪谿繫
|界世新人三
夜午點照場早晚服:
沙田津中
誠聘體育兼數學科女文憑教 師乙名,有意請繕履歷附近 照寄沙田隆亨邨保良局朱敬 文職業先修中學校監收。
聘請文員
中區寫字樓聘請文員一名,朝 十晚六。應徵者須中五程度, 「性別不拘,具有關工作經驗者 「優先考慮。請於中午十二時至。 下午二時電5490882 區先生洽
天時後唐先生治。
福利工作員
一年滿廿一歲,男女均可 「一會考五科合格,包括英文課程乙 「一機野外活動技能者優先
月薪$4705/ 有意者請詳履歷、近照客九龍何文田忠 「孝街89號,人事主任收
誠聘幼兒工作員
~中五程度,持有認可之幼兒 工作訓練証書(可選擇杏花邨
鴨脷州或青衣區工作 ) 有意者請詳履歷、近照寄九龍 何文田忠孝街89號,人事主任
男性,年18~25歲,F.5程度 略具經驗,識打字者優先錄用, 有意請附履歷、近照,寄華僑日 報信箱297號。或電5462511 陳洽
誠聘教師
聘數學自然科學或英文 地理學位教師大坑東 棠街十五號或電: 7777385
基本位(2格×2.75吋)每天$100.00 超越此面積每一方吋 $33.00
熱綫電話: 5467933
「政府資助護理安老院 誠聘
登記護士55歲以下持有香港報士局登記 護士證書22天年假舟車津貼或宿舍免費 醫療薪金按政府編製(pt.12-24)惫 應徵者來函元朗斥村库斥路青松護理安 老院或電4721393與周姑娘00克
誠聘校對員
本報聘請男性校對員,中學程 度有意者請晚九時半後
圖文傳真 R 5594238
急聘音樂
學位教師
九龍塘某津貼中學誠聘 音樂學位教師,二月到 職,有意者請電 3370680 洽
新新金行請
1男性初級見習柜務員薪津4200元起(六個月
內調升爲4700元起) 2男女性抄寫負薪津4500元起 3男女性收銀員薪津4500元起。
H男性雜務員負責潔淨及一般事務工作留宿者
,薪津4050元起,不留宿者3500元起
「電五四九一壹八一內綫三十號「輻利:供拼右薪假期及醫療保健。
容先生洽。
循道小學
聘請中、數、體敎師, 二月五日到職,基督徒 更佳,詳履歷近照寄九 龍加士居道40號校長收
長人事或鋪保請親繕歷近照地址電話爾客九 嵬中央郵箱70345 號或辦公時間電7356998 第 | 先生或李先生的稚守秘
急聘幼兒工作員
幼兒中心聘幼兒工作員,已度 【訓優先薪金照政府薪級表。携 履歷証件近照至牛頭角淘大花 「園彩霞道一號聖德肋撒洽。
電話7967676