0% found this document useful (0 votes)
127 views3 pages

Latihan Uts1

This document provides instructions for a food ordering program. It explains that users can select different food items from a dropdown menu, with prices ranging from 7000-9000. Optional add-ons like ice, pudding, juice and fruit can be selected using checkboxes, each adding 1000-5000 to the total. Users can choose member or non-member status for a 10% or 5% discount on the total respectively. The total due is displayed after selecting items and options. The program uses variables and subroutines to calculate prices and discounts.

Uploaded by

ayesite
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
127 views3 pages

Latihan Uts1

This document provides instructions for a food ordering program. It explains that users can select different food items from a dropdown menu, with prices ranging from 7000-9000. Optional add-ons like ice, pudding, juice and fruit can be selected using checkboxes, each adding 1000-5000 to the total. Users can choose member or non-member status for a 10% or 5% discount on the total respectively. The total due is displayed after selecting items and options. The program uses variables and subroutines to calculate prices and discounts.

Uploaded by

ayesite
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

MATERI PRAKTEK LAB C-D MALAM FATMAWATI A

Ketentuan Soal !!

Pembeli di Input , lalu ComboBox dipilih


Jika 1 maka Menu Mie Goreng Harga 9000
Jika 2 maka Menu Nasi Goreng Harga 8000
Jika 3 maka Menu Ayam Goreng Harga 7000
Lalu Check Box di Check seperti Ice,Puding,Juz,Buah dipilih maka tambahan akan muncul
Jika Ice maka tambahan 10000
Jika Puding maka tambahan 5000
Jika Juz maka tambahan 3000
Jika Buah maka tambahan 2000
Jika Option Member dipilih maka tambahan akan berkurang 10 %
Jika Option Non-Member dipilih maka tambahan akan berkurang 5 %
Lalu Jumlah Beli di Input
Maka di Klik Hitung maka biaya All akan muncul
Command bersih untuk membersihkan semua tampilan

Buat componen Date time Picker klik kanan pada toolbox pilih komponen
lalu cek list Microsoft Window Common Control -2.6.0 SP4

Dim x, total, ice, puding, juz, buah As Long


Dim all, harga, total1 As Long
Dim jml As Integer

Sub HITUNG()
all = Val(txttotal.Text) + (Val(Text3.Text) * Val(Text4.Text))

@ SIA MARET 2010 FMA


MATERI PRAKTEK LAB C-D MALAM FATMAWATI A

txtall.Text = all
End Sub

Private Sub c_buah_Click()


If c_buah.Value = 1 Then
buah = 2000
total = x + (ice + puding + juz + buah)
ElseIf c_buah.Value = 0 Then
total = total - 2000
Else
total = 0
End If
txttotal.Text = total
End Sub

Private Sub c_ice_Click()


If c_ice.Value = 1 Then
ice = x + 10000
total = x + (ice + puding + juz + buah)
ElseIf c_ice.Value = 0 Then
total = total - 10000
Else
total = 0
End If
txttotal.Text = total
End Sub

Private Sub c_juz_Click()


If c_juz.Value = 1 Then
juz = x + 3000
total = x + (ice + puding + juz + buah)
ElseIf c_juz.Value = 0 Then
total = total - 3000
Else
total = 0
End If
txttotal.Text = total
End Sub

Private Sub c_puding_Click()


If c_puding.Value = 1 Then
puding = x + 5000
total = x + (ice + puding + juz + buah)
ElseIf c_juz.Value = 0 Then
total = total - 5000
Else

@ SIA MARET 2010 FMA


MATERI PRAKTEK LAB C-D MALAM FATMAWATI A

total = 0
End If
txttotal.Text = total
End Sub

Private Sub cmd_all_Click()


HITUNG
End Sub

Private Sub Combo1_Click()


PILIH = (Combo1.Text)
Select Case PILIH
Case 1:
Text2.Text = "MIE GORENG"
harga = 9000
Case 2:
Text2.Text = "NASI GORENG"
harga = 8000
Case 3:
Text2.Text = "AYAM GORENG"
harga = 7000
End Select
Text3.Text = harga
End Sub

Private Sub DTPicker2_Click()


Text6.Text = DTPicker2.Value - DTPicker1.Value
End Sub

Private Sub o_member_Click() Private Sub o_non_Click()


If o_member.Value = True Then If o_non.Value = True Then
total1 = total - (10 / 100 * total) total1 = total - (5 / 100 * total)
Else Else
o_member.Value = False o_non.Value = False
total1 = total total1 = total
End If End If
txttotal.Text = total1 txttotal.Text = total1
End Sub End Sub

@ SIA MARET 2010 FMA

You might also like