วันอาทิตย์ที่ 7 สิงหาคม พ.ศ. 2554

โปรแกรมเครื่องคิดเลข

เป็นโปรแกรมที่สร้างขึ้นให้เป็นกระบวนการจำลองการสร้างเครื่องคิดเลข โดยมีโครงสร้าง ดังนี้
ชื่อโปรเจ็ค : โปรแกรมเครื่องคิดเลข
Project name : Calculator
Variable (ตัวแปรที่ใช้) : << ชื่อตัวแปร = ชนิดของตัวแปร >>
1. number1 = integer
2. number2 = integer
3. result = double
Object (ตัวควบคุม) : << ชนิดตัวควบคุม = ชื่อตัวควบคุม >>

1. Label1 text = โปรแกรมเครื่องคิดเลข
2. Label2 text = ตัวแปรที่ 1
3. Label3 text = ตัวแปรที่ 2
4. TextBox1 backcolor = red
5. TextBox2 backcolor= yellow
6. button1 text = การบวก
7. button2 text = การลบ
8. button3 text = การคูณ
9. button4 text = การหาร
10. button5 text = ออก

ตารางคำสั่งควบคุมการเขียนโปรแกรม

------------------------------------------- กำหนดหน้าออกแบบได้ดังนี้ ----------------------------------------------------

ไม่มีความคิดเห็น:

แสดงความคิดเห็น