title: How to create exam grading program in c++?
body: <p>I try to help friend to finish his exam to create this exam grading program in C++ but all try failed to compile this program. Can you help me?
  Every try always gets "fatal error" and "No such file or directory
  compilation terminated." So far we try to compile it with online compiler.</p>
  
  <pre><code># include &lt;stdio.h&gt;
  # include &lt;iostream.h&gt;
  # include &lt;conio.h&gt;
  
  main()
  {
     char nama[20],*Grade;
     float nk,nt,nu,nmk,nmt,nmu,na;
     cout&lt;&lt;"Program Hitung Nilai Akhir Siswa"&lt;&lt;endl&lt;&lt;endl;
     cout&lt;&lt;"   Masukkan Nama Siswa : ";gets(nama);
     cout&lt;&lt;"   Nilai Keaktifan     : ";cin&gt;&gt;nk;
     cout&lt;&lt;"   Nilai Tugas         : ";cin&gt;&gt;nt;
     cout&lt;&lt;"   Nilai Ujian         : ";cin&gt;&gt;nu;
     nmk=nk*0.2;
     nmt=nt*0.3;
     nmu=nu*0.5;
     na=nmk+nmt+nmu;
     if(na&gt;=80)a
     {
        Grade="A";
     }
     else if(na&gt;=90)
     {
        Grade="B";
     }
     else if(na&gt;=80)
     {
        Grade="C";
     }
     else if(na&gt;=70)
     {
        Grade="D";
     }
     else
     {
        Grade="E";
     }
     cout&lt;&lt;endl;
     cout&lt;&lt;"     Siswa Yang Bernama "&lt;&lt;nama&lt;&lt;endl;
     cout&lt;&lt;"     Dengan nilai presentase yang dihasilkan"&lt;&lt;endl;
     cout&lt;&lt;"     Nilai Murni Keaktifan x 20%    : "&lt;&lt;nmk&lt;&lt;endl;
     cout&lt;&lt;"     Nilai Murni Tugas     x 30%    : "&lt;&lt;nmt&lt;&lt;endl;
     cout&lt;&lt;"     Nilai Murni Ujian     x 50%    : "&lt;&lt;nmu&lt;&lt;endl;
     cout&lt;&lt;"     Memperoleh Nilai Akhir Sebesar : "&lt;&lt;na&lt;&lt;endl;
     cout&lt;&lt;"     Grade yang di dapat            : "&lt;&lt;Grade&lt;&lt;endl;
     getch();
  }
  </code></pre>