You are on page 1of 11
NAMA : ARITA WINDI ASTUTI NIM : 1107055035 PRODI : ILMU KOMPUTER Program KRS Source code : pascal Program KartuRencanaStudi; uses wincrt; type sem_satu=record matdas:string[1]; agama:string[1]; bindo:string[1]; isd:string[1]; fisdas1:string[1]; alpro:string[1]; pskom:string[1]; end; type sem_tiga=record aljabar:string[1]; bing:string[1]; database:string[1]; kalkulus:string[1]; hardware:string[1]; fuzzi:string[1]; informasi:string[1]; end; type sem_lima=record skil:string[1]; kk:string[1]; km:string[1]; mn:string[1]; pbo:string[1]; pkb:string[1]; tbo:string[1]; gotoxy(20,3);writeln('Mata Kuliah'); gotoxy(20,5);writeln('Interpersonal Skill'); gotoxy(20,6);writeln('Kemanan Komputer'); gotoxy(20,7);writeln('Komputer dan Masyarakat'); gotoxy(20,8);writeln('Metode Numerik'); gotoxy(20,9);writeln('Pemrograman Berorientasi Objek'); gotoxy(20,10);writeln('Pengantar Kecerdasan Buatan'); gotoxy(20,11);writeln('Teori Bahasa dan Otomata'); gotoxy(60,3);writeln('SKS'); gotoxy(60,5);writeln('2.00'); gotoxy(60,6);writeln('3.00'); gotoxy(60,7);writeln('2.00'); gotoxy(60,8);writeln('2.00'); gotoxy(60,9);writeln('3.00'); gotoxy(60,10);writeln('3.00'); gotoxy(60,11);writeln('3.00'); end; Procedure input_lima; begin with ar_lima[1]do begin write('Interpersonal Skill : ');readln(skil); write('Kemanan Komputer : ');readln(kk); write('Komputer dan Masyarakat : ');readln(km); write('Metode Numerik : end; type sem_tujuh=record etika:string[1]; kp:string[1]; ti:string[1]; visual:string[1]; citra:string[1]; pakar:string[1]; keputusan:string[1]; end; var ar_satu: array[1..7] of sem_satu; ar_tiga: array[1..7] of sem_tiga; ar_lima: array[1..7] of sem_lima; ar_tujuh: array[1..7] of sem_tujuh; no,baris,paket:integer; krs:real; {----------------semester satu-------------------} Procedure tampil_satu; begin writeln('Daftar Mata Kuliah Semester 1'); gotoxy(1,2);writeln('----------------------------------------------------------------'); gotoxy(1,4);writeln('----------------------------------------------------------------'); gotoxy(1,3);writeln('No'); gotoxy(1,5);writeln('1.'); gotoxy(1,6);writeln('2.'); gotoxy(1,7);writeln('3.'); gotoxy(1,8);writeln('4.'); gotoxy(1,9);writeln('5.'); gotoxy(1,10);writeln('6.'); gotoxy(1,11);writeln('7.'); gotoxy(6,3);writeln('kode'); gotoxy(6,5);writeln('08055204'); gotoxy(6,6);writeln('08055301'); gotoxy(6,7);writeln('00005303'); gotoxy(6,8);writeln('08055303'); gotoxy(6,9);writeln('08055305'); gotoxy(6,10);writeln('07055303'); gotoxy(6,11);writeln('08055307'); ');readln(mn); write('Pemrograman Berorientasi Objek : ');readln(pbo); write('Pengantar Kecerdasan Buatan : ');readln(pkb); write('Teori Bahasa dan Otomata : ');readln(tbo); end; end; Procedure print_lima; begin clrscr; no:=0; baris:=4; gotoxy(1,2);writeln('-------------------------------------------------------------'); gotoxy(1,3);writeln('No'); gotoxy(6,3);writeln('Kode'); gotoxy(20,3);writeln('Mata Kuliah'); gotoxy(60,3);writeln('SKS'); gotoxy(1,4);writeln('-------------------------------------------------------------'); if (ar_lima[1].skil = 'y') or (ar_lima[1].skil = 'Y') then begin no:=no+1; gotoxy(1,5);writeln(no); gotoxy(6,5);writeln('08055204'); gotoxy(20,5);writeln('Interpersonal Skill'); gotoxy(60,baris+no);writeln('2.00'); krs:=2; end; if (ar_lima[1].kk = 'y') or (ar_lima[1].kk ='Y') then begin no:=no+1; gotoxy(1,baris+no);writeln(no); gotoxy(6,baris+no);writeln('08055301'); gotoxy(20,baris+no);writeln('Kemanan Komputer'); gotoxy(60,baris+no);writeln('3.00'); krs:=krs+3; end; gotoxy(20,3);writeln('Mata Kuliah'); gotoxy(20,5);writeln('Matematika Dasar'); gotoxy(20,6);writeln('Pendidikan Agama'); gotoxy(20,7);writeln('Bahasa Indonesia'); gotoxy(20,8);writeln('Ilmu Sosial Dasar'); gotoxy(20,9);writeln('Fisika Dasar 1'); gotoxy(20,10);writeln('Algoritma Pemrograman Dasar'); gotoxy(20,11);writeln('Pengantar Sistem Komputer'); gotoxy(60,3);writeln('SKS'); gotoxy(60,5);writeln('2.00'); gotoxy(60,6);writeln('3.00'); gotoxy(60,7);writeln('3.00'); gotoxy(60,8);writeln('3.00'); gotoxy(60,9);writeln('3.00'); gotoxy(60,10);writeln('3.00'); gotoxy(60,11);writeln('3.00'); end; Procedure input_satu; begin with ar_satu[1]do begin write('Matematika Dasar : ');readln(matdas); write('Pendidikan Agama : ');readln(agama); write('Bahasa Indonesia : ');readln(bindo); write('Ilmu Sosial Dasar : ');readln(isd); write('Fisika Dasar 1 : ');readln(fisdas1); write('Algoritma Pemrograman Dasar : ');readln(alpro); write('Pengantar Sistem Komputer : ');readln(pskom); end; end; Procedure print_satu; begin clrscr; if (ar_lima[1].km = 'y') or (ar_lima[1].km = 'Y') then begin no:=no+1; gotoxy(1,baris+no);writeln(no); gotoxy(6,baris+no);writeln('00005303'); gotoxy(20,baris+no);writeln('Komputer dan Masyarakat'); gotoxy(60,baris+no);writeln('2.00'); krs:=krs+2; end; if (ar_lima[1].mn = 'y') or (ar_lima[1].mn ='Y') then begin no:=no+1; gotoxy(1,baris+no);writeln(no); gotoxy(6,baris+no);writeln('08055303 '); gotoxy(20,baris+no);writeln('Metode Numerik'); gotoxy(60,baris+no);writeln('2.00'); krs:=krs+2; end; if (ar_lima[1].pbo = 'y') or (ar_lima[1].pbo = 'Y') then begin no:=no+1; gotoxy(1,baris+no);writeln(no); gotoxy(6,baris+no);writeln('08055305'); gotoxy(20,baris+no);writeln('Pemrograman Berorientasi Objek'); gotoxy(60,baris+no);writeln('3.00'); krs:=krs+3; end; if (ar_lima[1].pkb = 'y') or (ar_lima[1].pkb ='Y') then begin no:=no+1; gotoxy(1,baris+no);writeln(no); gotoxy(6,baris+no);writeln('07055303'); gotoxy(20,baris+no);writeln('Pengantar Kecerdasan Buatan'); gotoxy(60,baris+no);writeln('3.00'); no:=0; baris:=4; gotoxy(1,2);writeln('-------------------------------------------------------------'); gotoxy(1,3);writeln('No'); gotoxy(6,3);writeln('Kode'); gotoxy(20,3);writeln('Mata Kuliah'); gotoxy(60,3);writeln('SKS'); gotoxy(1,4);writeln('-------------------------------------------------------------'); if (ar_satu[1].matdas = 'y') or (ar_satu[1].matdas = 'Y') then begin no:=no+1; gotoxy(1,5);writeln(no); gotoxy(6,5);writeln('08055204'); gotoxy(20,5);writeln('Matematika Dasar'); gotoxy(60,baris+no);writeln('2.00'); krs:=2; end; if (ar_satu[1].agama = 'y') or (ar_satu[1].agama ='Y') then begin no:=no+1; gotoxy(1,baris+no);writeln(no); gotoxy(6,baris+no);writeln('08055301'); gotoxy(20,baris+no);writeln('Pendidikan Agama'); gotoxy(60,baris+no);writeln('3.00'); krs:=krs+3; krs:=krs+3; end; if (ar_lima[1].tbo = 'y') or (ar_lima[1].tbo = 'Y') then begin no:=no+1; gotoxy(1,baris+no);writeln(no); gotoxy(6,baris+no);writeln('08055307'); gotoxy(20,baris+no);writeln('Teori Bahasa dan Otomata'); gotoxy(60,baris+no);writeln('3.00'); krs:=krs+3; end; end; {----------------semester tujuh-------------------} Procedure tampil_tujuh; begin writeln('Daftar Mata Kuliah Semester 7'); gotoxy(1,2);writeln('----------------------------------------------------------------'); gotoxy(1,4);writeln('----------------------------------------------------------------'); gotoxy(1,3);writeln('No'); gotoxy(1,5);writeln('1.'); gotoxy(1,6);writeln('2.'); gotoxy(1,7);writeln('3.'); gotoxy(1,8);writeln('4.'); gotoxy(1,9);writeln('5.'); gotoxy(1,10);writeln('6.'); gotoxy(1,11);writeln('7.'); end; if (ar_satu[1].bindo = 'y') or (ar_satu[1].bindo = 'Y') then begin no:=no+1; gotoxy(1,baris+no);writeln(no); gotoxy(6,baris+no);writeln('00005303'); gotoxy(20,baris+no);writeln('Bahasa Indonesia'); gotoxy(60,baris+no);writeln('3.00'); krs:=krs+3; end; gotoxy(6,3);writeln('kode'); gotoxy(6,5);writeln('08055316'); gotoxy(6,6);writeln('08055221'); gotoxy(6,7);writeln('08055342'); gotoxy(6,8);writeln('08055315'); gotoxy(6,9);writeln('08055320'); gotoxy(6,10);writeln('08055318'); gotoxy(6,11);writeln('08055333'); gotoxy(20,3);writeln('Mata Kuliah'); gotoxy(20,5);writeln('Etika Profesi'); gotoxy(20,6);writeln('Kerja Praktek'); gotoxy(20,7);writeln('Manajemen Proyek if (ar_satu[1].isd = 'y') or (ar_satu[1].isd ='Y') then begin no:=no+1; gotoxy(1,baris+no);writeln(no); gotoxy(6,baris+no);writeln('08055303 '); gotoxy(20,baris+no);writeln('Ilmu Sosial Dasar'); gotoxy(60,baris+no);writeln('3.00'); krs:=krs+3; end; if (ar_satu[1].fisdas1 = 'y') or (ar_satu[1].fisdas1 = 'Y') then begin no:=no+1; gotoxy(1,baris+no);writeln(no); gotoxy(6,baris+no);writeln('08055305'); gotoxy(20,baris+no);writeln('Fisika Dasar'); gotoxy(60,baris+no);writeln('3.00'); krs:=krs+3; end; if (ar_satu[1].alpro = 'y') or (ar_satu[1].alpro ='Y') then begin no:=no+1; gotoxy(1,baris+no);writeln(no); gotoxy(6,baris+no);writeln('07055303'); gotoxy(20,baris+no);writeln('Algoritma Pemrograman Dasar'); gotoxy(60,baris+no);writeln('3.00'); krs:=krs+3; end; if (ar_satu[1].pskom = 'y') or (ar_satu[1].pskom = 'Y') then begin no:=no+1; gotoxy(1,baris+no);writeln(no); gotoxy(6,baris+no);writeln('08055307'); gotoxy(20,baris+no);writeln('Pengantar Sistem Komputer'); gotoxy(60,baris+no);writeln('3.00'); krs:=krs+3; end; TI'); gotoxy(20,8);writeln('Multimedia dan Video Editing'); gotoxy(20,9);writeln('Pemograman Visual Lanjut'); gotoxy(20,10);writeln('Pengolahan Citra'); gotoxy(20,11);writeln('Sistem Pakar'); gotoxy(60,3);writeln('SKS'); gotoxy(60,5);writeln('2.00'); gotoxy(60,6);writeln('2.00'); gotoxy(60,7);writeln('2.00'); gotoxy(60,8);writeln('3.00'); gotoxy(60,9);writeln('3.00'); gotoxy(60,10);writeln('3.00'); gotoxy(60,11);writeln('3.00'); end; Procedure input_tujuh; begin with ar_tujuh[1]do begin write('Etika Profesi : ');readln(etika); write('Kerja Praktek : ');readln(kp); write('Manajemen Proyek TI : ');readln(ti); write('Multimedia dan Video Editing : ');readln(keputusan); write('Pemrograman Visual Lanjut : ');readln(visual); write('Pengolahan Citra : ');readln(citra); write('Sistem Pakar : ');readln(pakar); end; end; Procedure print_tujuh; begin clrscr; no:=0; baris:=4; gotoxy(1,2);writeln('-------------------------------------------------------------'); end; {----------------semester tiga-------------------} Procedure tampil_tiga; begin writeln('Daftar Mata Kuliah Semester 3'); gotoxy(1,2);writeln('----------------------------------------------------------------'); gotoxy(1,4);writeln('----------------------------------------------------------------'); gotoxy(1,3);writeln('No'); gotoxy(1,5);writeln('1.'); gotoxy(1,6);writeln('2.'); gotoxy(1,7);writeln('3.'); gotoxy(1,8);writeln('4.'); gotoxy(1,9);writeln('5.'); gotoxy(1,10);writeln('6.'); gotoxy(1,11);writeln('7.'); gotoxy(6,3);writeln('kode'); gotoxy(6,5);writeln('08055316'); gotoxy(6,6);writeln('08055221'); gotoxy(6,7);writeln('08055342'); gotoxy(6,8);writeln('08055315'); gotoxy(6,9);writeln('08055320'); gotoxy(6,10);writeln('08055318'); gotoxy(6,11);writeln('08055333'); gotoxy(1,3);writeln('No'); gotoxy(6,3);writeln('Kode'); gotoxy(20,3);writeln('Mata Kuliah'); gotoxy(60,3);writeln('SKS'); gotoxy(1,4);writeln('-------------------------------------------------------------'); if (ar_tujuh[1].etika = 'y') or (ar_tujuh[1].etika = 'Y') then begin no:=no+1; gotoxy(1,5);writeln(no); gotoxy(6,5);writeln('08055316'); gotoxy(20,5);writeln('Etika Profesi'); gotoxy(60,baris+no);writeln('2.00'); krs:=2; end; if (ar_tujuh[1].kp = 'y') or (ar_tujuh[1].kp ='Y') then begin no:=no+1; gotoxy(1,baris+no);writeln(no); gotoxy(6,baris+no);writeln('08055221'); gotoxy(20,baris+no);writeln('Kerja Praktek'); gotoxy(60,baris+no);writeln('2.00'); krs:=krs+2; end; gotoxy(20,3);writeln('Mata Kuliah'); gotoxy(20,5);writeln('Aljabar Linier dan Matriks'); gotoxy(20,6);writeln('Bahasa Inggris II'); gotoxy(20,7);writeln('Database Terdistribusi'); gotoxy(20,8);writeln('Kalkulus II'); gotoxy(20,9);writeln('Konsep Hardware'); gotoxy(20,10);writeln('Sistem Fuzzi'); gotoxy(20,11);writeln('Sistem Informasi'); gotoxy(60,3);writeln('SKS'); gotoxy(60,5);writeln('3.00'); gotoxy(60,6);writeln('2.00'); gotoxy(60,7);writeln('3.00'); gotoxy(60,8);writeln('3.00'); gotoxy(60,9);writeln('3.00'); if (ar_tujuh[1].ti = 'y') or (ar_tujuh[1].ti = 'Y') then begin no:=no+1; gotoxy(1,baris+no);writeln(no); gotoxy(6,baris+no);writeln('08055342'); gotoxy(20,baris+no);writeln('Manajemen Proyek TI'); gotoxy(60,baris+no);writeln('2.00'); krs:=krs+2; end; if (ar_tujuh[1].keputusan = 'y') or (ar_tujuh[1].keputusan ='Y') then begin no:=no+1; gotoxy(60,10);writeln('3.00'); gotoxy(60,11);writeln('3.00'); end; Procedure input_tiga; begin with ar_tiga[1]do begin write('Aljabar Linier dan Matriks : ');readln(aljabar); write('Bahasa Inggris 2 : ');readln(bing); write('Database Terdistribusi : ');readln(database); write('Kalkulus II : ');readln(kalkulus); write('Pemrograman Visual : ');readln(hardware); write('Sistem Fuzzi : ');readln(fuzzi); write('Sistem Informasi : ');readln(informasi); end; end; gotoxy(1,baris+no);writeln(no); gotoxy(6,baris+no);writeln('08055315'); gotoxy(20,baris+no);writeln('Multimedia dan Video Editing'); gotoxy(60,baris+no);writeln('3.00'); krs:=krs+3; end; if (ar_tujuh[1].visual = 'y') or (ar_tujuh[1].visual = 'Y') then begin no:=no+1; gotoxy(1,baris+no);writeln(no); gotoxy(6,baris+no);writeln('08055320'); gotoxy(20,baris+no);writeln('Pemograman Visual Lanjut'); gotoxy(60,baris+no);writeln('3.00'); krs:=krs+3; end; if (ar_tujuh[1].citra = 'y') or (ar_tujuh[1].citra ='Y') then begin no:=no+1; Procedure print_tiga; gotoxy(1,baris+no);writeln(no); begin gotoxy(6,baris+no);writeln('08055318'); clrscr; gotoxy(20,baris+no);writeln('Pengolahan no:=0; Citra'); baris:=4; gotoxy(60,baris+no);writeln('3.00'); gotoxy(1,2);writeln('----------------------------krs:=krs+3; ---------------------------------'); end; gotoxy(1,3);writeln('No'); if (ar_tujuh[1].pakar = 'y') or gotoxy(6,3);writeln('Kode'); (ar_tujuh[1].pakar = 'Y') then gotoxy(20,3);writeln('Mata Kuliah'); begin gotoxy(60,3);writeln('SKS'); no:=no+1; gotoxy(1,4);writeln('----------------------------gotoxy(1,baris+no);writeln(no); ---------------------------------'); gotoxy(6,baris+no);writeln('08055333'); if (ar_tiga[1].aljabar = 'y') or gotoxy(20,baris+no);writeln('Sistem (ar_tiga[1].aljabar = 'Y') then Pakar'); begin gotoxy(60,baris+no);writeln('3.00'); no:=no+1; krs:=krs+3; gotoxy(1,5);writeln(no); end; gotoxy(6,5);writeln('08055316'); gotoxy(20,5);writeln('Aljabar Linier dan end; Matriks'); gotoxy(60,baris+no);writeln('3.00'); {----------------------Mulai Program--------------- krs:=3; end; if (ar_tiga[1].bing = 'y') or (ar_tiga[1].bing ='Y') then begin no:=no+1; gotoxy(1,baris+no);writeln(no); gotoxy(6,baris+no);writeln('08055221'); gotoxy(20,baris+no);writeln('Bahasa Inggris II'); gotoxy(60,baris+no);writeln('2.00'); krs:=krs+2; end; if (ar_tiga[1].database = 'y') or (ar_tiga[1].database = 'Y') then begin no:=no+1; gotoxy(1,baris+no);writeln(no); gotoxy(6,baris+no);writeln('08055342'); gotoxy(20,baris+no);writeln('Database Terdistribusi'); gotoxy(60,baris+no);writeln('3.00'); krs:=krs+3; end; if (ar_tiga[1].kalkulus = 'y') or (ar_tiga[1].kalkulus ='Y') then begin no:=no+1; gotoxy(1,baris+no);writeln(no); gotoxy(6,baris+no);writeln('08055315'); gotoxy(20,baris+no);writeln('Kalkulus II'); gotoxy(60,baris+no);writeln('3.00'); krs:=krs+3; end; if (ar_tiga[1].hardware = 'y') or (ar_tiga[1].hardware = 'Y') then begin no:=no+1; gotoxy(1,baris+no);writeln(no); gotoxy(6,baris+no);writeln('08055320'); gotoxy(20,baris+no);writeln('Konsep Hardware'); ----------} begin writeln('Daftar paket semester :'); writeln; writeln('1. Paket Semester Satu'); writeln('2. Paket Semester Tiga'); writeln('3. Paket Semester Lima'); writeln('4. Paket Semester Tujuh'); writeln; writeln('Silakan Pilih Paket Semester Anda:');readln(paket); case paket of 1: begin clrscr; tampil_satu; writeln; writeln('Tekan enter untuk memilih mata kuliah'); readln; writeln('Silakan memilih Mata Kuliah. Isikan Y untuk memilih dan T untuk tidak memilih'); input_satu; writeln; writeln('Tekan enter untuk print Kartu Rencana Studi'); readln; print_satu; gotoxy(1,baris+no+1);writeln('Total SKS yang diambil'); gotoxy(60,baris+no+1);writeln(krs:0:2); end; 2: begin clrscr; tampil_tiga; writeln; writeln('Tekan enter untuk memilih mata kuliah'); readln; writeln('Silakan memilih Mata Kuliah. Isikan Y untuk memilih dan T untuk tidak memilih'); input_tiga; gotoxy(60,baris+no);writeln('3.00'); krs:=krs+3; end; if (ar_tiga[1].fuzzi = 'y') or (ar_tiga[1].fuzzi ='Y') then begin no:=no+1; gotoxy(1,baris+no);writeln(no); gotoxy(6,baris+no);writeln('08055318'); gotoxy(20,baris+no);writeln('Sistem Fuzzi'); gotoxy(60,baris+no);writeln('3.00'); krs:=krs+3; end; if (ar_tiga[1].informasi = 'y') or (ar_tiga[1].informasi = 'Y') then begin no:=no+1; gotoxy(1,baris+no);writeln(no); gotoxy(6,baris+no);writeln('08055333'); gotoxy(20,baris+no);writeln('Sistem Informasi'); gotoxy(60,baris+no);writeln('3.00'); krs:=krs+3; end; end; {----------------semester lima-------------------} Procedure tampil_lima; begin writeln('Daftar Mata Kuliah Semester 5'); gotoxy(1,2);writeln('----------------------------------------------------------------'); gotoxy(1,4);writeln('----------------------------------------------------------------'); gotoxy(1,3);writeln('No'); gotoxy(1,5);writeln('1.'); gotoxy(1,6);writeln('2.'); gotoxy(1,7);writeln('3.'); gotoxy(1,8);writeln('4.'); gotoxy(1,9);writeln('5.'); gotoxy(1,10);writeln('6.'); gotoxy(1,11);writeln('7.'); gotoxy(6,3);writeln('kode'); writeln; writeln('Tekan enter untuk print Kartu Rencana Studi'); readln; print_tiga; gotoxy(1,baris+no+1);writeln('Total SKS yang diambil'); gotoxy(60,baris+no+1);writeln(krs:0:2); end; 3: begin clrscr; tampil_lima; writeln; writeln('Tekan enter untuk memilih mata kuliah'); readln; writeln('Silakan memilih Mata Kuliah. Isikan Y untuk memilih dan T untuk tidak memilih'); input_lima; writeln; writeln('Tekan enter untuk print Kartu Rencana Studi'); readln; print_lima; gotoxy(1,baris+no+1);writeln('Total SKS yang diambil'); gotoxy(60,baris+no+1);writeln(krs:0:2); end; 4: begin clrscr; tampil_tujuh; writeln; writeln('Tekan enter untuk memilih mata kuliah'); readln; writeln('Silakan memilih Mata Kuliah. Isikan Y untuk memilih dan T untuk tidak memilih'); input_tujuh; writeln; writeln('Tekan enter untuk print Kartu Rencana Studi'); readln; gotoxy(6,5);writeln('08055204'); gotoxy(6,6);writeln('08055301'); gotoxy(6,7);writeln('00005303'); gotoxy(6,8);writeln('08055303'); gotoxy(6,9);writeln('08055305'); gotoxy(6,10);writeln('07055303'); gotoxy(6,11);writeln('08055307'); print_tujuh; gotoxy(1,baris+no+1);writeln('Total SKS yang diambil'); gotoxy(60,baris+no+1);writeln(krs:0:2); end; end; end. Print screen