0% found this document useful (0 votes)
55 views6 pages

Tugas Qbasiq Matakuliah Aplikasi Komputer

This document contains the code for a basic QBASIC program that allows a user to select from four options to calculate volume: 1. The user is prompted to select an option to view biodata, or calculate the volume of a cube, rectangular prism, or cylinder. 2. Depending on the option selected, the appropriate formula is displayed and the user is prompted to input values to calculate the volume. 3. The calculated volume is then displayed to the user. If an invalid option is selected, the user is prompted to select from the available options.

Uploaded by

Alma SiSimot
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)
55 views6 pages

Tugas Qbasiq Matakuliah Aplikasi Komputer

This document contains the code for a basic QBASIC program that allows a user to select from four options to calculate volume: 1. The user is prompted to select an option to view biodata, or calculate the volume of a cube, rectangular prism, or cylinder. 2. Depending on the option selected, the appropriate formula is displayed and the user is prompted to input values to calculate the volume. 3. The calculated volume is then displayed to the user. If an invalid option is selected, the user is prompted to select from the available options.

Uploaded by

Alma SiSimot
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/ 6

NAMA

NIM

: K. ALMA BINTARGO
: 100522302317

PRODI
OFF

: D3 TEKNIK SIPIL DAN BANGUNAN


:B

TUGAS QBASIQ MATAKULIAH APLIKASI KOMPUTER

CLS

10

LOCATE 2, 20

15

COLOR 7

20

PRINT "-----ALAT UNTUK TAU-----"

25

LOCATE 5, 10

30

COLOR 3

35

PRINT "PILIH ANGKA YANG ANDA MAU:"

40

COLOR 5

45

PRINT ; TAB(15); "1. BIODATA"

50

PRINT ; TAB(15); "2. RUMUS VOLUME KUBUS"

55

PRINT ; TAB(15); "3. RUMUS VOLUME BALOK"

56

PRINT ; TAB(15); "4. RUMUS VOLUME TABUNG"

60

PRINT

65

LOCATE 11, 15

70

COLOR 3

75

INPUT "NOMOR YANG ANDA PILIH:"; X

80

IF X = 1 THEN 100

85

IF X = 2 THEN 300

90

IF X = 3 THEN 400

92

IF X = 4 THEN 500 ELSE 600

95

END

100

CLS

106

LOCATE 5, 15

108

COLOR 4

110 PRINT
"##############################################
#####"
112

PRINT ; TAB(15); "###"; SPC(45); "###"

114

COLOR 7

116

PRINT ; TAB(15); "###---"; SPC(39); "---###"

118

COLOR 4

120

PRINT ; TAB(15); "###"; SPC(45); "###"

122

LOCATE 7, 32

124

COLOR 7

126

PRINT "K ALMA BINTARGO"

128

LOCATE 9, 15

130

COLOR 4

132 PRINT
"##############################################
#####"
134

LOCATE 20, 23

136

COLOR 7

138

PRINT "MAHASISWA UNIVERSITAS NEGERI MALANG"

140

LOCATE 21, 15

142

COLOR 4

144 PRINT
"##############################################
#####"
146

LOCATE 12, 38

148

PRINT ; TAB(38); "##"

150

PRINT ; TAB(38); "##"

152

PRINT ; TAB(38); "##"

154

PRINT ; TAB(38); "##"

156

PRINT ; TAB(38); "##"

158

PRINT ; TAB(38); "##"

260

LOCATE 22, 24

262

COLOR 7

264

PRINT "JURUSAN TEKNIK SIPIL DAN BANGUNAN"

266

LOCATE 23, 30

268

COLOR 7

270

PRINT "NIM : 100522302317"

275

END

300

CLS

305

LOCATE 5, 20

310

COLOR 5

315

PRINT ; TAB(20); "-----RUMUS VOLUME KUBUS-----"

320

PRINT "SISI = S"

325

PRINT "VOLUME = S^3"

330

PRINT

335

INPUT "UNTUK NILAI S"; S

340

V=S^3

342

LOCATE 10, 10

345

COLOR 7

350

PRINT ; TAB(10); "MAKA VOLUMENYA ADALAH->"; V

355

END

400

CLS

405

LOCATE 5, 20

410

COLOR 6

415

PRINT ; TAB(20); "-----RUMUS VOLUME BALOK-----"

420

PRINT "PANJANG = P"

425

PRINT "LEBAR = L"

430

PRINT "TINGGI = T"

435

PRINT "VOLUME = P*L*T"

440

PRINT

445

INPUT "NILAI P"; P

450

INPUT "NILAI L"; L

455

INPUT "NILAI T"; T

460

V=P*L*T

462

LOCATE 15, 10

465

COLOR 7

470

PRINT ; TAB(10); "MAKA VOLUMENYA ADALAH->"; V

475

END

500

CLS

505

LOCATE 5, 20

510

COLOR 8

515

PRINT "-----RUMUS VOLUME TABUNG-----"

520

PRINT

525

PRINT "PHI = 3,14"

530

PRINT "JARI-JARI = r"

535

PRINT "TINGGI = T"

540

PRINT "V = PHI * r^2 * T"

545

PRINT

550

INPUT "NILAI r"; r

555

INPUT "NILAI T"; T

560

V = 3.14 * r ^ 2 * T

565

LOCATE 15, 15

570

COLOR 7

575

PRINT "MAKA VOLUME TABUNG ADALAH->"; V

580

END

600 PRINT
605 COLOR 7
610 LOCATE 15, 25
615

PRINT ; TAB(20); "-----PILIH NOMOR YANG TERSEDIA !!!!!!-----"

620

LOCATE 18, 20

625

COLOR 3

630

GOTO 75

635

END

You might also like