SlideShare a Scribd company logo
1 of 12
Burger Doll Order Form

An example of a program code for Burger Doll Order Form system is shown as follows:
1. Declare Types of Meals and Rates array in General section:
Dim typemeal(4) As String
Dim rates(1 To 6) As Double
Dim ExtraHrs, TtlAmt, j As Integer

2. Assign all values of Types of Meals and Rates in Form_Load:
Private Sub Form_Load()
typemeal(1)
typemeal(2)
typemeal(3)
typemeal(4)
rates(1)
rates(2)
rates(3)
rates(4)
rates(5)
rates(6)

=
=
=
=
=
=

=
=
=
=

"D.L. Beef Burger"
"Chicken Slice Burger"
"Fish Burger"
"Smoke Beef Sandwich "

10.5
5.5
13#
14#
6 / 100
10 / 100

End Sub

1
3. To display all information from Types of Melas and Rates button in the Object
BoxList and prompt the message box for listing loaded, the Display as shown in
Figure1.1:
Private Sub CmdDsplayTypeMeal_Click()
t = Chr(9) 'tab values
For i = 1 To 4
list1.AddItem (typemeal(i) & t & "RM " & rates(i))
Next
list1.Clear
list1.AddItem "D.L. Beef Burger"
list1.ItemData(list1.NewIndex) = 1
list1.AddItem "Chicken Slice Burger"
list1.ItemData(list1.NewIndex) = 2
list1.AddItem "Fish Burger"
list1.ItemData(list1.NewIndex) = 3
list1.AddItem "Smoke Beef Sandwich"
list1.ItemData(list1.NewIndex) = 4
MsgBox" Order Please...", _
vbInformation, "Burger Doll Order Form"
End Sub

4. Next, to select Type of Car for result using List Box ( LblMeal)
5. Type in the next box for total day(s) using text box (txtQua) and type the extra
hour(LblCheese)
Private Sub LblCheese_Change()
LblHr3 = Val(LblCheese) * 1
End Sub

2
6. Finally, The program code btnCalculate_Click function for bill amount include
aRM30 deposit is as follows, as shown in Figure 1.3:
Private Sub btnCalculate_Click()
If list1.ItemData(list1.ListIndex) = 1 Then
TxtAmt.Text = (rates(1) * txtQua) + Val(LblHr3)
GovTax.Text = Format(Val(TxtAmt.Text) * rates(5), "#.##")
TtlDay.Text = Val(TxtAmt) + Val(GovTax) + Val(sertax)
End If
If list1.ItemData(list1.ListIndex) = 2 Then
TxtAmt.Text = (rates(2) * txtQua) + Val(LblHr3)
GovTax.Text = Format(Val(TxtAmt) * rates(5), "#.##")
TtlDay.Text = Val(TxtAmt) + Val(GovTax) + Val(sertax)
End If
If list1.ItemData(list1.ListIndex) = 3 Then
TxtAmt.Text = (rates(3) * txtQua) + Val(LblHr3)
GovTax.Text = Format(Val(TxtAmt) * rates(5), "#.##")
TtlDay.Text = Val(TxtAmt) + Val(GovTax) + Val(sertax)
End If
If list1.ItemData(list1.ListIndex) = 4 Then
TxtAmt.Text = (rates(4) * txtQua) + Val(LblHr3)
GovTax.Text = Format(Val(TxtAmt) * rates(5), "#.##")
TtlDay.Text = Val(TxtAmt) + Val(GovTax) + Val(sertax)
End If
End Sub
7. To reset the value using reset button (cmdReset):
Private Sub cmdReset_Click()
LblCheese.Text = 0#
TxtAmt.Text = 0#
GovTax.Text = 0#
txtQua.Text = 1
TtlDay.Text = 0#
sertax.Text = 0#
txtName.Text = ""
chkDine.Value = 0
End Sub

3
8. To prompt printing for bill payment with using Print button, as shown Figure 1.4:
Private Sub btnOrder_Click()
t = Chr(9) 'tab
Do
j=j+1
list2.AddItem (j & "." &txtName& t & list1 & t & t &txtQua& t &TxtAmt& t &_
GovTax& t & t &sertax& t & t & LblHr3 & t &TtlDay)
Loop Until TtlAmt<= 0
End Sub

9. Clear button to clear list box for bill payment (btnClear):
Private Sub btnClear_Click()
list2.Clear
j=0
End Sub

10. Exit button (btnExit):
Private Sub btnExit_Click()
End
End Sub

11. About Menu Button (mnuabout)
Private Sub mnuabout_Click()
frmAbout.Show
End Sub

4
12. About Menu Button (mnuMeal)
Private Sub mnumeal_Click()
frmMeal.Show
End Sub

13. Set the output format for the (GovTax), (Text1), (TtlDay), (TxtAmt):
Private Sub [name]_Change()
output = Format("#.##")
End Sub

14. Check box for Dine in (chkdine)
Private Sub chkDine_Click()
If chkDine.Value = 1 Then
sertax.Text = Format(Val(TxtAmt) * rates(6), "#,##")
Else
sertax.Text = 0
End If
End Sub

5
Below the program interface for Car Rental Booking system:

Figure 1.0: Main Frame for Burger Doll Order System

6
Figure 1.1: Display Listing Types of Meals

7
Figure 1.2: Select Type of Meals, insert name, Dine in and Calculate without extra
cheese. After that, click order.

8
Figure 1.3: Click Reset Button to reset the value of the form.

9
Figure 1.2: Select Type of Meals, insert name, Dine in,Calculate with 2 extra
cheese and 2 quantity. After that, click order.

10
Figure 1.2: Select Type of Meals, insert name, Dine in,Calculate with 2 extra
cheese and 3 quantity. After that, click order.

11
Object Name
List1
CmdDsplayTypeMeal
txtQua
LblCheese
TxtAmt
LblCheese
GovTax
btnCalculate

Properties Name

Properties Values

Caption
Text
Text
Text
Text
Text
Caption

&Display Types of Meals
1

cmdReset
List2
lblPay

Caption

Reset

Caption

btnOrder
btnClear
btnExit
txtCheese
Sertax

Caption
Caption
Caption
Text
CheckBox

Type Car Day(s) Ex-hour(s)
Amount Deposit Total
Print
Clear
Exit

0
Calculate

12

More Related Content

What's hot

Private sub command1
Private sub command1Private sub command1
Private sub command1sukanya5729
 
cafeteria info management system
cafeteria info management systemcafeteria info management system
cafeteria info management systemGaurav Subham
 
Programas Gambas
Programas GambasProgramas Gambas
Programas Gambasguestdd103d
 
Database Management - Lecture 3 - SQL Aggregate Functions, Join
Database Management - Lecture 3 - SQL Aggregate Functions, JoinDatabase Management - Lecture 3 - SQL Aggregate Functions, Join
Database Management - Lecture 3 - SQL Aggregate Functions, JoinAl-Mamun Sarkar
 
Closure, Higher-order function in Swift
Closure, Higher-order function in SwiftClosure, Higher-order function in Swift
Closure, Higher-order function in SwiftSeongGyu Jo
 
Programming a guide gui
Programming a guide guiProgramming a guide gui
Programming a guide guiMahmoud Hikmet
 
Fb cheatsheet12b
Fb cheatsheet12bFb cheatsheet12b
Fb cheatsheet12bilesh raval
 
Programas Gambas
Programas GambasProgramas Gambas
Programas GambasRZYMJ
 
Pasos de proyecto1
Pasos de proyecto1Pasos de proyecto1
Pasos de proyecto1Ayhli123
 
Print input-presentation
Print input-presentationPrint input-presentation
Print input-presentationMartin McBride
 
Proyecto 2er Parcial
Proyecto 2er ParcialProyecto 2er Parcial
Proyecto 2er ParcialYuliana9_7
 

What's hot (15)

Private sub command1
Private sub command1Private sub command1
Private sub command1
 
cafeteria info management system
cafeteria info management systemcafeteria info management system
cafeteria info management system
 
Gambas
Gambas Gambas
Gambas
 
Programas Gambas
Programas GambasProgramas Gambas
Programas Gambas
 
Database Management - Lecture 3 - SQL Aggregate Functions, Join
Database Management - Lecture 3 - SQL Aggregate Functions, JoinDatabase Management - Lecture 3 - SQL Aggregate Functions, Join
Database Management - Lecture 3 - SQL Aggregate Functions, Join
 
Closure, Higher-order function in Swift
Closure, Higher-order function in SwiftClosure, Higher-order function in Swift
Closure, Higher-order function in Swift
 
Manual De Gambas
Manual De GambasManual De Gambas
Manual De Gambas
 
Programming a guide gui
Programming a guide guiProgramming a guide gui
Programming a guide gui
 
Fb cheatsheet12b
Fb cheatsheet12bFb cheatsheet12b
Fb cheatsheet12b
 
Programas Gambas
Programas GambasProgramas Gambas
Programas Gambas
 
Pasos de proyecto1
Pasos de proyecto1Pasos de proyecto1
Pasos de proyecto1
 
Print input-presentation
Print input-presentationPrint input-presentation
Print input-presentation
 
Gambas
GambasGambas
Gambas
 
52 100 keyboard_shortcuts
52 100 keyboard_shortcuts52 100 keyboard_shortcuts
52 100 keyboard_shortcuts
 
Proyecto 2er Parcial
Proyecto 2er ParcialProyecto 2er Parcial
Proyecto 2er Parcial
 

Similar to Burger doll order form

Documento de altas
Documento de altasDocumento de altas
Documento de altasalejandroDFK
 
Updated Visual Basic 6 for beginners.pptx
Updated Visual Basic 6 for beginners.pptxUpdated Visual Basic 6 for beginners.pptx
Updated Visual Basic 6 for beginners.pptxSarveshDeodhar
 
1. Determine the output displayed when the button is clicked.Priva.docx
1. Determine the output displayed when the button is clicked.Priva.docx1. Determine the output displayed when the button is clicked.Priva.docx
1. Determine the output displayed when the button is clicked.Priva.docxcorbing9ttj
 
1. Determine the output displayed when the button is clicked. Priv.docx
1. Determine the output displayed when the button is clicked. Priv.docx1. Determine the output displayed when the button is clicked. Priv.docx
1. Determine the output displayed when the button is clicked. Priv.docxcorbing9ttj
 
Inventory management
Inventory managementInventory management
Inventory managementRajeev Sharan
 
Reservasi hotel
Reservasi hotelReservasi hotel
Reservasi hoteldian pw
 
SISTEMA DE FACTURACION (Ejemplo desarrollado)
SISTEMA DE FACTURACION (Ejemplo desarrollado)SISTEMA DE FACTURACION (Ejemplo desarrollado)
SISTEMA DE FACTURACION (Ejemplo desarrollado)Darwin Durand
 
Windows Forms For Beginners Part 5
Windows Forms For Beginners Part 5Windows Forms For Beginners Part 5
Windows Forms For Beginners Part 5Bhushan Mulmule
 
4.7.14&amp;17.7.14&amp;23.6.15&amp;10.9.15
4.7.14&amp;17.7.14&amp;23.6.15&amp;10.9.154.7.14&amp;17.7.14&amp;23.6.15&amp;10.9.15
4.7.14&amp;17.7.14&amp;23.6.15&amp;10.9.15Rajes Wari
 
Tkinter_GUI_Programming_in_Python.pdf
Tkinter_GUI_Programming_in_Python.pdfTkinter_GUI_Programming_in_Python.pdf
Tkinter_GUI_Programming_in_Python.pdfArielManzano3
 

Similar to Burger doll order form (20)

Documento de altas
Documento de altasDocumento de altas
Documento de altas
 
Updated Visual Basic 6 for beginners.pptx
Updated Visual Basic 6 for beginners.pptxUpdated Visual Basic 6 for beginners.pptx
Updated Visual Basic 6 for beginners.pptx
 
Ejercicios
EjerciciosEjercicios
Ejercicios
 
1. Determine the output displayed when the button is clicked.Priva.docx
1. Determine the output displayed when the button is clicked.Priva.docx1. Determine the output displayed when the button is clicked.Priva.docx
1. Determine the output displayed when the button is clicked.Priva.docx
 
1. Determine the output displayed when the button is clicked. Priv.docx
1. Determine the output displayed when the button is clicked. Priv.docx1. Determine the output displayed when the button is clicked. Priv.docx
1. Determine the output displayed when the button is clicked. Priv.docx
 
Colegio municipal
Colegio municipalColegio municipal
Colegio municipal
 
Yuliana
YulianaYuliana
Yuliana
 
Inventory management
Inventory managementInventory management
Inventory management
 
Richtextbox
RichtextboxRichtextbox
Richtextbox
 
Introduction to python programming
Introduction to python programmingIntroduction to python programming
Introduction to python programming
 
Design for edp
Design for edpDesign for edp
Design for edp
 
Reservasi hotel
Reservasi hotelReservasi hotel
Reservasi hotel
 
SISTEMA DE FACTURACION (Ejemplo desarrollado)
SISTEMA DE FACTURACION (Ejemplo desarrollado)SISTEMA DE FACTURACION (Ejemplo desarrollado)
SISTEMA DE FACTURACION (Ejemplo desarrollado)
 
Windows Forms For Beginners Part 5
Windows Forms For Beginners Part 5Windows Forms For Beginners Part 5
Windows Forms For Beginners Part 5
 
4.7.14&amp;17.7.14&amp;23.6.15&amp;10.9.15
4.7.14&amp;17.7.14&amp;23.6.15&amp;10.9.154.7.14&amp;17.7.14&amp;23.6.15&amp;10.9.15
4.7.14&amp;17.7.14&amp;23.6.15&amp;10.9.15
 
yazılı
yazılıyazılı
yazılı
 
Java calculator
Java calculatorJava calculator
Java calculator
 
Tkinter_GUI_Programming_in_Python.pdf
Tkinter_GUI_Programming_in_Python.pdfTkinter_GUI_Programming_in_Python.pdf
Tkinter_GUI_Programming_in_Python.pdf
 
Docimp
DocimpDocimp
Docimp
 
Vb file
Vb fileVb file
Vb file
 

More from Khairi Aiman

Sistem HITeCOB - Suruhanjaya Bangunan COB
Sistem HITeCOB - Suruhanjaya Bangunan COBSistem HITeCOB - Suruhanjaya Bangunan COB
Sistem HITeCOB - Suruhanjaya Bangunan COBKhairi Aiman
 
Overview to Data Transaction Management
Overview to Data Transaction ManagementOverview to Data Transaction Management
Overview to Data Transaction ManagementKhairi Aiman
 
Xamarin.Form : Basic to Mobile Development
Xamarin.Form : Basic to Mobile DevelopmentXamarin.Form : Basic to Mobile Development
Xamarin.Form : Basic to Mobile DevelopmentKhairi Aiman
 
Overview to Xamarin : Understanding Xamarin Architecture
Overview to Xamarin : Understanding Xamarin ArchitectureOverview to Xamarin : Understanding Xamarin Architecture
Overview to Xamarin : Understanding Xamarin ArchitectureKhairi Aiman
 
Xamarin.Forms Application UI XAML Definition
Xamarin.Forms Application UI XAML DefinitionXamarin.Forms Application UI XAML Definition
Xamarin.Forms Application UI XAML DefinitionKhairi Aiman
 
C# programming : Chapter One
C# programming : Chapter OneC# programming : Chapter One
C# programming : Chapter OneKhairi Aiman
 
Catalouge 2016 Hery Intelligent Technology
Catalouge 2016 Hery Intelligent TechnologyCatalouge 2016 Hery Intelligent Technology
Catalouge 2016 Hery Intelligent TechnologyKhairi Aiman
 
HIT Catalogue 2016
HIT Catalogue 2016HIT Catalogue 2016
HIT Catalogue 2016Khairi Aiman
 
Prinsip perakaunan tinkatan 4 bab 7 Part 1 - Pelarasan & Mukadimah
Prinsip perakaunan tinkatan 4 bab 7 Part 1 - Pelarasan & MukadimahPrinsip perakaunan tinkatan 4 bab 7 Part 1 - Pelarasan & Mukadimah
Prinsip perakaunan tinkatan 4 bab 7 Part 1 - Pelarasan & MukadimahKhairi Aiman
 
Meterpreter in Metasploit User Guide
Meterpreter in Metasploit User GuideMeterpreter in Metasploit User Guide
Meterpreter in Metasploit User GuideKhairi Aiman
 
Hacking SSL When Using RC4
Hacking SSL When Using RC4Hacking SSL When Using RC4
Hacking SSL When Using RC4Khairi Aiman
 
Hery Intelligent Technology - Corporate Profile 2015
Hery Intelligent Technology - Corporate Profile 2015Hery Intelligent Technology - Corporate Profile 2015
Hery Intelligent Technology - Corporate Profile 2015Khairi Aiman
 
CIA Stratergic Communication - September 2004
CIA Stratergic Communication - September 2004CIA Stratergic Communication - September 2004
CIA Stratergic Communication - September 2004Khairi Aiman
 
Pengaturcaraan C++ - Permarkahan (C++ Programming - Scores)
Pengaturcaraan C++ - Permarkahan (C++ Programming - Scores)Pengaturcaraan C++ - Permarkahan (C++ Programming - Scores)
Pengaturcaraan C++ - Permarkahan (C++ Programming - Scores)Khairi Aiman
 
Pengaturcaraan C++ - Kalukulator Bulatan (C++ Programming - Circle Calculator)
Pengaturcaraan C++ - Kalukulator Bulatan (C++ Programming - Circle Calculator)Pengaturcaraan C++ - Kalukulator Bulatan (C++ Programming - Circle Calculator)
Pengaturcaraan C++ - Kalukulator Bulatan (C++ Programming - Circle Calculator)Khairi Aiman
 
(SOCIAL ENGINEERING - MY) - Psiko rakan kerja
(SOCIAL ENGINEERING - MY) - Psiko rakan kerja(SOCIAL ENGINEERING - MY) - Psiko rakan kerja
(SOCIAL ENGINEERING - MY) - Psiko rakan kerjaKhairi Aiman
 
Kiosk teknologi masa kini - Kajian Soalan
Kiosk teknologi masa kini - Kajian SoalanKiosk teknologi masa kini - Kajian Soalan
Kiosk teknologi masa kini - Kajian SoalanKhairi Aiman
 
Hack the book Mini
Hack the book MiniHack the book Mini
Hack the book MiniKhairi Aiman
 

More from Khairi Aiman (20)

Sistem HITeCOB - Suruhanjaya Bangunan COB
Sistem HITeCOB - Suruhanjaya Bangunan COBSistem HITeCOB - Suruhanjaya Bangunan COB
Sistem HITeCOB - Suruhanjaya Bangunan COB
 
Overview to Data Transaction Management
Overview to Data Transaction ManagementOverview to Data Transaction Management
Overview to Data Transaction Management
 
Xamarin.Form : Basic to Mobile Development
Xamarin.Form : Basic to Mobile DevelopmentXamarin.Form : Basic to Mobile Development
Xamarin.Form : Basic to Mobile Development
 
Overview to Xamarin : Understanding Xamarin Architecture
Overview to Xamarin : Understanding Xamarin ArchitectureOverview to Xamarin : Understanding Xamarin Architecture
Overview to Xamarin : Understanding Xamarin Architecture
 
Xamarin.Forms Application UI XAML Definition
Xamarin.Forms Application UI XAML DefinitionXamarin.Forms Application UI XAML Definition
Xamarin.Forms Application UI XAML Definition
 
C# programming : Chapter One
C# programming : Chapter OneC# programming : Chapter One
C# programming : Chapter One
 
Catalouge 2016 Hery Intelligent Technology
Catalouge 2016 Hery Intelligent TechnologyCatalouge 2016 Hery Intelligent Technology
Catalouge 2016 Hery Intelligent Technology
 
HIT Catalogue 2016
HIT Catalogue 2016HIT Catalogue 2016
HIT Catalogue 2016
 
Prinsip perakaunan tinkatan 4 bab 7 Part 1 - Pelarasan & Mukadimah
Prinsip perakaunan tinkatan 4 bab 7 Part 1 - Pelarasan & MukadimahPrinsip perakaunan tinkatan 4 bab 7 Part 1 - Pelarasan & Mukadimah
Prinsip perakaunan tinkatan 4 bab 7 Part 1 - Pelarasan & Mukadimah
 
Meterpreter in Metasploit User Guide
Meterpreter in Metasploit User GuideMeterpreter in Metasploit User Guide
Meterpreter in Metasploit User Guide
 
Hacking SSL When Using RC4
Hacking SSL When Using RC4Hacking SSL When Using RC4
Hacking SSL When Using RC4
 
Hery Intelligent Technology - Corporate Profile 2015
Hery Intelligent Technology - Corporate Profile 2015Hery Intelligent Technology - Corporate Profile 2015
Hery Intelligent Technology - Corporate Profile 2015
 
CIA Stratergic Communication - September 2004
CIA Stratergic Communication - September 2004CIA Stratergic Communication - September 2004
CIA Stratergic Communication - September 2004
 
Pengaturcaraan C++ - Permarkahan (C++ Programming - Scores)
Pengaturcaraan C++ - Permarkahan (C++ Programming - Scores)Pengaturcaraan C++ - Permarkahan (C++ Programming - Scores)
Pengaturcaraan C++ - Permarkahan (C++ Programming - Scores)
 
Pengaturcaraan C++ - Kalukulator Bulatan (C++ Programming - Circle Calculator)
Pengaturcaraan C++ - Kalukulator Bulatan (C++ Programming - Circle Calculator)Pengaturcaraan C++ - Kalukulator Bulatan (C++ Programming - Circle Calculator)
Pengaturcaraan C++ - Kalukulator Bulatan (C++ Programming - Circle Calculator)
 
13 May 1969
13 May 196913 May 1969
13 May 1969
 
Bahasa kebangsaan
Bahasa kebangsaanBahasa kebangsaan
Bahasa kebangsaan
 
(SOCIAL ENGINEERING - MY) - Psiko rakan kerja
(SOCIAL ENGINEERING - MY) - Psiko rakan kerja(SOCIAL ENGINEERING - MY) - Psiko rakan kerja
(SOCIAL ENGINEERING - MY) - Psiko rakan kerja
 
Kiosk teknologi masa kini - Kajian Soalan
Kiosk teknologi masa kini - Kajian SoalanKiosk teknologi masa kini - Kajian Soalan
Kiosk teknologi masa kini - Kajian Soalan
 
Hack the book Mini
Hack the book MiniHack the book Mini
Hack the book Mini
 

Recently uploaded

Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 

Recently uploaded (20)

Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 

Burger doll order form

  • 1. Burger Doll Order Form An example of a program code for Burger Doll Order Form system is shown as follows: 1. Declare Types of Meals and Rates array in General section: Dim typemeal(4) As String Dim rates(1 To 6) As Double Dim ExtraHrs, TtlAmt, j As Integer 2. Assign all values of Types of Meals and Rates in Form_Load: Private Sub Form_Load() typemeal(1) typemeal(2) typemeal(3) typemeal(4) rates(1) rates(2) rates(3) rates(4) rates(5) rates(6) = = = = = = = = = = "D.L. Beef Burger" "Chicken Slice Burger" "Fish Burger" "Smoke Beef Sandwich " 10.5 5.5 13# 14# 6 / 100 10 / 100 End Sub 1
  • 2. 3. To display all information from Types of Melas and Rates button in the Object BoxList and prompt the message box for listing loaded, the Display as shown in Figure1.1: Private Sub CmdDsplayTypeMeal_Click() t = Chr(9) 'tab values For i = 1 To 4 list1.AddItem (typemeal(i) & t & "RM " & rates(i)) Next list1.Clear list1.AddItem "D.L. Beef Burger" list1.ItemData(list1.NewIndex) = 1 list1.AddItem "Chicken Slice Burger" list1.ItemData(list1.NewIndex) = 2 list1.AddItem "Fish Burger" list1.ItemData(list1.NewIndex) = 3 list1.AddItem "Smoke Beef Sandwich" list1.ItemData(list1.NewIndex) = 4 MsgBox" Order Please...", _ vbInformation, "Burger Doll Order Form" End Sub 4. Next, to select Type of Car for result using List Box ( LblMeal) 5. Type in the next box for total day(s) using text box (txtQua) and type the extra hour(LblCheese) Private Sub LblCheese_Change() LblHr3 = Val(LblCheese) * 1 End Sub 2
  • 3. 6. Finally, The program code btnCalculate_Click function for bill amount include aRM30 deposit is as follows, as shown in Figure 1.3: Private Sub btnCalculate_Click() If list1.ItemData(list1.ListIndex) = 1 Then TxtAmt.Text = (rates(1) * txtQua) + Val(LblHr3) GovTax.Text = Format(Val(TxtAmt.Text) * rates(5), "#.##") TtlDay.Text = Val(TxtAmt) + Val(GovTax) + Val(sertax) End If If list1.ItemData(list1.ListIndex) = 2 Then TxtAmt.Text = (rates(2) * txtQua) + Val(LblHr3) GovTax.Text = Format(Val(TxtAmt) * rates(5), "#.##") TtlDay.Text = Val(TxtAmt) + Val(GovTax) + Val(sertax) End If If list1.ItemData(list1.ListIndex) = 3 Then TxtAmt.Text = (rates(3) * txtQua) + Val(LblHr3) GovTax.Text = Format(Val(TxtAmt) * rates(5), "#.##") TtlDay.Text = Val(TxtAmt) + Val(GovTax) + Val(sertax) End If If list1.ItemData(list1.ListIndex) = 4 Then TxtAmt.Text = (rates(4) * txtQua) + Val(LblHr3) GovTax.Text = Format(Val(TxtAmt) * rates(5), "#.##") TtlDay.Text = Val(TxtAmt) + Val(GovTax) + Val(sertax) End If End Sub 7. To reset the value using reset button (cmdReset): Private Sub cmdReset_Click() LblCheese.Text = 0# TxtAmt.Text = 0# GovTax.Text = 0# txtQua.Text = 1 TtlDay.Text = 0# sertax.Text = 0# txtName.Text = "" chkDine.Value = 0 End Sub 3
  • 4. 8. To prompt printing for bill payment with using Print button, as shown Figure 1.4: Private Sub btnOrder_Click() t = Chr(9) 'tab Do j=j+1 list2.AddItem (j & "." &txtName& t & list1 & t & t &txtQua& t &TxtAmt& t &_ GovTax& t & t &sertax& t & t & LblHr3 & t &TtlDay) Loop Until TtlAmt<= 0 End Sub 9. Clear button to clear list box for bill payment (btnClear): Private Sub btnClear_Click() list2.Clear j=0 End Sub 10. Exit button (btnExit): Private Sub btnExit_Click() End End Sub 11. About Menu Button (mnuabout) Private Sub mnuabout_Click() frmAbout.Show End Sub 4
  • 5. 12. About Menu Button (mnuMeal) Private Sub mnumeal_Click() frmMeal.Show End Sub 13. Set the output format for the (GovTax), (Text1), (TtlDay), (TxtAmt): Private Sub [name]_Change() output = Format("#.##") End Sub 14. Check box for Dine in (chkdine) Private Sub chkDine_Click() If chkDine.Value = 1 Then sertax.Text = Format(Val(TxtAmt) * rates(6), "#,##") Else sertax.Text = 0 End If End Sub 5
  • 6. Below the program interface for Car Rental Booking system: Figure 1.0: Main Frame for Burger Doll Order System 6
  • 7. Figure 1.1: Display Listing Types of Meals 7
  • 8. Figure 1.2: Select Type of Meals, insert name, Dine in and Calculate without extra cheese. After that, click order. 8
  • 9. Figure 1.3: Click Reset Button to reset the value of the form. 9
  • 10. Figure 1.2: Select Type of Meals, insert name, Dine in,Calculate with 2 extra cheese and 2 quantity. After that, click order. 10
  • 11. Figure 1.2: Select Type of Meals, insert name, Dine in,Calculate with 2 extra cheese and 3 quantity. After that, click order. 11
  • 12. Object Name List1 CmdDsplayTypeMeal txtQua LblCheese TxtAmt LblCheese GovTax btnCalculate Properties Name Properties Values Caption Text Text Text Text Text Caption &Display Types of Meals 1 cmdReset List2 lblPay Caption Reset Caption btnOrder btnClear btnExit txtCheese Sertax Caption Caption Caption Text CheckBox Type Car Day(s) Ex-hour(s) Amount Deposit Total Print Clear Exit 0 Calculate 12