-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtokobuku.sh
More file actions
42 lines (41 loc) · 965 Bytes
/
Copy pathtokobuku.sh
File metadata and controls
42 lines (41 loc) · 965 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
clear
echo "**********************************"
echo " TOKO BUKU ADE BINTANG "
echo "**********************************"
echo " 1. Pensil"
echo " 2. Penghapus"
echo " 3. Penggaris"
echo " 4. Buku Tulis"
echo " 5. Exit"
echo "**********************************"
read -p "Masukan pilihan [1-5]: " choice
echo "**********************************"
case $choice in
1)
echo -n "Beli berapa pensil? "
read qty
let bayar=qty*2500
;;
2)
echo -n "Beli berapa penghapus? "
read qty
let bayar=qty*1000
;;
3)
echo -n "Beli berapa penggaris? "
read qty
let bayar=qty*3000
;;
4)
echo -n "Beli berapa buku tulis? "
read qty
let bayar=qty*5000
;;
5)
echo "Sampai Jumpa"
exit
;;
esac
echo "Anda harus membayar = Rp.$bayar"
echo "Terima kasih sudah berkunjung"