1 / 12

1. 建立新專案

1. 1 啟動Visual Basic 2010. 1. 2 按 新增專案 鈕,開啟 新增專案 交談窗. 1. 建立新專案. 1. 3 選 Windows Form應用程式 ,按 確定 鈕,開啟新專案. 2. 2 按此下拉式方塊, 選 (Form1事件). 2. 1 按 檢視程式碼 鈕,開啟程式碼視窗. 2. 3 按此下拉式方塊, 選 Load ,設定表單被載入時執行此事件程序. 2. 編寫程式碼. 計算BMI值的公式. 判斷男性BMI值是否正常(正常範圍:18.5∼27.8). 2. 4 參照下表 ,輸入程式碼.

aiko-hull
Télécharger la présentation

1. 建立新專案

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 1.1 啟動Visual Basic 2010 1.2 按新增專案鈕,開啟新增專案交談窗 1. 建立新專案

  2. 1.3 選Windows Form應用程式,按確定鈕,開啟新專案

  3. 2.2 按此下拉式方塊, 選 (Form1事件) 2.1 按檢視程式碼鈕,開啟程式碼視窗 2.3 按此下拉式方塊, 選Load,設定表單被載入時執行此事件程序 2. 編寫程式碼

  4. 計算BMI值的公式 判斷男性BMI值是否正常(正常範圍:18.5∼27.8) 2.4 參照下表,輸入程式碼

  5. 判斷女性BMI值是否正常(正常範圍:18.5∼27.3)判斷女性BMI值是否正常(正常範圍:18.5∼27.3)

  6. 3.1 按開始偵錯鈕,執行程式 3. 測試程式

  7. 3.2 在此欄輸入性別(如2),按確定鈕

  8. 3.3 在此欄輸入自己的身高(如165),按確定鈕

  9. 3.4 在此欄輸入自己的體重(如53),按確定鈕

  10. 3.5 檢視自己的BMI值後,按確定鈕,結束程式的執行

  11. 4.1 按全部儲存鈕,開啟儲存專案交談窗 4. 儲存專案

  12. 4.4 在名稱欄,輸入"Ans12-1",按儲存鈕 離開 4.3 按瀏覽鈕,選取要存放專案的位置 4.2 勾選為方案建立目錄核取方塊,設定要建立一個資料夾,用來存放與方案相關的檔案

More Related