Program struktur data cerdas cermat kalangan SMP



#include
#include
#include

void data_sekolah (void);
void murid_sekolah (void);
void sekolah_class (void);
void nama_murid (void);
void input_data (void);
void input_lagi (void);
void proses_data (void);

char data[5][5]={"FT", "PT", "ST", "TT"};
char cari[5];
char pilih, pilih1;
int low, high, posisi;
float posisi1;
int N=4, flag=0;
int N1,N2, N3, N4, N5, N6, N7, N8, N9, N10, Nt;

main ()
{
cout<<" DAFTAR DATA SEKOLAH MENENGAH PERTAMA "<<<" Silakan pilih jenis daftar data sekolah dasar : "<<<" Daftar : Kode : "<<<" a) Kelas 1 A P "<<<" b) Kelas 2 A S "<<<" c) Kelas 3 A F "<<<" d) Data Guru SMP T "<<<" Input kode untuk mencari daftar sekolah dasar (Gunakan huruf Kapital): "; cin>>cari;
cout< *cari) high = posisi-1;
else if(*data[posisi] < *cari) low = posisi+1;
}
while(*cari >= *data[low] && *cari<= *data[high]);
if(flag==1)
{
cout<<"Daftar Ditemukan"<<<<"Apakah Anda Ingin Menampilkan Soal-Soal buat latihan Sekolah Menengah Pertama :"<<<"?"<<<"pilih Y/T : ";cin>>pilih;
cout<<<"Soal Sekolah Menengah Pertama :"<<<"(Jawablah dengan huruf kecil)"<<<<"Nilai Anda Adalah : " <<<<"Keterangan : "<<<"Nilai 81-100 : Sangat Pintar "<<<"Nilai 71-80 : Lumayan Pintar "<<<"Nilai 61-70 : Aktif Pintar "<<<"Nilai 41-60 : Standart Pintar "<<<"Nilai 21-40 : Bodoh "<<<"Nilai 0-20 : Sangat Bodoh "<<<<" Soal Sekolah Menengah Pertama ! "<<<"(Jawablah dengan huruf kecil)"<<<<"Nilai Anda Adalah : " <<<<"Keterangan : "<<<"Nilai 81-100 : Sangat Pintar "<<<"Nilai 71-80 : Lumayan Pintar "<<<"Nilai 61-70 : Aktif Pintar "<<<"Nilai 41-60 : Standart Pintar "<<<"Nilai 21-40 : Bodoh "<<<"Nilai 0-20 : Sangat Bodoh "<<<<"Soal Sekolah Menengah pertama , jawablah dengan benar !"<<<"(Jawablah dengan huruf kecil)"<<<<"Nilai Anda Adalah : " <<<<"Keterangan : "<<<"Nilai 81-100 : Sangat Pintar "<<<"Nilai 71-80 : Lumayan Pintar "<<<"Nilai 61-70 : Aktif Pintar "<<<"Nilai 41-60 : Standart Pintar "<<<"Nilai 21-40 : Bodoh "<<<"Nilai 0-20 : Sangat Bodoh "<<<<"Soal Sekolah Menengah Pertama , jawablah dengan benar!"<<<"(Jawablah dengan huruf kecil)"<<<<"Nilai Anda Adalah : " <<<<"Keterangan : "<<<"Nilai 81-100 : Sangat Pintar "<<<"Nilai 71-80 : Lumayan Pintar "<<<"Nilai 61-70 : Aktif Pintar "<<<"Nilai 41-60 : Standart Pintar "<<<"Nilai 21-40 : Bodoh "<<<"Nilai 0-20 : Sangat Bodoh "<<<<<"Bukan Pilihan Y atau T";
break;
}
}
else
{
cout<<" Daftar Tidak ada "<<<<"Apakah Anda Ingin Mempelajari Soal-Soal Lagi?"<<<"pilih Y/T : ";cin>>pilih1;
switch(pilih1)
{
case 'Y':
input_data();
break;
case 'T':
break;

default:
cout<<<"Bukan Pilihan Y atau T";
cout<<<<"Masukkan Kode daftar yang akan di pelajari : ";cin>>cari;
cout<<<" Keaktifan Lomba Menjawab Soal Dengan Tepat dan benar "<<<" Kelas 1 A "<<<" Nama : Hendra "<<<" Nama : Budi "<<<" Nama : Chandra "<<<" Nama : Susi "<<<" Lomba Menghitung Matematika dengan cepat dan tepat "<<<" Kalangan perwakilan kelas masing-masing "<<<"1) Berapa hasil kali 2x4 ?"<<<" a.5 b.6 c.8 "<<<" Answer : "; cin>>jwb;
cout<<" Penjawab Soal : Chandra "<<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"2) Berapa Hasil bagi dari nilai 9/3+6 ? "<<<" a.10 b.9 c.8 "<<<" Answer : "; cin>>jwb;
cout<<" Penjawab soal : Chandra "<<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"3) 2 ekor kelinci beranak 4, berapa kelinci sekarang ? "<<<" a.4 b.6 c.8 "<<<" Answer : "; cin>>jwb;
cout<<" Pejawab soal : Hendra " <<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"4) adi punya ikan 10 mati 3 dan adi beli 3, berapa ikan adi sekarang? "<<<" a.10 b.6 c.7 "<<<" Answer : "; cin>>jwb;
cout<<" Penjawab Soal : Budi " <<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"5) Berapa hasil dari 10x10+10-10 ? "<<<" a.67 b.89 c.100 "<<<" Answer : "; cin>>jwb;
cout<<" Penjawab soal : Hendra " <<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"6) yesi masak nasi goreng 2 dikasik orang 2 dan yesi buat nasi goreng lagi 2, berapa nasi goreng yang yesi buat sekarang"<<<" a.2 b.4 c.6 "<<<" Answer : "; cin>>jwb;
cout<<" Penjawab Soal : Susi "<<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"7) berapa kali yesi mencubit orang dalam sehari ? "<<<" a.10x b.5x c.3x "<<<" Answer : "; cin>>jwb;
cout<<" Penjawab Soal : Susi "<<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"8) berapa hasil bagi dari nilai 10/5+5-2 ?"<<<" a.5 b.4 c.3 "<<<" Answer : "; cin>>jwb;
cout<<" Penjawab Soal : Chandra "<<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"9) mina beli apel 2, hendra beli ayam 3 potong, yesi beli bakso 2, terus ayam hendra mati 1, berapa sisa ayam hendra ?"<<<" a.4 b.2 c.1 "<<<" Answer : "; cin>>jwb;
cout<<" Penjawab Soal : Budi "<<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"10) berapa hasil kali dari 2x10+5-4 ? "<<<" a.20 b.21 c.22 "<<<" Answer : "; cin>>jwb;
cout<<" Penjawab Soal : Budi "<<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<" Keaktifan Lomba Menjawab Soal Dengan Tepat dan benar "<<<" Kelas 2 A "<<<" Nama : Emon "<<<" Nama : Lisa "<<<" Nama : Sandra "<<<" Nama : Santi "<<<" Lomba Menghitung Matematika dengan cepat dan tepat "<<<" Kalangan perwakilan kelas masing-masing "<<<"1) Berapa jumlah dari 2+2+2+2+3+4+1 ? "<<<" a.16 b.14 c.17 "<<<" Answer : "; cin>>jwb;
cout<<" Penjawab Soal : Emon "<<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"2) Berapa hasil kali dari 10*10+10+10-100 ? "<<<" a.100 b.20 c.80 "<<<" Answer : "; cin>>jwb;
cout<<" Penjawab Soal : Lisa "<<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"3) Berapa hasil bagi dari 10/5+9/3-5 ? "<<<" a.2 b.20 c.0 "<<<" Answer : "; cin>>jwb;
cout<<" Penjawab Soal : Sandra " <<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"4) Hari Kamis ikan tinggal 10 ekor, Hari Jumat Ikan tinggal 5, Berapa ekor ikan yang tidak ada ? "<<<" a.4 b.2 c.5 "<<<" Answer : "; cin>>jwb;
cout<<" Penjawab Soal : santi " <<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"5) ibu punya permen 100, ibu memberikan ke silvi 20, ibu juga memberikan permen ke indah 70, sisa berapa permen ibu sekarang ?"<<<" a.15 b.8 c.10 "<<<" Answer : "; cin>>jwb;
cout<<" Penjawab Soal : Lisa " <<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"6) Berapa nilai dari 100+ ---- +50=275 "<<<" a.125 b.100 c.75 "<<<" Answer : "; cin>>jwb;
cout<<" Penjawab Soal : Emon "<
<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"7) Sebuah Dealer Honda mempunyai stok Supra 35, Kemudian laku 10 dan tambah lagi 15, dan juga dibeli orang 5, berapa sisa supra sekarang ?"<<<" a.30 b.35 c.40 "<<<" Answer : "; cin>>jwb;
cout<<" Penjawab soal : santi "<
<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"8) 1 pohon Mangga berisi 300 buah,kemudian ada yang jatuh 125 dan diambil orang 100 ada juga dibeli 25, Berapa sisa mangga sekarang ?"<<<" a.75 b.50 c.60 "<<<" Answer : "; cin>>jwb;
cout<<" Penjawab Soal : Sandra " <
<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"9) Sebuah Alpabet terdiri dari A,I,U,E,O, jika huruf E hilang maka sisa berapa alpabet yang ada "<<<" a.4 b.3 c.2"<<<" Answer : "; cin>>jwb;
cout<<" Penjawab Soal : Santi "<
<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"10) berapa hasil kurang dari 10-5-2+10 ? "<<<" a.12 b.13 c.10 "<<<" Answer : "; cin>>jwb;
cout<<" Penjawab Soal : Emon "<
<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<" Keaktifan Lomba Menjawab Soal Dengan Tepat dan benar "<<<" Kelas 3 A "<<<" Nama : Winda "<<<" Nama : Anisa "<<<" Nama : Acik "<<<" Nama : Wanda "<<<" Lomba Menghitung Matematika dengan cepat dan tepat "<<<" Kalangan perwakilan kelas masing-masing "<<<"1) Berapa hasil dari 20*10+100*1-50 "<<<" a.250 b.100 c.175 "<<<" Answer : "; cin>>jwb;
cout<<" Penjawab Soal : Winda "<
<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"2) Ayam bertelur 10, Menetas 2, Gagal 3, Sukses 4, sisa berapa ayam yang tidak menetas ? "<<<" a.Are they going b.Will they going c.They are going"<<<" Answer : "; cin>>jwb;
cout<<" Penjawab Soal : Anisa "<
<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"3) Berapa nilai 100 jika di bagi dengan 10 ? "<<<" a.20 b.25 c.10 "<<<" Answer : "; cin>>jwb;
if (jwb == 'c')
{
cout<<" Your Answer is : Right. Click enter to continue."<
<<<" Your Answer is : False. Click enter to continue."<<<<"4) Bilangan berapa jika setelah dikalikan dapat 25 "<<<" a.5x5 b.5x7 c.5x6 "<<<" Answer : "; cin>>jwb;
cout<<" Penjawab Soal : Anisa "<
<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"5) berapa nilai jika dikalikan dapat nilai 100?"<<<" a.20 b.25 c.10 "<<<" Answer : "; cin>>jwb;
cout<<" Penjawab soal : Acik "<
<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"6) Rumah punya genteng 570, Pecah 125, jatuh 75, retak 20, berapa sisa genteng yang masih bagus "<<<" a.250 b.350 c. 275 "<<<" Answer : "; cin>>jwb;
cout<<" Penjawab Soal : Acik "<
<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"7) Ada berapa karakter dari kalimat Citra Mauliana, jika huruf 'U' hilang "<<<" a.11 b.10 c.9 "<<<" Answer : "; cin>>jwb;
cout<<" Penjawab Soal : Wanda "<
<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"8) Ada berapa hari di bulan februari "<<<" a.29 b.28 c.30"<<<" Answer : "; cin>>jwb;
cout<<" Penjawab soal : Winda "<
<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"9) Jatuh Pada hari apa kasih sayang pada bulan Februari ?"<<<" a.13 b.14 c.15"<<<" Answer : "; cin>>jwb;
cout<<" Penjawab Soal : Acik "<
<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<"10) Jatuh pada jam berapa Sholat maghrib di wilayah Malang ?"<<<" a.18.00 wib b.18.15 wib c.17.40 wib "<<<" Answer : "; cin>>jwb;
cout<<" Penjawab Soal : Wanda " <
<<" Your Answer is : Right. Click enter to continue."<<<<" Your Answer is : False. Click enter to continue."<<<<" Keaktifan Lomba Menjawab Soal Dengan Tepat dan benar "<<<" Rekan Panitia Penilaian Lomba Antar Kelas 1 sampai kelas 3 "<<<" Nama : Bapak Dedi (kepala sekolah) "<<<" Nama : Ibu Guru Aisah (Panitia Lomba) "<<<" Nama : Bapak Guru Wedi (Panitia Lomba) "<<<" Nama : Ibu Guru Siti (Panitia Lomba) "<<<" Nama : Ibu Guru Andri (panitia Lomba) "<<<" Nama : Bapak guru Ari (pengajar kelas 1 A) (Matematika) "<<<" Nama : Ibu Guru Indah (Pengajar Kelas 2 A) (Biologi) "<<<" Nama : Ibu Guru Sari (pengajar Kelas 3 A) (Fisika) "<

BEGUNDELZ MANIAC. Diberdayakan oleh Blogger.

Amazon MP3 Clips