---
# System prepended metadata

title: OOP期末專題注意事項

---

# OOP期末專題注意事項
1. OOP評分系統限制，所有的程式碼只能夠宣告一個Scanner物件(無論是開檔還是讀取console 內容)
2. main function 放在 Main.java中，且必須要有Main.java 主程式碼 
3. 請注意 txt 檔案的欄位名稱

# 組態檔案格式
## Contact
- account.txt
```
cis 1234
```
- catalog.txt
```
Classmate
Family
Friend
```
- config.txt
```
used_last_id: 10
show_sort_order: asc
show_phone: true
show_name: true
show_birthday: true
show_catalog: true
show_email: true
show_default_perpage: 5
verify_string: 12345
show_sort_field: id
```
- data.txt
```
0007 Benson 0971-566237 Family benson31332@gmail.com 0219
0001 Andy 0934-675983 Family alice0212@gmail.com 0212
0005 Paul 0965-431322 Classmate Paul1201@yahoo.com.tw 1201
0008 Chris 0992-317585 Classmate chris358@gmail.com 1108
0004 Kelly 0965-009832 Friend Kelly0303@yahoo.com.tw 0303
0002 Cherry 0943-333165 Classmate Cherry1029@gmail.com 1029
0009 Ivan 0918-425112 Family ivanch@yahoo.com.tw 0731
0010 Kate 0926-034289 Friend kspc520@yahoo.com.tw 0307
0006 Zack 0912-125498 Friend Zack0101@gmail.com 0101
0003 Ivy 0936-408012 Family Ivy0716@yahoo.com.tw 0716
```

## Book
- account.txt
```
cis 1234
```
- catalog.txt
```
Children
Novel
History
Allegory
Drama
```
- config.txt
```
used_last_id: 10
show_sort_field: id
show_sort_order: asc
show_name: true
show_author: true
show_publisher: true
show_number: true
show_catalog: true
show_year: true
show_default_perpage: 5
verify_string: 12345
```
- data.txt
```
0007 The_Old_Man_And_The_Sea Hemingway The_Brick_Church_Chapel M80122 Novel 1952
0001 The_Little_Prince Antoine R&H M67897 Children 1943
0005 Tuesdays_With_Morrie Mitch_Albom Random_House M15273 Novel 1997
0008 Jane_Eyre Charlotte Smith_Elder&Co.Publisher E53843 Novel 1847
0004 Harry_Potter J.K.Rowling Bloomsbury E19950 Novel 1997
0002 Hamlet Shakespeare Grimm_Press D89753 Drama 1603
0009 Animal_Farm Orwell Harvill_Secker E28424 Allegory 1945
0010 Lord_of_the_Flies William_Golding Faber E05686 Novel 1954
0006 The_Whale Melville H&B M05473 Novel 1851
0003 A_Tale_of_Two_Cities Dickens Chapman_and_Hall E03478 History 1859
```

## Job
- account.txt
```
cis 1234
```
- catalog.txt
```
Cooking
Reading
Sports
Buy
Work
```
- config.txt
```
used_last_id: 10
show_sort_field: id
show_name: true
show_end: true
show_nuumber: true
show_degree: true
show_sort_order: asc
show_state: true
show_number: true
show_start: true
show_catalog: true
show_default_perpage: 5
verify_string: 12345
show_work: true
```
- data.txt
```
0007 Cake 16:00:00 18:24:53 100 Finish C00426 Cooking Bake_a_cake
0001 Study 17:24:12 20:21:33 68 Unfinish S44234 Reading Prepare_for_test
0005 Report 14:45:22 16:12:34 57 Doing R83172 Reading Write_reading_experience
0008 Jump 09:10:05 09:30:00 100 Finish J01664 Sports Jump_rope
0004 Run 09:47:21 10:30:00 100 Finish R46798 Sports Go_jogging
0002 Buy 12:13:14 12:53:25 0 Unfinish B95723 Buy Grocery_shopping
0009 Work 09:05:00 09:30:45 46 Doing W02434 Work Contact_customer
0010 Dinner 19:00:46 19:30:51 100 Finish D00217 Cooking Cook_dinner 
0006 Novel 21:36:14 22:19:12 84 Doing N55348 Reading Read_a_novel
0003 Breakfast 07:30:00 07:57:00 100 Finish B13465 Cooking Cook_breakfast
```

## Storage
- account.txt
```
cis 1234
```
- catalog.txt
```
Food
Drink
Book
```
- config.txt
```
used_last_id: 10
show_sort_field: id
show_weight: true
show_sort_order: asc
show_name: true
show_price: true
show_catalog: true
show_count: true
show_brand: true
show_default_perpage: 5
verify_string: 12345
```
- data.txt
```
0007 Apple Marin Food 1024 666 100000
0001 Orange Stxxx Food 500 500 50000
0005 Grean_tea Mr.tea Drink 220 765 243000
0008 Red_tea Mr.tea Drink 562 772 165200
0004 Milk_tea Mr.tea Drink 426 765 132000
0002 English Reader Book 446 1050 600000
0009 Chips Lay's Food 600 540 168400 
0010 Cola Coca-Cola Drink 999 2300 465200
0006 noodles Weili Food 500 900 200000
0003 Chocolate Ferrero Food 400 500 600000
```