網路城邦
上一篇 回創作列表 下一篇   字體:
About our second work
2010/04/06 08:07:22瀏覽1278|回應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 頁  回應文章第一頁 回應文章上一頁 回應文章下一頁 回應文章最後一頁

810051
810051
2010/04/13 09:55

402 6 吳亞柔

810051

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

夫子(yangfu) 於 2010-04-13 17:28 回覆:
第一個部分已經OK!那就等著看你的第二個部分了!加油哦!


等級:
留言加入好友
810050
2010/04/13 09:54

810050

高一二班五號吳仕強

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

夫子(yangfu) 於 2010-04-13 17:30 回覆:
OK!第一個部分的功能,檢查通過!再來就看擴充功能的部分了!加油吧!

810052
810052
2010/04/13 09:37

吳姍樺

10207

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

夫子(yangfu) 於 2010-04-13 20:09 回覆:
Sorry! 你的程式有點問題?由台中到新竹的票價,跟由新竹到台中的票價不一樣耶!你的計算式有問題哦!請檢查一下你的source code一下! thanks!

810172
VB work
2010/04/12 22:31

H104

39   810172

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

在VB work 內

夫子(yangfu) 於 2010-04-13 04:58 回覆:
OK! your ticket program first part had been checked!

810081
810081
2010/04/11 17:15

1. 402

2. 36號

3. 楊智筑

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

南下、北上都已修改好了

夫子(yangfu) 於 2010-04-12 07:21 回覆:
那你就應該知道問題出在哪裡了吧!

810154
homework
2010/04/10 23:20

810154   404-21

高麗雲

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

vbhomework > secondhomework

夫子(yangfu) 於 2010-04-12 07:18 回覆:
Very Good!你已經將「張數」的條件也列入了!

404 14 810147
vb ticket
2010/04/10 19:52

404

14

林晉緯

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

放在vb homework 裡

夫子(yangfu) 於 2010-04-12 07:20 回覆:
OK!皆下來就等週二早上我們再來做進一步功能的「修改」。

810051
810051
2010/04/09 09:06

402 6 吳亞柔

h810051

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

夫子(yangfu) 於 2010-04-09 09:43 回覆:
請你自己試看看,起站:高雄,終站:台中。然後出現了錯誤!你的計算式有問題哦!可否請你將原始程式碼show給我看一下?看看你的問題出在哪裡OK?thank you!

810081
810081
2010/04/07 20:51

1. 810081

2. 36號

3. 楊智筑

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

夫子(yangfu) 於 2010-04-07 21:43 回覆:

你是否有發現到一個問題?如果是南下,沒問題。

如果是北上呢?票價會變成『負』的耶!


高一4班
810158
2010/04/06 19:18

25號

陳人豪

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

夫子(yangfu) 於 2010-04-07 06:00 回覆:
OK! your hoework file Vbticket.exe had been checked! if the final showout message you want to use textbox suggest you shall first set its properity to visible=flase and when completet the start and end station input and prepore to show the message then set the visibe = true will be much better!
頁/共 4 頁  回應文章第一頁 回應文章上一頁 回應文章下一頁 回應文章最後一頁