#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
using namespace std;
int main()
{
char kd_siswa[10];
char nm_siswa[30];
float n_word;
float n_excel;
float n_ppt;
float ttln;
char status[15];
cout<<"LEMBAGA PENDIDIKAN KURSUS KOMPUTER"<<endl;
cout<<" [RIZQI YULIARTA] "<<endl;
cout<<"=================================="<<endl;
cout<<"KODE SISWA : ";
cin>>kd_siswa;
cout<<"NAMA SISWA : ";
cin>>nm_siswa;
cout<<"NILAI MS.WORD : ";
cin>>n_word;
cout<<"NILAI MS.EXCEL : ";
cin>>n_excel;
cout<<"NILAI MS.POWER POINT : ";
cin>>n_ppt;
system("cls");
cout<<"LEMBAGA PENDIDIKAN KURSUS KOMPUTER"<<endl;
cout<<" [RIZQI YULIARTA] "<<endl;
cout<<"=================================="<<endl;
cout<<"KODE SISWA : "<<kd_siswa<<endl;
cout<<"NAMA SISWA : "<<nm_siswa<<endl;
cout<<"NILAI MS.WORD : "<<n_word<<endl;
cout<<"NILAI MS.EXCEL : "<<n_excel<<endl;
cout<<"NILAI MS.POWER POINT : "<<n_ppt<<endl;
ttln = (n_word+n_excel+n_ppt)/3;
if (ttln>80)
{
strcpy(status,"SANGAT BAIK");
}
else if (ttln>70)
{
strcpy(status,"BAIK");
}
else if (ttln>60)
{
strcpy(status,"CUKUP");
}
else
{
strcpy(status,"GAGAL");
}
cout<<"=================================="<<endl;
cout<<"TOTAL NILAI : "<<ttln<<endl;
cout<<"STATUS : "<<status;
}
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
using namespace std;
int main()
{
char kd_siswa[10];
char nm_siswa[30];
float n_word;
float n_excel;
float n_ppt;
float ttln;
char status[15];
cout<<"LEMBAGA PENDIDIKAN KURSUS KOMPUTER"<<endl;
cout<<" [RIZQI YULIARTA] "<<endl;
cout<<"=================================="<<endl;
cout<<"KODE SISWA : ";
cin>>kd_siswa;
cout<<"NAMA SISWA : ";
cin>>nm_siswa;
cout<<"NILAI MS.WORD : ";
cin>>n_word;
cout<<"NILAI MS.EXCEL : ";
cin>>n_excel;
cout<<"NILAI MS.POWER POINT : ";
cin>>n_ppt;
system("cls");
cout<<"LEMBAGA PENDIDIKAN KURSUS KOMPUTER"<<endl;
cout<<" [RIZQI YULIARTA] "<<endl;
cout<<"=================================="<<endl;
cout<<"KODE SISWA : "<<kd_siswa<<endl;
cout<<"NAMA SISWA : "<<nm_siswa<<endl;
cout<<"NILAI MS.WORD : "<<n_word<<endl;
cout<<"NILAI MS.EXCEL : "<<n_excel<<endl;
cout<<"NILAI MS.POWER POINT : "<<n_ppt<<endl;
ttln = (n_word+n_excel+n_ppt)/3;
if (ttln>80)
{
strcpy(status,"SANGAT BAIK");
}
else if (ttln>70)
{
strcpy(status,"BAIK");
}
else if (ttln>60)
{
strcpy(status,"CUKUP");
}
else
{
strcpy(status,"GAGAL");
}
cout<<"=================================="<<endl;
cout<<"TOTAL NILAI : "<<ttln<<endl;
cout<<"STATUS : "<<status;
}
Tidak ada komentar:
Posting Komentar
Gunakan bahasa yang sopan please :)