0 like 0 dislike
6.1k views
請設計一程式,讓使用者輸入一個郵遞區號(3碼),程式會自動判斷該郵遞區號的所在地並輸出。

郵遞區號查詢請至下列網址尋找 3+2碼郵遞區號Excel檔 105/01(英文版, zip檔)

http://www.post.gov.tw/post/internet/Download/all_list.jsp?ID=2201#dl_txt_s_A0206

範例輸入1

500

範例輸出1

Changhua City

範例輸入2

974

範例輸入2

Shoufeng Township
[Exercise] Coding (C) - asked in 作業 by (18k points)
ID: 12295 - Available when: Unlimited - Due to: Unlimited
1 flag
reshown by | 6.1k views
0 0
Called for Help
0 0
Called for Help
0 0
Called for Help
0 0
Called for Help
0 0
Called for Help

152 Answers

0 like 0 dislike
Hidden content!
* ***** *** *

main( )

{
* *** * ** **** * i ;
* ** ************ * *** * *** ** *** ** * ;


* ** * * * ** * ****** (i)
** * *** ** **** * * 100:case 101:case 108:case 103:case 104:case 105:case * 110:case 111:case 112:case 114:case 115:case 116:
* ** *** * * *** ** * * ** * *


*** ** ** * * (i)
*** *** * * * * * ** 200:case 201:case ** ** 203:case 204:case 205:case 206:
** * * * ** ** ****** ******* ***** ** ** ***


** * ** *** * * * * (i)
*** * * ** ** * * * * * 208:
*** ** ** ** ***** * * ** * * Taipei *** **


* ** * * * * * *** * * * ** ** (i)
* * * ** **** ******* * ** * 500:
* * *** * * * ** ****** * * * * * * *** *


* * *** * ** * **** ** * (i)
***** * * **** ** *** *** 974:
* * ******** ** * * * * * * **
answered by (43 points)
0 like 0 dislike
Hidden content!
#include * * ** * ** *

main()

{
** ** * * ** * ** i;
**** * *** * *** * **** *** * * ****
* *** * * ** ** **** * **
** ** * **** ** * *** ** * * City");
* * ** *** ** * * * ** if(i<=206)
* * * **** * ** *** ** * * * ** City");
* * ** * **** *** * * if(i<=272)
**** * *** * ** ** ** * * * * * *
* * * * * ** if(i<=300)
***** ** * * ********** ** ** City");
* ** * * * * *** if(i<=315)
*** * ** * ** * * ***** * *** * ** * *
** * * * * **** if(i<=338)
** ** *** ** ******* ***** City");
* * *** ** *** * ** if(i<=369)
** * * * ***** * **** ** ** * * * * ****
* * * * ***** if(i<=439)
* *** * * ***** ** * * * ** City");
**** ** if(i<=530)
* *** * * * ** ** ** ** * * *** *
* *** * ** * *** * if(i<=558)
* ***** * * * ***** ** ** * ***
* *** **** * ** * * if(i<=600)
* *** * ***** * * *** * * City");
** * ** * * * ** *** ** ** ***
* * * ** * ** * * ** ** ** * ** ***
* *** * * ****** if(i<=655)
** * **** ****** **** * * ** ** ***** *
* * *** **** * ** if(i<=745)
** * * * * * * * *** **** City");
* * * * * * * if(i<=852)
******* **** * * *** *** * * City");
** ***** * ** if(i<=885)
* * * * * *** * * * **** * ** * *
* * *** * ** ** **** if(i<=896)
***** * * ****** * ** *** ** **** ** ***
* ******* * ** * * if(i<=947)
** ** * * * **** * * * ** * * *** ***
** *** * * ** * if(i<=966)
* * * ** **** * * ** * ** * ******
* * *** ** *** if(i<=983)
* * ** * *** * ** * * *** * *** *

}
answered by (-60 points)
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.69.6.190
©2016-2024

Related questions

0 like 0 dislike
201 answers
[Exercise] Coding (C) - asked Oct 5, 2016 in 作業 by Shun-Po (18k points)
ID: 12293 - Available when: Unlimited - Due to: Unlimited
| 8k views
0 like 0 dislike
131 answers
[Exercise] Coding (C) - asked Oct 5, 2016 in 作業 by Shun-Po (18k points)
ID: 12291 - Available when: Unlimited - Due to: Unlimited
| 5.3k views
0 like 0 dislike
61 answers
[Exercise] Coding (C) - asked Oct 13, 2016 in 作業 by Shun-Po (18k points)
ID: 13736 - Available when: Unlimited - Due to: Unlimited
| 3.1k views
1 like 0 dislike
48 answers
[Exercise] Essay (Open question) - asked Nov 2, 2016 in 作業 by Shun-Po (18k points)
ID: 16865 - Available when: Unlimited - Due to: Unlimited
| 2.6k views
2 like 0 dislike
44 answers
[Exercise] Coding (C) - asked Nov 2, 2016 in 作業 by Shun-Po (18k points)
ID: 16861 - Available when: Unlimited - Due to: Unlimited
| 2.3k views
12,783 questions
183,443 answers
172,219 comments
4,824 users