• Hai, Welcome ! Like us on:

Program Target Menetukan IPK Kumulatif


Buat Kawan-kawan yang ingin menghitung IPK kumulatif silahkan coba.. hehe


// Program 9 April 2013

#include <iostream.h>
#include <conio.h>
#include <iomanip.h>

void garis();  //prototype untuk garis
void main()
{
   int i;
   float o[20], n, rata, total;

garis();
cout <<setw(40)<<" Programing Function di function " <<endl;
   cout <<setw(38)<<" oleh   :   Nanang Yuniantoro " <<endl;
   garis();
   cout <<endl<<endl<<endl;
   garis();
   cout <<setw(35)<<" Daftar Target IPK  " <<endl<<endl;
   garis();
   cout <<" Masukkan Target IPK selama (Semester) = " ;cin>>n;
   for (i=0;i<n;i++)
    {
    cout <<" Semester ke - " <<i+1<< " = "; cin>>o[i];

      }
      clrscr();
   garis();
   cout <<"        Semester " <<"                Target IPK " <<endl;
   garis();
   for (i=0;i<n;i++)
   {
     total=total+o[i];
     rata=total/n;
}
   for (i=0;i<n;i++)
    {
         cout<<"|"<<"          "<<i+1<<"             | "<<"           "<<o[i]<<"          |";
         cout <<endl;
      }
   garis();
   cout <<" Jumlah Total    = " <<total<<endl;
   cout <<" IPK Kumulatif   = " <<rata<<endl;
   getche();
}
void garis()
{
int i;
   for (i=0;i<50;i++)
   cout << '+' ;
   cout <<endl;
}



0 komentar:

Posting Komentar

Silahkan Berargumentasi. ^_^
Readers may send comments on this post. The contents of comments not represent the views, opinions or policies Ikatan Alumni Titian Foundation and entirely the responsibility of the sender.

Readers can report a comment if it is considered unethical, abusive, defamatory, or redistributed. Ikatan Alumni Titian Foundation will consider each complaint and may decide to keep or delete the comment display.