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

Contoh Program Read Data

This program is used to read data from a bookstore transaction. It prints the bookstore name and location at the top. It then inputs the invoice number, date, customer name and address. It has options to input book type, title, author, year published, price, quantity and calculates the total price. The user can choose to add more data or finish. At the end it prints the grand total and information about the program creator.

Uploaded by

Rizqi Saurus
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 PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views3 pages

Contoh Program Read Data

This program is used to read data from a bookstore transaction. It prints the bookstore name and location at the top. It then inputs the invoice number, date, customer name and address. It has options to input book type, title, author, year published, price, quantity and calculates the total price. The user can choose to add more data or finish. At the end it prints the grand total and information about the program creator.

Uploaded by

Rizqi Saurus
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 PDF, TXT or read online on Scribd
You are on page 1/ 3

CONTOH PROGRAM READ DATA

CLS
LOCATE 02,30 : PRINT " TOKO BUKU MAJU UTAMA "
LOCATE 03,30 : PRINT " JL.MENUJU LULUS NO.1 "
LOCATE 04,30 : PRINT " KOTA BAHAGIA SELALU "
LOCATE 05,02 : PRINT STRING$(75,CHR$(223))
LOCATE 06,05 : PRINT "NOMOR FAKTUR : " ; : INPUT , NOMOR$
LOCATE 06,50 : PRINT "TANGGAL : " ; DATE$
LOCATE 07,05 : PRINT "NAMA PEMBELI : " ; : INPUT , PEMBELI$
LOCATE 08,05 : PRINT "ALAMAT PEMBELI : " ; : INPUT , ALAMAT$
LOCATE 09,02 : PRINT STRING$(75,"~")
LOCATE 10,01 : PRINT "|"
LOCATE 10,02 : PRINT "NO"
LOCATE 11,01 : PRINT "|"
LOCATE 11,02 : PRINT "URUT"
LOCATE 10,06 : PRINT "|"
LOCATE 10,07 : PRINT "JENIS"
LOCATE 11,06 : PRINT "|"
LOCATE 11,07 : PRINT "BUKU"
LOCATE 10,15 : PRINT "|"
LOCATE 10,17 : PRINT "JUDUL"
LOCATE 11,15 : PRINT "|"
LOCATE 11,17 : PRINT "BUKU"
LOCATE 10,26 : PRINT "|"
LOCATE 10,28 : PRINT "NAMA"
LOCATE 11,26 : PRINT "|"
LOCATE 11,28 : PRINT "PENGARANG"
LOCATE 10,39 : PRINT "|"
LOCATE 10,40 : PRINT "TAHUN"
LOCATE 11,39 : PRINT "|"
LOCATE 10,40 : PRINT "TAHUN"
LOCATE 11,39 : PRINT "|"
LOCATE 11,40 : PRINT "TERBIT"
LOCATE 10,47 : PRINT "|"
LOCATE 10,48 : PRINT "HARGA"
LOCATE 11,47 : PRINT "|"
LOCATE 11,48 : PRINT "BUKU"
LOCATE 10,57 : PRINT "|"
LOCATE 10,58 : PRINT "JUMLAH"
LOCATE 11,57 : PRINT "|"
LOCATE 11,58 : PRINT "BUKU"
LOCATE 10,65 : PRINT "|"
LOCATE 10,70 : PRINT "TOTAL"
LOCATE 10,76 : PRINT "|"
LOCATE 11,65 : PRINT "|"
LOCATE 11,70 : PRINT "HARGA"
LOCATE 11,76 : PRINT "|"
LOCATE 12,02 : PRINT STRING$(75,"~")
BRS=13 : T1 = 0
LOCATE 24,30 : PRINT " JENIS BUKU : ROMAN , LEGENDA, SEJARAH , UMUM "
35 READ F$
LOCATE BRS,01 : PRINT "|"
LOCATE BRS,02 : PRINT " " ; : INPUT, NO
LOCATE BRS,06 : PRINT "|"
LOCATE BRS,07 : PRINT " " ; : INPUT, D$
SELECT CASE D$
CASE = "ROMAN"
JUDUL$ = "ADINDA"
CASE = "LEGENDA"
JUDUL$ = "ROMEO"
CASE = "SEJARAH"
JUDUL$ = "HATTA"
CASE = "UMUM"
JUDUL$ = "UNYIL"
END SELECT
LOCATE BRS,15 : PRINT "|"
LOCATE BRS,19 : PRINT " " ; JUDUL$
LOCATE BRS,26 : PRINT "|"
LOCATE BRS,28 : PRINT " " ; : INPUT , C$
LOCATE BRS,39 : PRINT "|"
LOCATE BRS,40 : PRINT ; F$
LOCATE BRS,47 : PRINT "|"
IF D$="ROMAN" AND JUDUL$="ADINDA" THEN G=25000 ELSE G=50000
LOCATE BRS,48 : PRINT " " ; G
LOCATE BRS,57 : PRINT "|"
LOCATE BRS,60 : PRINT " " ; : INPUT , L
T=G*L
LOCATE BRS,65 : PRINT "|"
LOCATE BRS,66 : PRINT USING "##,###,###" ; T
LOCATE BRS,76 : PRINT "|"
BRS=BRS+1 : T1=T1+T
40 LOCATE 24,05 : PRINT "TAMBAH DATA (Y/T) : " ; : INPUT , YT$
IF UCASE$(YT$) <> "Y" AND UCASE$(YT$) <> "T" THEN GOTO 40
IF UCASE$(YT$)="Y" THEN GOTO 35
IF UCASE$(YT$)="T" THEN GOTO 50

50 LOCATE BRS+1,01 : PRINT "|"


LOCATE BRS,02 : PRINT STRING$(75,"~")
LOCATE BRS+1,10 : PRINT "GRAND TOTAL"
LOCATE BRS+1,66 : PRINT USING "##,###,###" ; T1
LOCATE BRS+1,65 : PRINT "|"
LOCATE BRS+1,76 : PRINT "|"
LOCATE BRS+2,02 : PRINT STRING$(75,"~")
LOCATE BRS+4,05 : PRINT "KOTA LULUS : " ; DATE$
LOCATE BRS+5,05 : PRINT "PEMBUAT ;"
LOCATE BRS+7,05 : PRINT "AYU CHANDRA"
END
DATA "2003“
DATA "2000“
DATA “2002”
DATA “2001”
DATA "2004"

You might also like