0% found this document useful (0 votes)
32 views7 pages

Menu Tunggal: Pertemuan Ke 9

This document contains code for creating a single menu in BASIC. It uses colors, locations and strings to display the menu titles and options. It then sets up a loop to get user input and call different subroutines depending on their selection. The subroutines simply clear the screen and recall the menu display.

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 PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views7 pages

Menu Tunggal: Pertemuan Ke 9

This document contains code for creating a single menu in BASIC. It uses colors, locations and strings to display the menu titles and options. It then sets up a loop to get user input and call different subroutines depending on their selection. The subroutines simply clear the screen and recall the menu display.

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

PERTEMUAN KE 9

MENU TUNGGAL
Praktikum Minggu ini membuat Menu Tunggal
 cls:KEY OFF
 SUB MENU
 FOR I=1 TO 24
 COLOR 09,11
 LOCATE I,01:?STRING$(79,CHR$(205))
 DELAY 0.01
 NEXT I
 color 05
 LOCATE 5,16 :? "Sekolah Tinggi Manajemen Informatika & Komputer "
 FOR I=7 TO 19
 COLOR 11,09
 LOCATE I,22 : ? STRING$(35," ")
 DELAY 0.1
 NEXT I
 COLOR 20,11
 CLS
 FOR I=7 TO 19
 COLOR 09,11
 LOCATE I,22 : ? STRING$(35," ")
 NEXT I
 COLOR 20,09
 LOCATE 05,22 : ? " M E N U - U T A M A "
 COLOR 14,09
 LOCATE 08,27 : ? " [1] I N P U T D A T A "
 LOCATE 10,27 : ? " [2] E D I T D A T A "
 LOCATE 12,27 : ? " [3] L I H A T D A T A "
 LOCATE 14,27 : ? " [4] T A M B A H D A T A "
 LOCATE 16,27 : ? " [5] L A P O R A N "
 LOCATE 18,27 : ? " [6] M A I N M E N U "
 color 07,11
 LOCATE 08,52 : ? CHR$(220)
 LOCATE 09,28 : ? STRING$(25,CHR$(223))
 LOCATE 10,52 : ? CHR$(220)
 LOCATE 11,28 : ? STRING$(25,CHR$(223))
 LOCATE 12,52 : ? CHR$(220)
 LOCATE 13,28 : ? STRING$(25,CHR$(223))
 LOCATE 14,52 : ? CHR$(220)
 LOCATE 15,28 : ? STRING$(25,CHR$(223))
 LOCATE 16,52 : ? CHR$(220)
 LOCATE 17,28 : ? STRING$(25,CHR$(223))
 LOCATE 18,52 : ? CHR$(220)
 LOCATE 19,28 : ? STRING$(25,CHR$(223))
 COLOR 14,0 : LOCATE 21,32 : ? " PILIH [1 - 6] : "
 DO
 WHILE NOT INSTAT:WEND
 PILIH$=INKEY$
 LOOP UNTIL INSTR("123456",PILIH$)
 PRINT PILIH$
 SELECT CASE PILIH$
 CASE "1"
 CALL SATU
 CASE "2"
 CALL DUA
 CASE "3"
 CALL TIGA
 CASE "4"
 CALL EMPAT
 CASE "5"
CALL LIMA
 CASE "6"
 CLS : SYSTEM 
 END SELECT
 END SUB
 CALL MENU

 SUB SATU
 CLS
 CALL MENU
 END SUB

 SUB DUA
 CLS
 CALL MENU
 END SUB
SUB TIGA
 CLS : CALL MENU
 END SUB
  
 SUB EMPAT
 CLS : CALL MENU
 END SUB
  
 SUB LIMA
 CLS : CALL MENU
 END SUB
  
 END
  

You might also like