#include #include using namespace std; int main() { string nama, NIM; float ips1, ips2, ips3, ipk; cout << "Masukkan nama anda : "; cin >> nama; cout << "Masukkan NIM anda : "; cin >> NIM; cout << "Masukkan IP Semester 1 : "; cin >> ips1; cout << "Masukkan IP Semester 2 : "; cin >> ips2; cout << "Masukkan IP Semester 3 : "; cin >> ips3; cout << "===========================================================" << endl; ipk = (ips1 + ips2 + ips3)/3; cout << "Nama : " << nama << endl; cout << "NIM : " << NIM << endl; cout << setprecision(2) << "IPK kamu adalah : " << ipk << endl; if(ips1 >= 0 && ips1 <= 4 && ips2 >= 0 && ips2 <= 4 && ips3 >= 0 && ips3 <= 4){ if(ips3 >= 3.0){ cout << "Semester berikutnya kamu dapat mengambil sks maksimal 24 sks."; }else if(ips3 >= 2.0 && ips3 < 2.95){ cout << "Semester berikutnya kamu dapat mengambil sks maksimal 20 sks."; }else { cout << "Semester berikutnya kamu dapat mengambil sks maksimal 19 sks."; } }else{ cout << "Input yang anda masukkan tidak sesuai."; } return 0; }