0% found this document useful (0 votes)
4 views

Java

This program is a library book borrowing program for the Pintar Library. It asks the user to input their member number and book code to determine the book type. It then asks for the book publication date, borrow date, and return date to calculate any late fees based on the number of days late. It displays the fee amount or that none is due, and asks if the user wants to repeat the process.

Uploaded by

varrafauziah
Copyright
© © All Rights Reserved
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)
4 views

Java

This program is a library book borrowing program for the Pintar Library. It asks the user to input their member number and book code to determine the book type. It then asks for the book publication date, borrow date, and return date to calculate any late fees based on the number of days late. It displays the fee amount or that none is due, and asks if the user wants to repeat the process.

Uploaded by

varrafauziah
Copyright
© © All Rights Reserved
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/ 2

Dim ULANG As Char

Dim JENIS, KODE, M1, B1, B2, B3, F1, NO As String


Dim A, B, C, D, E, F, TGL As Byte
Sub MAIN()
Do Until ULANG = "N" Or ULANG = "n"
Console.Clear()
Console.WriteLine("PROGRAM PEMINJAMAN BUKU PERPUSTAKAAN PINTAR")
Console.WriteLine("PERIODE OKTOBER : OKTOBER 2013")
Console.WriteLine("===========================================")
Console.Write("MASUKKAN NOMOR ANGGOTA : ")
NO = Console.ReadLine()
Console.Write("MASUKKAN KODE BUKU : ")
KODE = Console.ReadLine()
If KODE = M1 Then
console.WRITELINE("JENIS BUKU : MATEMATIKA ")
ElseIf KODE = B1 Then
console.WRITELINE("JENIS BUKU : BAHASA INDONESIA ")
ElseIf KODE = B2 Then
console.WRITELINE("JENIS BUKU : BAHASA INGGRIS ")
ElseIf KODE = B3 Then
console.WRITELINE("JENIS BUKU : BIOLOGI ")
ElseIf KODE = F1 Then
console.WRITELINE("JENIS BUKU : FISIKA ")
Else
Console.WriteLine("KODE BUKU TIDAK ADA")
Console.ReadLine()
End
End If
Console.Write("TANGGAL TERBIT BUKU : ")
TGL = Console.ReadLine()
Console.Write("TANGGAL PINJAM : ")
A = Console.ReadLine()
Console.Write("TANGGAL KEMBALI : ")
B = Console.ReadLine()
C = B - A
If C > 20 Then
D = (C * 5000) + 100000
ElseIf C > 3 Then
D = C * 5000
Else
D = 0
End If
Console.WriteLine("DENDA : " & D)
Console.Write("JUMLAH BAYAR : ")
E = Console.ReadLine()
F = E - D
Console.Write("SISA :" & F)
Console.WriteLine("===========================================")
Console.WriteLine("TERIMA KASIH DAN SELAMAT BELAJAR")
Console.WriteLine()
Console.WriteLine()
Console.Write("APAKAH ANDA INGIN MENGULANG [Y/N]? : ")
ULANG = Console.ReadLine()
Loop
Console.Clear()
Console.WriteLine("TEKAN ENTER UNTUK KELUAR")

Console.ReadKey()
End Sub
End Module

You might also like