Postingan lainnya
Program Sederhana "Menghitung IP", Please Help
Masalahnya pas input string kedalam array kok gak bisa??; pake Dev C++
kode progeram:
#include
using namespace std;
main() { char nim[30], nm[30], kmk[30][8], nmk[30][8], ket[30[8]; //nm=NamaMahasiswa,kmk=KodeMatakuliah,nmk=NamaMatakuliah,ket=KeteranganIP, float ip[32],sks[30][8],nilai[30][8],mutu[30][8],ssks,smutu,r; int i,j,k,ti,tr; ip[31]=0.00; ip[32]=5.00; ti=31; tr=32; for(i=1;i<=3;i++){ ssks=0; smutu=0;
cout<<"Data Kampus"<>nim[i]; cout<<"Nama Mahasiswa : ";cin>>nm[i]; cout<<"Data Mahasiswa"<>kmk[i][j]; cout<<"Nama Mata Kuliah : ";cin>>nmk[i][j]; cout<<"SKS : ";cin>>sks[i][j]; cout<<"Nilai : ";cin>>nilai[i][j];
mutu[i][j]=sks[i][j]*nilai[i][j]; ssks=ssks+sks[i][j]; smutu=smutu+mutu[i][j]; } ip[i]=smutu/ssks; if(ip[ti]ip[i]){tr=i;} }
for(k=1;k<=3;k++){ cout<<"No : "<=3,50)){cout<<"Sangat Baik"<=2,75)){cout<<"Sangat Baik"<=2,00)){cout<<"Sangat Baik"<=0,00)){cout<<"Sangat Baik"<
1 Jawaban:
susah saya bacanya gan kalok bisa kodenya di taruh dipastebin aja.