#include<stdio.h>
#include<string.h>
#include<conio.h>
#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
int kode, jumlah, sks, semester, nim,a;
char nama[50];
char prodi[100];
atas:
cout<<" Masukan NAma Mahasiswa : "; gets(nama);
cout<<" Masukan NIM : ";cin>>nim;
cout<<" Masukan Jumlah SKS per Semester [10-24]: "; cin>>sks;
cout<<" Masukan KODE [1-3] : ";cin>>kode;
cout<<gets(prodi);
if(kode==1)
{
strcpy(prodi, "Teknik Informatika - S1");
//cout<<" Teknik Informatika - S1";
jumlah=160000*sks;
}
else if(kode==2)
{
strcpy(prodi, " Teknik Informatika - D3 ");
jumlah=(160000*sks)/2;
}
else if(kode==3)
{
strcpy(prodi, " Sistem Informasi - S1 ");
jumlah=145000*sks;
}
else
{
cout<<"Kode Tidak Ada... Kode [1-3] ";
}
cout<<endl;cout<<endl;cout<<endl;cout<<endl;cout<<endl;cout<<endl;
cout<<" DAFTAR BAYAR PER SEMESTER "<<endl<<endl;
cout<<prodi<<endl<<endl;
cout<<"====================================================================="<<endl;
cout<<" | Nim | Nama Mahasiswa | SKS | Bayar |"<<endl;
cout<<"====================================================================="<<endl;
//cout<<"|"<<setw(4);cout<<kode;
cout<<" | "<<setw(11);cout<<nim;
cout<<" | "<<setw(20);cout<<nama;
cout<<" | "<<setw(5);cout<<sks;
cout<<" | "<<setw(7);cout<<jumlah;
cout<<endl;cout<<endl;cout<<endl;cout<<endl;cout<<endl;
cout<<" Apakah ingin Menghitung Lagi [ Y / N ]";cin>>a;
if(a=='Y'|| a=='y')
goto atas;
return 0;
}
fal08.blogspot.com
ReplyDeleteelogiustho.blogspot.com
ReplyDeleteelogiustho.blogspot.com
ReplyDeletehttps://marselinuspekalewotobi.blogspot.com/2021/03/hasil-run-program-biaya-sks.html
ReplyDeleteMARSELINUS PEKA LEWOTOBI (20120026)
KELAS: B/ TI S1
https://yustinapeni.blogspot.com/2021/03/httpsdrive.html
ReplyDeleteYustina Amina Marta Peni (20120025)
Kelas:B/TI S1