KRS
Codingan :
//judul
//membuat program krs
//akbar 13 okt 2022
#include <iostream>
using namespace std;
//kamus
string nim, nama, prodi;
int x1, x2, x3, x4, x5, x6, x7, bagi=7;
float hasil, ratarata;
//diskripsi
int main ()
{
cout << "\t Kartu Hasil Studi \t\n";
cout << "Program Studi Teknik Informatika\n";
cout << "UNIVERSITAS DIAN NUSWANTORO\n";
cout << "Nama = "; getline (cin, nama);
cout << "NIM = "; getline (cin , nim);
cout << "Prodi = "; getline (cin, prodi);
system ("cls");
cout << "Nama Mata Kuliah\n";
cout << "-----------------------------\n";
cout << "Dasar pemrograman\n";
cout << "Jumlah sks = 4\n";
cout << "Nilai = ";cin >> x1;
cout << "\n";
cout << "Kalkulus 1\n";
cout << "jumlah sks = 4\n";
cout << "Nilai = ";cin >> x2;
cout << "\n";
cout << "Matematika Diskrit\n";
cout << "jumlah sks = 3\n";
cout << "Nilai = ";cin >> x3;
cout << "\n";
cout << "Pemrograman Berbasis Web\n";
cout << "jumlah sks = 2\n";
cout << "Nilai = ";cin >> x4;
cout << "\n";
cout << "Organisasi dan Arsitektur Komputer\n";
cout << "jumlah sks = 3\n";
cout << "Nilai = ";cin >> x5;
cout << "\n";
cout << "Dasar-dasar Komputasi\n";
cout << "jumlah sks = 2\n";
cout << "Nilai = ";cin >> x6;
cout << "\n";
cout << "Pengantar Teknologi Informasi\n";
cout << "jumlah sks = 2\n";
cout << "Nilai = ";cin >> x7;
cout << "\n";
hasil = x1 + x2 + x3 + x4 + x5 + x6 + x7;
ratarata = hasil/bagi;
cout << "Total sks = 20\n";
cout << "Rata-rata = " << ratarata << endl;
cout << "Jumlah nilai = " << hasil;
}
Komentar
Posting Komentar