Program jadwal kuliah
#include <iostream.h>
#include <conio.h>
using namespace std;
int main() {
int kode;
cout<<" \t JADWAL PERKULIAHAN\n";
cout<<"\t ================================\n";
cout<<"\tUNIVERSITAS RESPATI YOGYAKARTA\n";
cout<<"\t____________________________________\n";
cout<<"\tTEKNOLOGI INFORMATIKA\n";
cout<<"\t================================\n\n";
cout << "1 = SENIN 2 = SELASA 3 = RABU 4 = KAMIS" << endl;
cout << "5 = JUM'AT 6 = SABTU 7 = MINGGU" << endl;
cout << "Masukkan kode hari (1-7) = ";
cin >> kode;
switch (kode)
{
case 1:
cout<<"\tSISTEM OPRASI\n";
cout<<"\t JAM 15:00_14.40\n";
break;
case 2:
cout<<"\tPRAKTIK UTILITY\n ";
cout<<"\tJam 07.00_10:40\n";
cout<<"\tPRAKTEK PENGNTAR TEKNOLOGI\n";
cout<<"\tJam 13:00_14:40\n";
cout<<"\tPRAKTEK SISTEM OPRASI\n";
cout<<"\tJam 15:00_14:40";
break;
case 3:
cout<<"\tBAHASA INGGRIS\n";
cout<<"\tJam 07:00_08:40\n";
cout<<"\tAGAMA ISLAM\n";
cout<<"\tJam 09:00_12:40\n";
cout<<"\tLOGIKA ALGORITMA\n";
cout<<"\tJam 15:00_16:40\n";
break;
case 4:
cout<<"\tPRAKTEK PEMROGRAMAN DASAR\n";
cout<<"\tJam 09:00_12:40\n";
cout<<"\tPRAKTEK LOGIKA ALGORITMA\n";
cout<<"\tJam 15:00_16:40\n";
break;
case 5:
cout<<"\tMATEMATIKA DISTRIT\n";
cout<<"\tJam 09:00_10:40\n";
cout<<"\tPENGANTAR TEKNOLOGI\n";
cout<<"\tJam 13:00_14.40\n";
break;
case 6:
case 7:
cout<< " HOLYDAY LAH ...!! JALAN-JALAN SUPAYA OTAKMU FRESH, HATIMU TENANG .TETAP SEMANGAT !!! \n"<< endl;
break;
default:
cout << "Kode hari tidak valid" << endl;
}
return 0;
}
Tidak ada komentar:
Posting Komentar