版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、Student Name: _( )AVERAGECommands 指令Meaning 解釋averagefind the average for the data stored in certain field找出指定欄位內(nèi)儲(chǔ)存數(shù)值的平均數(shù)set default to d:use f6assignmentfoxproinstrumentlistaverage pricedefault drive is drive d預(yù)設(shè)值為磁碟機(jī)dopen instrument file 開(kāi)啟檔案list out all content in the file 列出所有資料find the average
2、for the price 計(jì)出平均價(jià)格clearuse f6assignmentfoxproinstrumentlistaverage price to average_price? 'The average price of all the instrument is ', average_priceclear the screen 清除屏幕open instrument file開(kāi)啟檔案list out all content in the file列出所有資料store average to memory variable average_price 將平均數(shù)儲(chǔ)存於av
3、erage_price 變量中print out the result 印出結(jié)果Exercise 習(xí)作:1. A table stores the following records 下表儲(chǔ)存七個(gè)記錄: Records#INSTRUMENTQTYPRICESUPPLIER1Guitar124000.00Metallic Music Co.2Piano48000.00Legend Music Co.3Violin52500.00Sonic Music Co.4Horn36000.00Sonic Music Co.5Sousaphone58500.00Tom Lee Music Co.6Tuba5
4、9000.00Tom Lee Music Co.7French Horn48500.00Legend Music Co.State the output of the following commands 說(shuō)出下列各指令的輸出:(a) GO BOTTOM? supplier_(b) GO BOTTOMSKIP 2? instrument_(c) GO 5? Amount = , qty* price_2. A table stores the following records 下表儲(chǔ)存不同記錄: Records#START_DATEEND_DATE1 02/23/199902/23/2000
5、212/22/190312/22/2003307/25/199907/25/1998403/11/200104/12/2001State the output of the following commands 說(shuō)出下列各記錄的輸出:(a) GO 3? RECNO()? RECCOUNT( )_(b) GO TOP? CMONTH(start_date)_SKIP? CMONTH(start_date)_(c) GO BOTTOM? end_date start_date_? DAY(end_date) DAY(start_date)_3. A table stores the followi
6、ng records下表儲(chǔ)存記錄如下: Records#NAMEPOSITION1Matthew WaiPrefect2Jackson ChanMonitor3Patty LamMonitor4Candy FungPrefect5Ivy LeungChairman6Grace TangPrefect7Becky CheungMonitor8Matthew WaiMonitor9Patty LamChairman10Candy FungMonitor11Grace TangChairman12Grace TangMonitor13Candy FungChairman(a) Write a com
7、mand to list the records with position equal to Monitor.寫(xiě)一指令去列出Position等於Monitor 的記錄_(b) Write a command to list the names that consists of letter c.寫(xiě)一指令去列出姓名names包括字母 'c' 的記錄_(c) Write a command to list the positions held by Grace Tang.寫(xiě)一指令去列出Grace Tang 在學(xué)校擔(dān)當(dāng)?shù)穆殑?wù)positions _4. A table stores
8、the following records 表儲(chǔ)存下列記錄: NAMEDATE_BIRTHSEXDEPARTMENTCheung Eric04/08/1996MSalesTam William05/25/2000MPurchaseWong Brenda03/29/1998FSalesWong Robin11/26/1998MSalesLoo Cecilia08/21/2001FSalesChow Charles03/15/2002MSalesLam Maggie01/21/1997FAccountChiu George10/22/1997MPurchaseLee Henry03/22/2002
9、MSalesFung Joyce 03/04/1998FSalesChu Johnny02/18/1998MAccountMok Jennifer07/30/2002FPurchaseMok Peter08/22/1998MSalesState the results of the following commands 說(shuō)出下列指令執(zhí)行後的輸出:(a) LIST FIELDS name FOR on $ name_(b) LIST FIELDS name FOR sex = M AND department = Sales_(c) LIST FIELDS name FOR MONTH(date
10、_birth) = 3 OR;sex = M AND department = Sales_5. A company stores the staff information in a table with the following structure:一公司用下表的結(jié)構(gòu)去儲(chǔ)存職員的資料:Field NameTypeWidthDecNameCharacter20Date_birthDateSexCharacter1DepartmentCharacter20DistrictCharacter20SalaryNumeric82Using the BROWSE command, write sta
11、tements to display records that satisfy the following condition.使用BROWSE指令,寫(xiě)出去顯示下列條件的指令(a) staff living in a district that start with the word Tai.職員居住地區(qū)開(kāi)始的字為 'Tai'_(b) staff born in the year 1982 or later.職員於1982年或以前出生_(c)staff living in a district that contains the word 'Tai'職員居住地區(qū)
12、包括 'Tai' 字_(d)male staff that born between March and August, having salary above 10000.男性職員於3月至8月間出生,及薪金為10000以上_(e)Female staff in the Sales department, who are born after 23rd July, 1984.女性職員在營(yíng)業(yè)部門(mén)Sales department工作,及在1984年7月23日前出生_6. (a)Discuss the differences in the use of SET FILTER TO a
13、nd SET FIELDSTO .in Visual Foxpro說(shuō)出SET FILTER TO及SET FIELDS TO 在Visual Foxpro 中的分別_ _(b) “We can use BROWSE FIELDS .instead of SET FIELDS TO." Comment on this statement."我們可以用BROWSE FIELDS 代替SET FIELDS TO" 請(qǐng)表達(dá)你對(duì)此指令的意見(jiàn)。_(c) The information of students in a school is stored in a table w
14、ith the following structure:Field NameTypeWidthDecStudCodeCharacter6ClassCharacter2ClassNoCharacter2NameCharacter20Date_birthDateSexCharacter1AddressCharacter60TelephoneCharacter10MathsNumeric62EnglishNumeric62ChineseNumeric62The fields Maths, English, and Chinese represent the marks of the students
15、 in these three subjects.欄位Maths, English 及 Chinese 代表學(xué)生在數(shù)學(xué),英文,及中文科目的分?jǐn)?shù)(i)Explain why StudCode and ClassNo are stored as character type.解釋為何StudCode 及ClassNo是以字符種類(lèi)儲(chǔ)存_(ii)Using the command LIST, write one statement to print the average mark of the three subjects for all students. The output should in
16、clude the name and the average mark only.使用LIST指令,寫(xiě)出一句指令去印出下列3科所有學(xué)生的平均分,輸出祇需包括學(xué)生姓名及平均分_(iii)Using the command BROWSE, write one statement to display the records of all male students in form 5, who are born on or before 1st Sept. 1987. You may assume that the class number for form 5 are 5A, 5B, 5C.使用BROWSE指令,寫(xiě)出一句指令去顯示所有中五男生的記錄,出生日期應(yīng)於1987年9月1日前,你可假設(shè)中五的班級(jí)為5A, 5B, 及5C_(iv)U
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024版全面保安服務(wù)維護(hù)協(xié)議一
- 2025青海省建筑安全員A證考試題庫(kù)及答案
- 2025年貴州省安全員-A證考試題庫(kù)附答案
- 2025版綜合性口腔醫(yī)院診所經(jīng)營(yíng)權(quán)承包協(xié)議3篇
- 2025年度ktv酒水促銷(xiāo)員顧客體驗(yàn)優(yōu)化與滿(mǎn)意度提升合同3篇
- 二零二五年度信用貸款合同模板3篇
- 2024年規(guī)范化股權(quán)轉(zhuǎn)讓協(xié)議示范文本版
- 2024版受損房屋賠償協(xié)議書(shū)
- 2025版跨區(qū)域房地產(chǎn)開(kāi)發(fā)項(xiàng)目股權(quán)轉(zhuǎn)讓合同樣本2篇
- 2024年特別版:高端裝備制造技術(shù)合作合同
- 小區(qū)充電樁安全協(xié)議書(shū)范本(2篇)
- 2024年安徽省公務(wù)員錄用考試《行測(cè)》真題及答案解析
- 車(chē)間班長(zhǎng)年度述職報(bào)告
- 成本部年終總結(jié)報(bào)告
- 2024-2025學(xué)年高三年級(jí)上冊(cè)10月月考 生物試題
- 研究生年終總結(jié)研一
- 醫(yī)美行業(yè)股權(quán)合作合同
- 絲綢之路上的民族學(xué)習(xí)通超星期末考試答案章節(jié)答案2024年
- 無(wú)人機(jī)操作教案
- 鐵路基礎(chǔ)知識(shí)題庫(kù)單選題100道及答案解析
- 口腔正畸科普課件
評(píng)論
0/150
提交評(píng)論