:#include <iostream.h>
#include <conio.h>
struct mhs
{ char nama[80],nim[10],jurusan[2];
int sks,program; };
struct mhs bayar;
main ()
{
clrscr();
cout <<"\n SPP Mahasiswa D3 & SI \n";
cout <<" ________________________ \n\n";
cout <<" D3 \n";
cout <<" - Spp Tetap Rp. 700.000 \n" ;
cout <<" - Spp Var Rp. 25.000/sks \n";
cout <<" SI \n";
cout <<" - Spp Tetap Rp. 850.000 \n";
cout <<" - Spp Var Rp. 50.000/sks \n";
cout <<" ________________________ \n \n";
cout <<" \n ";
int bts,var,tetap;
//input data
cout<<"\n Nama Mahasiswa = ";cin>>bayar.nama;
cout<<" NIM = ";cin>>bayar.nim;
cout<<" Jurusan[TI,MI,SI] = ";cin>>bayar.jurusan;
input:
cout<<" Program Studi [Pilih 1=D3,Pilih 2=S1]= ";cin>>bayar.program;
if (bayar.program < 0 || bayar.program > 2)
{cout<<"Program tidak sesuai\n";
goto input;}
cout<<" Jumlah Sks = ";cin>>bayar.sks;
if (bayar.program==1)
{tetap=500000;
var=bayar.sks*25000;}
else if (bayar.program==2)
{tetap=750000;
var=bayar.sks*50000;}
cout<<"";
//output data
cout<<"\n\n -----------------------\n";
cout<<" Hasil ";
cout<<"\n -----------------------\n";
cout<<"\n Nama Mahasiswa = "<<bayar.nama;
cout<<"\n NIM = "<<bayar.nim;
cout<<"\n Jurusan = "<<bayar.jurusan;
cout<<"\n Program Studi = "<<bayar.program;
cout<<"\n Jumlah Sks = "<<bayar.sks;
cout<<"\n Spp Tetap = "<<tetap;
cout<<"\n Spp Variabel = "<<var;
cout<<endl;
getch();}
#include <conio.h>
struct mhs
{ char nama[80],nim[10],jurusan[2];
int sks,program; };
struct mhs bayar;
main ()
{
clrscr();
cout <<"\n SPP Mahasiswa D3 & SI \n";
cout <<" ________________________ \n\n";
cout <<" D3 \n";
cout <<" - Spp Tetap Rp. 700.000 \n" ;
cout <<" - Spp Var Rp. 25.000/sks \n";
cout <<" SI \n";
cout <<" - Spp Tetap Rp. 850.000 \n";
cout <<" - Spp Var Rp. 50.000/sks \n";
cout <<" ________________________ \n \n";
cout <<" \n ";
int bts,var,tetap;
//input data
cout<<"\n Nama Mahasiswa = ";cin>>bayar.nama;
cout<<" NIM = ";cin>>bayar.nim;
cout<<" Jurusan[TI,MI,SI] = ";cin>>bayar.jurusan;
input:
cout<<" Program Studi [Pilih 1=D3,Pilih 2=S1]= ";cin>>bayar.program;
if (bayar.program < 0 || bayar.program > 2)
{cout<<"Program tidak sesuai\n";
goto input;}
cout<<" Jumlah Sks = ";cin>>bayar.sks;
if (bayar.program==1)
{tetap=500000;
var=bayar.sks*25000;}
else if (bayar.program==2)
{tetap=750000;
var=bayar.sks*50000;}
cout<<"";
//output data
cout<<"\n\n -----------------------\n";
cout<<" Hasil ";
cout<<"\n -----------------------\n";
cout<<"\n Nama Mahasiswa = "<<bayar.nama;
cout<<"\n NIM = "<<bayar.nim;
cout<<"\n Jurusan = "<<bayar.jurusan;
cout<<"\n Program Studi = "<<bayar.program;
cout<<"\n Jumlah Sks = "<<bayar.sks;
cout<<"\n Spp Tetap = "<<tetap;
cout<<"\n Spp Variabel = "<<var;
cout<<endl;
getch();}