Tugas Kampus Ku
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Tugas Kampus untuk DosenKu Mr. Muhamad Danuri, M.Kom


You are not connected. Please login or register

Tugas Menu (Program Modular)

+8
nur faizah
nur.sholikin
TIAS ANDRIYANTI
ida nur faida
baron mandegani
henni_susanti
DONY KHAEROMAN
admin
12 posters

Go down  Message [Halaman 1 dari 1]

1Tugas Menu (Program Modular) Empty Tugas Menu (Program Modular) Tue Apr 24, 2012 6:52 pm

admin

admin
Admin

kumpul disini..
program menu...

Contoh :
Program Calculator;
uses wincrt;

const
Kol = 10; kol2=35;

Var

x, y : longint;
Potonganharga : Longint;

Bil1,Bil2,Bil3,Pilih : Integer;

procedure masukkan;
begin
clrscr;
gotoxy(kol2,4);writeln('----------------------');
gotoxy(kol2,5);writeln(' Masukan Bilangan ');
gotoxy(kol2,6);writeln('----------------------');
gotoxy(kol2,7);writeln('Bilangan 1 : ');
gotoxy(kol2,;writeln('Bilangan 2 : ');
gotoxy(kol2,9);writeln('----------------------');
gotoxy(kol2,10);writeln('Hasil Operasi : ');
gotoxy(kol2,11);writeln('----------------------');
gotoxy(kol2+20,7);readln(bil1);
gotoxy(kol2+20,;readln(bil2);
end;

Procedure Tambah;
begin
masukkan;
bil3 := bil1 + bil2;
gotoxy(kol2+20,10);writeln(bil1,'+',bil2,'=',bil3);
readln;
end;

Procedure Kurang;
begin
masukkan;
bil3 := bil1 - bil2;
gotoxy(kol2+20,10);writeln(bil1,'-',bil2,'=',bil3);
readln;
end;
Procedure Kali;
begin
masukkan;
bil3 := bil1 * bil2;
gotoxy(kol2+20,10);writeln(bil1,'*',bil2,'=',bil3);
readln;
end;
Procedure bagi_bulat;
begin
masukkan;
bil3 := bil1 div bil2;
gotoxy(kol2+20,10);writeln(bil1,'div',bil2,'=',bil3);
readln;
end;
Procedure Sisa_bagi;
begin
masukkan;
bil3 := bil1 mod bil2;
gotoxy(kol2+20,10);writeln(bil1,'mod',bil2,'=',bil3);
readln;
end;

Procedure nama;
begin
clrscr;
gotoxy(17,5); writeln('Mhardiant');
readln;
end;



(* Program Utama *)
begin
repeat
clrscr;
gotoxy(kol,4); writeln('--------------------------');
gotoxy(kol,5); writeln('Operasi Bilangan Bulat');
gotoxy(kol,6); writeln('--------------------------');
gotoxy(kol,7); writeln('1. Penambahan');
gotoxy(kol,; writeln('2. Pengurangan');
gotoxy(kol,9); writeln('3. Perkalian');
gotoxy(kol,10);writeln('4. Pembagian Integer {Div} ');
gotoxy(kol,11); writeln('5. Sisa Hasil Bagi {Mod} ');
gotoxy(kol,12); writeln('6. nama');
gotoxy(kol,13); writeln('7. Selesai');
gotoxy(kol,14); writeln('--------------------------');
gotoxy(kol,15); writeln('Pilihan Anda [1..7] : [ ] ');
gotoxy(kol,16);writeln('--------------------------');
gotoxy (kol+23,15);readln(pilih);
case pilih of
1 : Tambah;
2 : Kurang;
3 : Kali;
4 : Bagi_bulat;
5 : Sisa_bagi;
6 : nama;
end;
until pilih = 7;
end.

https://tugasku.forumid.net

DONY KHAEROMAN

DONY KHAEROMAN

TUGAS PROGRAM MENU-DONY KHAEROMAN-REG.SORE
INGIN TAHU CARANYA MONGGO KLIK DI SINI SAJA:

Seperti Aku Seperti Jiwaku

3Tugas Menu (Program Modular) Empty Tugas Program Menu Mon Apr 30, 2012 12:33 pm

henni_susanti

henni_susanti

Cara:





4Tugas Menu (Program Modular) Empty Re: Tugas Menu (Program Modular) Mon Apr 30, 2012 7:37 pm

baron mandegani



Spoiler:
Spoiler:

5Tugas Menu (Program Modular) Empty pemrograman terstruktur (tugas menu) Mon Apr 30, 2012 8:42 pm

ida nur faida

ida nur faida

Tugas Menu (program modular)

cara:


Spoiler:

6Tugas Menu (Program Modular) Empty Re: Tugas Menu (Program Modular) Tue May 01, 2012 4:18 pm

TIAS ANDRIYANTI

TIAS ANDRIYANTI

Spoiler:

7Tugas Menu (Program Modular) Empty Re: Tugas Menu (Program Modular) Tue May 01, 2012 4:25 pm

nur.sholikin



Spoiler:

8Tugas Menu (Program Modular) Empty Re: Tugas Menu (Program Modular) Tue May 01, 2012 9:15 pm

nur faizah

nur faizah

bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce
Spoiler:


bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce bounce

9Tugas Menu (Program Modular) Empty program modular Tue May 08, 2012 10:01 am

m_fadholi



10Tugas Menu (Program Modular) Empty Tugas Animasi Wed May 09, 2012 6:12 pm

budhy prasetiyo



Spoiler:

11Tugas Menu (Program Modular) Empty Re: Tugas Menu (Program Modular) Wed May 09, 2012 6:14 pm

endang fajar novita s

endang fajar novita s

Cara:

Exclamation Exclamation Exclamation Exclamation Exclamation Exclamation Exclamation Exclamation Exclamation Exclamation Exclamation



Embarassed Embarassed Embarassed Embarassed Embarassed Embarassed Embarassed Embarassed Embarassed Embarassed Embarassed Embarassed

12Tugas Menu (Program Modular) Empty Tugas Menu Tue May 15, 2012 7:41 pm

NUR HIDAYAH ISNENY

NUR HIDAYAH ISNENY

Spoiler:
Spoiler:

Sponsored content



Kembali Ke Atas  Message [Halaman 1 dari 1]

Permissions in this forum:
Anda tidak dapat menjawab topik