C++ Hitung nilai Final dan grade

//lh3.googleusercontent.com/-K5UKWzgJhmU/AAAAAAAAAAI/AAAAAAAACdI/CN3nwiBZsGE/s512-c/photo.jpg
November 23, 2016





   ini sangat membantu anda ketika anda ingin menghitung nilai akhir dari mahasiswa, karena anda tinggal menginput nilai dan hasilnya akan tampil. langsung aja ya saya beri kodingannya:

 #include <iostream>
using namespace std;
main()
{
    cout<<"                              We Are Team 1\n";
    cout<<"                              Informatics Engineering\n";
    cout<<"                              BATCH = 4\n";
    cout<<"________________________________________________________________________________\n";
    int Mid,Final,Assigment, NA;
    cout<<"Input Mid Test Score = \n";
    cin>>Mid;
    //cout<<Mid;
    cout<<"Input Final Test Score = \n";
    cin>>Final;
    //cout<<Final;
    cout<<"Input Assigment Score = \n";
    cin>>Assigment;
    //cout<<Assigment;
    NA = (Mid*0.3) + (Final*0.3) + (Assigment*0.4);
    cout<<"Final Score = "<<NA<<endl;
    if (NA >=65)
    {
    cout<<endl<<"===============================You Pass The Test================================\n";
    }
    else
    {
    cout<<endl<<"===============================You Didn't Pass The Test=========================\n";
    }
    if (NA >=89)
    {
    cout<<"Your Grade Is = A"<<endl<<"Very Good";
    }
    else if (NA >=70)
    {
    cout<<"Your Grade Is = B"<<endl<<"Good";
    }
    else if (NA >=60)
    {
    cout<<"Your Grade Is = C"<<endl<<"Pretty Good";
    }
    else if (NA >=50)
    {
    cout<<"Your Grade Is = D"<<endl<<"Not Good Enough";
    }
    else if (NA >=20)
    {
    cout<<"Your Grade Is = E"<<endl<<"Poorly";
    }
}


Related Post

SUBSCRIBE TO OUR NEWSLETTER

closed