網路城邦
上一篇 回創作列表 下一篇   字體:
About our second work
2010/04/06 08:07:22瀏覽1275|回應32|推薦1

*已經有回應者,請務必要看一下我的回應!如果你的作品有問題....那就請你務必要修正好,再repost!我會再檢查一次!

我们先做左半邊的部份,然後再逐一的增加功能(當然就是在購票時,應該享有的折扣或是有優惠時段),不然一次就來個龐大的程式,你也是會有點撐不下去的感覺! ^_^ 當然啦!跟真正的大系統相比,這是[Small Case]但對各位來說剛開始罷了!一下子[灌]太多,會撐飽了!很容易就產生畏懼感!所以 take it easy ! we shall completed it step by step!

構想: 1.用幾個變數代表 各站的公里數,還有代表起站,終站,單價,票價!

          2. 由起站的textbox取得起站文字,轉換成起站公里數!相同方式,取得終站公里數!

          3. ticket_price= (ended-start)*unitprice
             or you can use -> ticket_price=Math.Abs(ended-start)*unitprice

          4. final show at the label -> from 起站 to 終站 的票價為 ticket_price

          請依照上述的 idea 來design form , 撰寫程式碼 -> final make it as .exe file and upload
          to youe network storage and post the link to this post! 

2010/04/13  現在我們要進行功能擴增了!加入考慮因素;購買的張數,是否屬於折價時段(共計有(1)7折(2)半價時段(3)自由座(4)來回票(5)原價時段) 所以在票價計價上,有條件式的選擇, 我們利用 "RadioButton"此控制項來做 discount 條件的選定! 因為此控制項屬於單選條件,比較方便! 使用其 radiobuttonN.checked 屬性( True or Flase)

Please complete the add-on function coding and make it to .exe file and upload to your network storage and post your link in this post thanks!

提醒:開學上課至今,已經有份的作業了!你(妳)完成幾份了?請自己Checked一下!有缺的話,速補齊!不要拖延!

( 知識學習其他 )
回應 推薦文章 列印 加入我的文摘
上一篇 回創作列表 下一篇

引用
引用網址:https://classic-blog.udn.com/article/trackback.jsp?uid=yangfu&aid=3917039

 回應文章 頁/共 4 頁  回應文章第一頁 回應文章上一頁 回應文章下一頁 回應文章最後一頁

810165
ticket1
2010/04/20 12:22

404

32

陳鈺洵

http://wwws.sysh.tc.edu.tw/~h810165

夫子(yangfu) 於 2010-04-27 11:57 回覆:
有問題????由新竹到台中買一張票居然是0元!????????

404 14 810147
vb
2010/04/20 11:59

404 14 林晉緯

http://wwws.sysh.tc.edu.tw/~h810147/

夫子(yangfu) 於 2010-04-27 12:00 回覆:
Good! the please go on to the next request! use item selection method to completed the start and ending station selection!

810158
高一 4班
2010/04/20 11:49

25號  陳人豪

http://wwws.sysh.tc.edu.tw/~h810158


810045
810045
2010/04/18 15:13

401

45

蘇亭語

http://wwws.sysh.tc.edu.tw/~h810045/

夫子(yangfu) 於 2010-04-20 09:28 回覆:
你的單價太高了吧!而已整個Form上的配置非常沒有"可觀性"!按鈕也沒有顯示出該有的文字! 整個作品的感覺......純應付應付的心態......對你自己的duty.......非常的Unrespected!

404 14 810147
vb homework (延續上一個)
2010/04/17 22:23

404

14

林晉緯

(延續上一個回覆)因為老師沒說自由座的票價是什麼,所以我就把它當成原價計算囉!

夫子(yangfu) 於 2010-04-20 09:30 回覆:

你的程式如果沒有選優惠條件,就成0元了!這是漏洞的地方!

自由座是65折!


404 14 810147
vb homework
2010/04/17 21:30

404

14

林晉緯

http://wwws.sysh.tc.edu.tw/~h810147/

是ticket2

夫子(yangfu) 於 2010-04-19 15:03 回覆:
你的系統有問題吧?Cause antiVirus system reported that your file has highly danger!

學生
第一個VB作業
2010/04/16 22:10

老師

我的第一個VB作業在上個學期準時交過了

你也確認過了

可是在這個學期時我把檔案刪掉了

我是否要重做呢 ?

夫子(yangfu) 於 2010-04-17 08:50 回覆:
如果是在post文已獲得回覆的就不需要再重做了!

810054
810054
2010/04/13 21:47

1. 402

2. 9號

3. 吳庭熏

http://wwws.sysh.tc.edu.tw/~h810054/

夫子(yangfu) 於 2010-04-14 17:38 回覆:
張數的條件,沒列入你的計算公式耶!

404 25
810158
2010/04/13 19:29

陳人豪

http://wwws.sysh.tc.edu.tw/~h810158

夫子(yangfu) 於 2010-04-13 20:12 回覆:
你有將「票張數」列入了!但是還有「優惠條件」呢?你怎麼忘記了?我不是建議你可以使用 radiobutton這個控制物件來做嗎?


等級:
留言加入好友
810137
2010/04/13 11:59

810137

高一四班4號

http://wwws.sysh.tc.edu.tw/~h810137

夫子(yangfu) 於 2010-04-13 17:26 回覆:
你要我檢查的事哪一個檔案?810137.exe是第一個作業耶!你擺錯地方了吧!其他的檔案也沒有符合的呀?
頁/共 4 頁  回應文章第一頁 回應文章上一頁 回應文章下一頁 回應文章最後一頁