Try   HackMD

Final 評分標準

1. Motion BMP

總共 5 個 Testcase,全部都以老師給的 maldives.mbmp 進行測試,共 30 分:

  1. ./fin01 -h
    • 要顯示出 help message +5
  2. ./fin01 maldives.mbmp
    • 要切割出 output1.bmp, output2.bmp 兩個檔案 +10
    • 如果命名為 output001.bmp output002.bmp 也行
    • 如果命名為 output000.bmp output001.bmp 會酌量扣分
  3. ./fin01 -r 100x75 maldives.mbmp
    • 要切割出 output1.bmp, output2.bmp 兩個檔案,且大小要是 100x75 +5
  4. ./fin01 -p cool maldives.mbmp
    • 要切割出 cool1.bmp, cool2.bmp 兩個檔案 +5
  5. ./fin01 -r 8x6 -p anime maldives.mbmp
    • 要切割出 anime.bmp, anime2.bmp 兩個檔案,且大小要是 8x6 +5

一些 error message 的說明:

  • no file: 我在 make 後沒有看到 fin01 執行檔
  • no folder: 我沒有看到你繳交的整份資料夾

在進行命名變更 (mv) 後,可以大致看出 1. ~ 4. 的圖片會看起來像這樣:

Image Not Showing Possible Reasons
  • The image was uploaded to a note which you don't have access to
  • The note which the image was originally uploaded to has been deleted
Learn More →

2. CPE

example case:
./fin02 2024-04-23

5分:輸出數字正確,誤差可以至上下 5 個
5分:圓餅圖形狀正確(至少第一眼感覺是對的,不要偏差太多就好)

0: 1181 (44.27%)
1: 614 (23.01%)
2: 386 (14.47%)
3: 238 (8.92%)
4: 109 (4.09%)
5: 53 (1.99%)
6: 42 (1.57%)
7: 45 (1.69%)

test case:
./fin02 2018-03-27

8分:輸出數字正確,誤差可以至上下 5 個
8分:圓餅圖形狀正確(至少第一眼感覺是對的,不要偏差太多就好)

0: 711 (32.11%)
1: 1081 (48.83%)
2: 281 (12.69%)
3: 95 (4.29%)
4: 32 (1.45%)
5: 7 (0.32%)
6: 4 (0.18%)
7: 3 (0.14%)

other case:
./fin02 --help

2分:正確輸出 help 內容

./fin02 2018-03-28
2分:有排錯或是提示 help 內容

其他小偏差會寫在評分裡面

3. Database

8pts for each case

case 1
./fin03
n
n
case 2
./fin03
y
apple
banana
0900123456
20
n
n
case 3
./fin03
y
apple
banana
0900123456
20
y
orange
juice
0999876543
1000
n
n
case 4
./fin03
y
apple
banana
0900123456
20
n
y
SELECT phone WHERE FirstName="apple" and year="23"
n
case 5
./fin03
y
apple
banana
0900123456
20
y
orange
juice
0999876543
1000
n
y
SELECT FirstName,LastName WHERE phone="0999876543" or year="20"
n