#include <iostream>
using namespace std;
int main() {
float ips1, ips2, ips3;
float IPK;
string NIM, Nama;
cout << "Masukkan nama anda: ";
getline(cin, Nama);
cout << "Masukkan NIM anda: ";
cin >> NIM;
cout << "Masukkan IP Semester 1 anda: ";
cin >> ips1;
cout << "Masukkan IP Semester 2 anda: ";
cin >> ips2;
cout << "Masukkan IP Semester 3 anda: ";
cin >> ips3;
cout << "-------------------------------------------------------------------------------------------" << endl;
if(ips1 >=0.0 && ips1 <=4.0 && ips2 >=0.0 && ips2 <=4.0 && ips3 >=0.0 && ips3 <=4.0){
IPK = (ips1+ips2+ips3) /3;
cout << "Nama anda adalah \t: " << Nama << endl << "NIM anda adalah \t: " << NIM << endl << "IPK anda adalah \t: " << IPK << endl;
if(ips3 >=3.0 && ips3 <=4){
cout << "Jatah sks anda di semester depan adalah 24 sks";
}
else if (ips3 >=2.0 && ips3 <=2.9){
cout << "Jatah sks anda di semester depan adalah 20 sks";
}
else{
cout << "Jatah sks anda di semester depan adalah 19 sks";
}
}
else{
cout << "Input yang anda masukkan tidak sesuai";
}
return 0;
}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}