Dibawah ini adalah contoh programnya. Selamat mencoba dan semoga bermanfaat.
Program :
#include <iostream.h>
#include <conio.h>
#include <stdio.h>
#include <iomanip.h>
main(){
int i,j;
char mk[5][5][100];
char date[5][20]={"Senin","Selasa","Rabu","Kamis","Jumat"};
cout<<"\tMasukkan Jadwal Mata Kuliah
Anda\n";
cout<<"_______________________________________________\n";
cout<<endl;
for(i=0;i<5;i++)
{
if(i==0)
cout<<"SENIN\n";
else if(i==1)
cout<<"SELASA\n";
else if(i==2)
cout<<"RABU\n";
else if(i==3)
cout<<"KAMIS\n";
else if(i==4)
cout<<"JUMAT\n";
cout<<" "<<endl;
for(j=0;j<5;j++)
{
if(j==0)
cout<<"07.00 | ";
else if(j==1)
cout<<"08.50 | ";
else if(j==2)
cout<<"10.40 | ";
else if(j==3)
cout<<"13.20 | ";
else if(j==4)
cout<<"15.30 | ";
cout<<"
";gets(mk[i][j]);
}
cout<<" "<<endl;
}
clrscr();
cout<<endl<<endl;
cout<<"\t\t\t JADWAL KULIAH D3 MI 03\n ";
cout<<"\t\t_________________________________________\n";
cout<<endl<<endl<<endl<<endl<<endl;
cout<<"|
07.00 |"<<endl;
cout<<"|
08.50 |"<<endl;
cout<<"|
10.40 |"<<endl;
cout<<"|
13.20 |"<<endl;
cout<<"|
15.30 |"<<endl;
cout<<endl;
for(int
d=0 ; d<5 ; d++)
{
gotoxy(12*(1+d),8);
cout<<date[d];
}
for(i=0
; i<5 ; i++)
{
gotoxy(12*(1+j),10);
for(j=0; j<5 ; j++)
{
gotoxy(12*(i+1),10+j);
cout<<setiosflags(ios::left)<<setw(5)<<mk[i][j];
}
}
cout<<endl<<endl<<endl<<"Manfaatkan Waktu
Sebaik Mungkin!!!\n\n";
cout<<endl<<endl;
cout<<"BY
: Puji Lestari\n";
cout<<"13.02.8576";
getch();}
Screenshot Programnya :
Program nya rumit ka
BalasHapusIni c++ kan?boleh diberikan versi c-nya?
BalasHapusIni pake borland ya mbak
BalasHapusLumayan membantu
BalasHapusSaya pemula. Lagi pengen bisa dan harus bisa.
BalasHapus