Untuk Satu Tujuan

codingan C++ program peminjaman buku

Assalamualaikum salam sukses untuk kita semua,  sekarang ini saya akan membagikan codingan suatu program ke teman-teman tentang peminjaman buku di perpustakaan. dalam codingan ini semuanya semuanya sudah kompleks dan pastinya memiliki bahasa pemograman yang baru, karena seperti yang kita ketahui bahwa semua perpustakaan pastinya memiliki alat yang berguna untuk mempermudah peminjaman di suatu program.

bahasa pemograman yang yang baru dalam codingan ini menurut saya yakni ada void dan gotoxy, adapun fungsi dari void yakni untuk mempermudah dalam pembuatan suatu program yang memiliki banyak konteks dan lebih rapi untuk pekerjaan suatu program, sedangkan fungsi dari gotoxy yakni untuk memperbaiki interface atau tampilan dari program kita, dengan kata lain agar lebih menarik dan rapih untuk di pandang.

dalam codingan program ini semua sudah di atur baik itu untuk denda, ketersediaan buku dan pemasukan nama, waktu peminjaman dan waktu pengembalian, dan semua rumus untuk menjalankan perhitungan di dalamnya sudah di masukkan dalam codingan ini.

adapun codingan untuk program peminjaman buku di perpustakaan tersebut adalah di bawah ini.
gambar program


#include <iostream>
#include <conio.h>
#include <windows.h>
#include <stdio.h>
using namespace std;
void gotoxy (int x, int y)
{
    COORD coord = {0, 0};
    coord.X = x; coord.Y = y;
    SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord);
}
void login();
void menu();
void choice();
void borrow_book();
void borrow_finapplication();
void borrow_accapplication();
void borrow_baapplication();
void borrow_markapplication();
void borrow_civapplication();
void borrow_ieapplication();
void borrow_isapplication();
void borrow_ccapplication();
void borrow_arcapplication();
void borrow_petroapplication();
void borrow_eeapplication();
void return_finapplication();
void return_accapplication();
void return_baapplication();
void return_markapplication();
void return_civapplication();
void return_ieapplication();
void return_isapplication();
void return_ccapplication();
void return_arcapplication();
void return_petroapplication();
void return_eeapplication();
void book_by_majorlist();
void return_book();
void exit_program();
void asktomenu();
void choicemajor();
void book_finlist();
void book_acclist();
void book_balist();
void book_marklist();
void book_civlist();
void book_ielist();
void book_islist();
void book_cclist();
void book_arclist();
void book_petrolist();
void book_eelist();
void loading();
void main_menu();
void choicemajorreturn();
void choicemajorborrow();
char *book_fin[5]
{
    "Asas-Asas manajemen keuangan","Ekonomi dan keuangan","Bisnis keuangan","Pengantar Manajemen Keuangan","Finance Planner"
};
char *book_acc[5]
{
    "Akuntansi Aktiva Tetap","Dasar Dasar Akutansi","Akuntansi Biaya","Sistem Akuntansi","Akutansi Pajak"
};
char *book_ba[5]
{
    "Pengantar Bisnis Administrasi","Administrasi Perpajakan","Administrasi Publik","bisnis berbasis Entrepreneurship","Bisnis Etik"
};
char *book_mark[5]
{
    "Dasar-dasar Pemasaran","Komunikasi Pemasaran Terpadu","Manajemen Pemasarn Global","Manajemen Kinerja","Manajemen Kualitas Produk dan Jasa"
};
char *book_cc[5]
{
    "Prasangka dan Konflik Komunikasi","Komunikasi Internasionaldan media politik","Komunikasi Antar Budaya","Komunikasi Bisnis Perspektif konseptual dan Kultural","Komunikasi dan Kekuasaan"
};
char *book_civ[5]
{
    "Aliran Debris dan Lahar","Analisis Perancangan pondasi","Balok & Beton Bertulang","Beton non Pasir","Desain Hindrolik Bangunan Irigasi"
};
char *book_ie[5]
{
    "Rekayasa perangkat Lunak","Membangun Jaringan Komputer"," Mengolah MultiMedia untuk Web","Web Programing","Pemograman Aplikasi Android "
};
char *book_is[5]
{
    "Analisis & design SI","Pengenalan sistem informasi"," Pengembangan rencana induk SI","Komputer & Teknologi Informasi","Pengantar Sistem Informasi"
};
char *book_arc[5]
{
    "Arsitektur Ruang & Tatanan","Pengantar Ilmu Bangunan"," Pengantar Ilmu Bangunan"," Buku Pintar Membangun Rumah"," Penataan Drainase Perkotaan"
};
char *book_petro[5]
{
    "Migas Untuk Rakyat","Teknik Pemboran Modern","Geologi Minyak Dan Gas Bumi","Natural dan Gas","Produksi Teknik Perminyakan"
};
char *book_ee[5]
{
    "Teori Tansformator","Teknologi Instalasi listrik"," Rangkaian Elektronik","Teknologi Elektrik","Analisis Sirkuit Elektronik"
};
int main()
{
    main_menu();
    return 0;
}
void main_menu()
{
    gotoxy(20,10);
    login();
    menu();
    choice();

}
void login()
{
    char name[20];
    loading();
    system("cls");
    gotoxy(20,10);cout<<"Enter Your Name  : ";
    cin.getline(name,20);
    system("cls");
}
void menu()
{
    char name[20];
    gotoxy(57,2);cout<<"Welcome, "<<name;
    gotoxy(25,4);cout<<"=============================="<<endl;
    gotoxy(25,5);cout<<"       Library Program        "<<endl;
    gotoxy(25,6);cout<<"           Gen-19             "<<endl;
    gotoxy(25,7);cout<<"=============================="<<endl<<endl<<endl;
    gotoxy(32,10);cout<<"1. Borrow Book ";
    gotoxy(32,11);cout<<"2. Return Book ";
    gotoxy(32,12);cout<<"3. Exit ";
}
void choice()
{
    int choice;
    gotoxy(25,15);cout<<"Enter your choice [1/2/3] : ";
    cin>>choice;
    switch(choice)
    {
    case 1:
        choicemajorborrow();
        break;
    case 2:
        choicemajorreturn();
        break;
    case 3 :
        exit_program();
        break;
    default :
        system("cls");
        gotoxy(32,10);cout<<" Wrong Choice "<<endl<<endl;
        asktomenu();
        break;

    }
}
void choicemajorborrow()
{
    book_by_majorlist();
    int choicemajor;
    gotoxy(25,23);cout<<"Enter your choice [1-11] : ";
    cin>>choicemajor;
    switch(choicemajor)
    {
    case 1:
        book_finlist();
        borrow_finapplication();
        break;
    case 2:
        book_acclist();
        borrow_accapplication();
        break;
    case 3 :
        book_balist();
        borrow_baapplication();
        break;
    case 4:
        book_marklist();
        borrow_markapplication();
        break;
    case 5 :
        book_cclist();
        borrow_ccapplication();
        break;
    case 6 :
        book_civlist();
        borrow_civapplication();
        break;
    case 7 :
        book_ielist();
        borrow_ieapplication();
        break;
    case 8 :
        book_islist();
        borrow_isapplication();
        break;
    case 9 :
        book_arclist();
        borrow_arcapplication();
        break;
    case 10 :
        book_petrolist();
        borrow_petroapplication();
        break;
    case 11 :
        book_eelist();
        borrow_petroapplication();
        break;
    default :
        system("cls");
        gotoxy(32,10);cout<<" Wrong Choice "<<endl<<endl;
        asktomenu();
    }
}
void choicemajorreturn()
{
    book_by_majorlist();
    int choicemajor;
    gotoxy(25,23);cout<<"Enter your choice [1-11] : ";
    cin>>choicemajor;
    switch(choicemajor)
    {
    case 1:
        book_finlist();
        return_finapplication();
        break;
    case 2:
        book_acclist();
        return_accapplication();
        break;
    case 3 :
        book_balist();
        return_baapplication();
        break;
    case 4:
        book_marklist();
        return_markapplication();
        break;
    case 5 :
        book_cclist();
        return_ccapplication();
        break;
    case 6 :
        book_civlist();
        return_civapplication();
        break;
    case 7 :
        book_ielist();
        return_ieapplication();
        break;
    case 8 :
        book_islist();
        return_isapplication();
        break;
    case 9 :
        book_arclist();
        return_arcapplication();
        break;
    case 10 :
        book_petrolist();
        return_petroapplication();
        break;
    case 11 :
        book_eelist();
        return_eeapplication();
        break;
    default :
        system("cls");
        gotoxy(32,10);cout<<" Wrong Choice "<<endl<<endl;
        asktomenu();
        break;

    }

}

void borrow_finapplication()
{
    int booktotal;
    char name1[20];
    cout<<"\n\n   Your Name  ";gotoxy(25,17);cout<<"= ";
    cin>>name1;
    cout<<"\n   How many books ";gotoxy(25,19);cout<<"= ";
    cin>>booktotal;
    if(booktotal>5)
    {
        system("cls");
        gotoxy(32,10);cout<<" You Enter too Much "<<endl<<endl;
        asktomenu();

    }
    else
    {
        for(int x=1;x<=booktotal;x++)
        {
            int bookfincode;
            cout<<"\n   Input Book Code       = ";
            cin>>bookfincode;
            switch(bookfincode)
        {
        case 1 :
            cout<<"\n   You Borrow "<<book_fin[0]<<endl;
            break;
        case 2 :
            cout<<"\n   You Borrow "<<book_fin[1]<<endl;
            break;
        case 3 :
            cout<<"\n   You Borrow "<<book_fin[2]<<endl;
            break;
        case 4 :
            cout<<"\n   You Borrow "<<book_fin[3]<<endl;
            break;
        case 5 :
            cout<<"\n   You Borrow "<<book_fin[4]<<endl;
            break;
        default :
            cout<<"\n   Your Input is Wrong "<<endl;
            booktotal--;
            break;
        }
        }
    }
    int date,due,datereturn,penalties,penaltiesday;
    cout<<"\n   Input Dates of Borrowing (1-31) = ";
    cin>>date;
    if (date<1 || date>31)
    {
        due=0;
    }
    else
    {
        if(date<25)
        {
            due=date+6;
        }
        if(date>=25)
        {
            due=(date+6)-30;
        }
    }
    system("cls");
    gotoxy(20,10);loading();
    system("cls");
    gotoxy(20,4);cout<<"========== Detail ========== ";
    gotoxy(7,6);cout<<" Name ";gotoxy(35,6);cout<<"= "<<name1;
    gotoxy(7,8);cout<<" Number of Book";gotoxy(35,8);cout<<"= "<<booktotal;
    if (due>0)
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= "<<due;
    }
    else
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= You Date Input is Wrong ";
    }
    gotoxy(7,11);asktomenu();
}
void borrow_accapplication()
{
    int booktotal;
    char name1[20];
    cout<<"\n\n   Your Name  ";gotoxy(25,17);cout<<"= ";
    cin>>name1;
    cout<<"\n   How many books ";gotoxy(25,19);cout<<"= ";
    cin>>booktotal;
    if(booktotal>5)
    {
        system("cls");
        gotoxy(32,10);cout<<" You Enter too Much "<<endl<<endl;
        asktomenu();
    }
    else
    {
        for(int x=1;x<=booktotal;x++)
        {
            int bookacccode;
            cout<<"\n   Input Book Code       = ";
            cin>>bookacccode;
            switch(bookacccode)
        {
        case 1 :
            cout<<"\n   You Borrow "<<book_acc[0]<<endl;
            break;
        case 2 :
            cout<<"\n   You Borrow "<<book_acc[1]<<endl;
            break;
        case 3 :
            cout<<"\n   You Borrow "<<book_acc[2]<<endl;
            break;
        case 4 :
            cout<<"\n   You Borrow "<<book_acc[3]<<endl;
            break;
        case 5 :
            cout<<"\n   You Borrow "<<book_acc[4]<<endl;
            break;
        default :
            cout<<"\n   Your Input is Wrong "<<endl;
            booktotal--;
            break;
        }
        }
    }
    int date,due,datereturn,penalties,penaltiesday;
    cout<<"\n   Input Dates of Borrowing (1-31) = ";
    cin>>date;
    if (date<1 || date>31)
    {
        due=0;
    }
    else
    {
        if(date<25)
        {
            due=date+6;
        }
        if(date>=25)
        {
            due=(date+6)-30;
        }
    }
    system("cls");
    gotoxy(20,10);loading();
    system("cls");
    gotoxy(20,4);cout<<"========== Detail ========== ";
    gotoxy(7,6);cout<<" Name ";gotoxy(35,6);cout<<"= "<<name1;
    gotoxy(7,8);cout<<" Number of Book";gotoxy(35,8);cout<<"= "<<booktotal;
    if (due>0)
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= "<<due;
    }
    else
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= You Date Input is Wrong ";
    }
    gotoxy(7,11);asktomenu();
}
void borrow_baapplication()
{
    int booktotal;
    char name1[20];
    cout<<"\n\n   Your Name  ";gotoxy(25,17);cout<<"= ";
    cin>>name1;
    cout<<"\n   How many books ";gotoxy(25,19);cout<<"= ";
    cin>>booktotal;
    if(booktotal>5)
    {
        system("cls");
        gotoxy(32,10);cout<<" You Enter too Much "<<endl<<endl;
        asktomenu();

    }
    else
    {
        for(int x=1;x<=booktotal;x++)
        {
            int bookbacode;
            cout<<"\n   Input Book Code       = ";
            cin>>bookbacode;
            switch(bookbacode)
        {
        case 1 :
            cout<<"\n   You Borrow "<<book_ba[0]<<endl;
            break;
        case 2 :
            cout<<"\n   You Borrow "<<book_ba[1]<<endl;
            break;
        case 3 :
            cout<<"\n   You Borrow "<<book_ba[2]<<endl;
            break;
        case 4 :
            cout<<"\n   You Borrow "<<book_ba[3]<<endl;
            break;
        case 5 :
            cout<<"\n   You Borrow "<<book_ba[4]<<endl;
            break;
        default :
            cout<<"\n   Your Input is Wrong "<<endl;
            booktotal--;
            break;
        }
        }
    }
    int date,due,datereturn,penalties,penaltiesday;
    cout<<"\n   Input Dates of Borrowing (1-31) = ";
    cin>>date;
    if (date<1 || date>31)
    {
        due=0;
    }
    else
    {
        if(date<25)
        {
            due=date+6;
        }
        if(date>=25)
        {
            due=(date+6)-30;
        }
    }
    system("cls");
    gotoxy(20,10);loading();
    system("cls");
    gotoxy(20,4);cout<<"========== Detail ========== ";
    gotoxy(7,6);cout<<" Name ";gotoxy(35,6);cout<<"= "<<name1;
    gotoxy(7,8);cout<<" Number of Book";gotoxy(35,8);cout<<"= "<<booktotal;
    if (due>0)
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= "<<due;
    }
    else
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= You Date Input is Wrong ";
    }
    gotoxy(7,11);asktomenu();
}

void borrow_markapplication()
{
    int booktotal;
    char name1[20];
    cout<<"\n\n   Your Name  ";gotoxy(25,17);cout<<"= ";
    cin>>name1;
    cout<<"\n   How many books ";gotoxy(25,19);cout<<"= ";
    cin>>booktotal;
    if(booktotal>5)
    {
        system("cls");
        gotoxy(32,10);cout<<" You Enter too Much "<<endl<<endl;
        asktomenu();

    }
    else
    {
        for(int x=1;x<=booktotal;x++)
        {
            int bookmarkcode;
            cout<<"\n   Input Book Code       = ";
            cin>>bookmarkcode;
            switch(bookmarkcode)
        {
        case 1 :
            cout<<"\n   You Borrow "<<book_mark[0]<<endl;
            break;
        case 2 :
            cout<<"\n   You Borrow "<<book_mark[1]<<endl;
            break;
        case 3 :
            cout<<"\n   You Borrow "<<book_mark[2]<<endl;
            break;
        case 4 :
            cout<<"\n   You Borrow "<<book_mark[3]<<endl;
            break;
        case 5 :
            cout<<"\n   You Borrow "<<book_mark[4]<<endl;
            break;
        default :
            cout<<"\n   Your Input is Wrong "<<endl;
            booktotal--;
            break;
        }
        }
    }
    int date,due,datereturn,penalties,penaltiesday;
    cout<<"\n   Input Dates of Borrowing (1-31) = ";
    cin>>date;
    if (date<1 || date>31)
    {
        due=0;
    }
    else
    {
        if(date<25)
        {
            due=date+6;
        }
        if(date>=25)
        {
            due=(date+6)-30;
        }
    }
    system("cls");
    gotoxy(20,10);loading();
    system("cls");
    gotoxy(20,4);cout<<"========== Detail ========== ";
    gotoxy(7,6);cout<<" Name ";gotoxy(35,6);cout<<"= "<<name1;
    gotoxy(7,8);cout<<" Number of Book";gotoxy(35,8);cout<<"= "<<booktotal;
    if (due>0)
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= "<<due;
    }
    else
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= You Date Input is Wrong ";
    }
    gotoxy(7,11);asktomenu();
    }
void borrow_civapplication()
{
    int booktotal;
    char name1[20];
    cout<<"\n\n   Your Name  ";gotoxy(25,17);cout<<"= ";
    cin>>name1;
    cout<<"\n   How many books ";gotoxy(25,19);cout<<"= ";
    cin>>booktotal;
    if(booktotal>5)
    {
        system("cls");
        gotoxy(32,10);cout<<" You Enter too Much "<<endl<<endl;
        asktomenu();

    }
    else
    {
        for(int x=1;x<=booktotal;x++)
        {
            int bookcivcode;
            cout<<"\n   Input Book Code       = ";
            cin>>bookcivcode;
            switch(bookcivcode)
        {
        case 1 :
            cout<<"\n   You Borrow "<<book_civ[0]<<endl;
            break;
        case 2 :
            cout<<"\n   You Borrow "<<book_civ[1]<<endl;
            break;
        case 3 :
            cout<<"\n   You Borrow "<<book_civ[2]<<endl;
            break;
        case 4 :
            cout<<"\n   You Borrow "<<book_civ[3]<<endl;
            break;
        case 5 :
            cout<<"\n   You Borrow "<<book_civ[4]<<endl;
            break;
        default :
            cout<<"\n   Your Input is Wrong "<<endl;
            booktotal--;
            break;
        }
        }
    }
    int date,due,datereturn,penalties,penaltiesday;
    cout<<"\n   Input Dates of Borrowing (1-31) = ";
    cin>>date;
    if (date<1 || date>31)
    {
        due=0;
    }
    else
    {
        if(date<25)
        {
            due=date+6;
        }
        if(date>=25)
        {
            due=(date+6)-30;
        }
    }
    system("cls");
    gotoxy(20,10);loading();
    system("cls");
    gotoxy(20,4);cout<<"========== Detail ========== ";
    gotoxy(7,6);cout<<" Name ";gotoxy(35,6);cout<<"= "<<name1;
    gotoxy(7,8);cout<<" Number of Book";gotoxy(35,8);cout<<"= "<<booktotal;
    if (due>0)
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= "<<due;
    }
    else
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= You Date Input is Wrong ";
    }
    gotoxy(7,11);asktomenu();
    }
void borrow_ieapplication()
{
    int booktotal;
    char name1[20];
    cout<<"\n\n   Your Name  ";gotoxy(25,17);cout<<"= ";
    cin>>name1;
    cout<<"\n   How many books ";gotoxy(25,19);cout<<"= ";
    cin>>booktotal;
    if(booktotal>5)
    {
        system("cls");
        gotoxy(32,10);cout<<" You Enter too Much "<<endl<<endl;
        asktomenu();

    }
    else
    {
        for(int x=1;x<=booktotal;x++)
        {
            int bookiecode;
            cout<<"\n   Input Book Code       = ";
            cin>>bookiecode;
            switch(bookiecode)
        {
        case 1 :
            cout<<"\n   You Borrow "<<book_ie[0]<<endl;
            break;
        case 2 :
            cout<<"\n   You Borrow "<<book_ie[1]<<endl;
            break;
        case 3 :
            cout<<"\n   You Borrow "<<book_ie[2]<<endl;
            break;
        case 4 :
            cout<<"\n   You Borrow "<<book_ie[3]<<endl;
            break;
        case 5 :
            cout<<"\n   You Borrow "<<book_ie[4]<<endl;
            break;
        default :
            cout<<"\n   Your Input is Wrong "<<endl;
            booktotal--;
            break;
        }
        }
    }
    int date,due,datereturn,penalties,penaltiesday;
    cout<<"\n   Input Dates of Borrowing (1-31) = ";
    cin>>date;
    if (date<1 || date>31)
    {
        due=0;
    }
    else
    {
        if(date<25)
        {
            due=date+6;
        }
        if(date>=25)
        {
            due=(date+6)-30;
        }
    }
    system("cls");
    gotoxy(20,10);loading();
    system("cls");
    gotoxy(20,4);cout<<"========== Detail ========== ";
    gotoxy(7,6);cout<<" Name ";gotoxy(35,6);cout<<"= "<<name1;
    gotoxy(7,8);cout<<" Number of Book";gotoxy(35,8);cout<<"= "<<booktotal;
    if (due>0)
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= "<<due;
    }
    else
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= You Date Input is Wrong ";
    }
    gotoxy(7,11);asktomenu();
}
void borrow_isapplication()
{
    int booktotal;
    char name1[20];
    cout<<"\n\n   Your Name  ";gotoxy(25,17);cout<<"= ";
    cin>>name1;
    cout<<"\n   How many books ";gotoxy(25,19);cout<<"= ";
    cin>>booktotal;
    if(booktotal>5)
    {
        system("cls");
        gotoxy(32,10);cout<<" You Enter too Much "<<endl<<endl;
        asktomenu();

    }
    else
    {
        for(int x=1;x<=booktotal;x++)
        {
            int bookiscode;
            cout<<"\n   Input Book Code       = ";
            cin>>bookiscode;
            switch(bookiscode)
        {
        case 1 :
            cout<<"\n   You Borrow "<<book_is[0]<<endl;
            break;
        case 2 :
            cout<<"\n   You Borrow "<<book_is[1]<<endl;
            break;
        case 3 :
            cout<<"\n   You Borrow "<<book_is[2]<<endl;
            break;
        case 4 :
            cout<<"\n   You Borrow "<<book_is[3]<<endl;
            break;
        case 5 :
            cout<<"\n   You Borrow "<<book_is[4]<<endl;
            break;
        default :
            cout<<"\n   Your Input is Wrong "<<endl;
            booktotal--;
            break;
        }
        }
    }
    int date,due,datereturn,penalties,penaltiesday;
    cout<<"\n   Input Dates of Borrowing (1-31) = ";
    cin>>date;
    if (date<1 || date>31)
    {
        due=0;
    }
    else
    {
        if(date<25)
        {
            due=date+6;
        }
        if(date>=25)
        {
            due=(date+6)-30;
        }
    }
    system("cls");
    gotoxy(20,10);loading();
    system("cls");
    gotoxy(20,4);cout<<"========== Detail ========== ";
    gotoxy(7,6);cout<<" Name ";gotoxy(35,6);cout<<"= "<<name1;
    gotoxy(7,8);cout<<" Number of Book";gotoxy(35,8);cout<<"= "<<booktotal;
    if (due>0)
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= "<<due;
    }
    else
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= You Date Input is Wrong ";
    }
    gotoxy(7,11);asktomenu();
}
void borrow_ccapplication()
{
    int booktotal;
    char name1[20];
    cout<<"\n\n   Your Name  ";gotoxy(25,17);cout<<"= ";
    cin>>name1;
    cout<<"\n   How many books ";gotoxy(25,19);cout<<"= ";
    cin>>booktotal;
    if(booktotal>5)
    {
        system("cls");
        gotoxy(32,10);cout<<" You Enter too Much "<<endl<<endl;
        asktomenu();

    }
    else
    {
        for(int x=1;x<=booktotal;x++)
        {
            int bookcccode;
            cout<<"\n   Input Book Code       = ";
            cin>>bookcccode;
            switch(bookcccode)
        {
        case 1 :
            cout<<"\n   You Borrow "<<book_cc[0]<<endl;
            break;
        case 2 :
            cout<<"\n   You Borrow "<<book_cc[1]<<endl;
            break;
        case 3 :
            cout<<"\n   You Borrow "<<book_cc[2]<<endl;
            break;
        case 4 :
            cout<<"\n   You Borrow "<<book_cc[3]<<endl;
            break;
        case 5 :
            cout<<"\n   You Borrow "<<book_cc[4]<<endl;
            break;
        default :
            cout<<"\n   Your Input is Wrong "<<endl;
            booktotal--;
            break;
        }
        }
    }
    int date,due,datereturn,penalties,penaltiesday;
    cout<<"\n   Input Dates of Borrowing (1-31) = ";
    cin>>date;
    if (date<1 || date>31)
    {
        due=0;
    }
    else
    {
        if(date<25)
        {
            due=date+6;
        }
        if(date>=25)
        {
            due=(date+6)-30;
        }
    }
    system("cls");
    gotoxy(20,10);loading();
    system("cls");
    gotoxy(20,4);cout<<"========== Detail ========== ";
    gotoxy(7,6);cout<<" Name ";gotoxy(35,6);cout<<"= "<<name1;
    gotoxy(7,8);cout<<" Number of Book";gotoxy(35,8);cout<<"= "<<booktotal;
    if (due>0)
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= "<<due;
    }
    else
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= You Date Input is Wrong ";
    }
    gotoxy(7,11);asktomenu();
}
void borrow_arcapplication()
{
    int booktotal;
    char name1[20];
    cout<<"\n\n   Your Name  ";gotoxy(25,17);cout<<"= ";
    cin>>name1;
    cout<<"\n   How many books ";gotoxy(25,19);cout<<"= ";
    cin>>booktotal;
    if(booktotal>5)
    {
        system("cls");
        gotoxy(32,10);cout<<" You Enter too Much "<<endl<<endl;
        asktomenu();

    }
    else
    {
        for(int x=1;x<=booktotal;x++)
        {
            int bookarccode;
            cout<<"\n   Input Book Code       = ";
            cin>>bookarccode;
            switch(bookarccode)
        {
        case 1 :
            cout<<"\n   You Borrow "<<book_arc[0]<<endl;
            break;
        case 2 :
            cout<<"\n   You Borrow "<<book_arc[1]<<endl;
            break;
        case 3 :
            cout<<"\n   You Borrow "<<book_arc[2]<<endl;
            break;
        case 4 :
            cout<<"\n   You Borrow "<<book_arc[3]<<endl;
            break;
        case 5 :
            cout<<"\n   You Borrow "<<book_arc[4]<<endl;
            break;
        default :
            cout<<"\n   Your Input is Wrong "<<endl;
            booktotal--;
            break;
        }
        }
    }
    int date,due,datereturn,penalties,penaltiesday;
    cout<<"\n   Input Dates of Borrowing (1-31) = ";
    cin>>date;
    if (date<1 || date>31)
    {
        due=0;
    }
    else
    {
        if(date<25)
        {
            due=date+6;
        }
        if(date>=25)
        {
            due=(date+6)-30;
        }
    }
    system("cls");
    gotoxy(20,10);loading();
    system("cls");
    gotoxy(20,4);cout<<"========== Detail ========== ";
    gotoxy(7,6);cout<<" Name ";gotoxy(35,6);cout<<"= "<<name1;
    gotoxy(7,8);cout<<" Number of Book";gotoxy(35,8);cout<<"= "<<booktotal;
    if (due>0)
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= "<<due;
    }
    else
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= You Date Input is Wrong ";
    }
    gotoxy(7,11);asktomenu();
}
void borrow_petroapplication()
{
    int booktotal;
    char name1[20];
    cout<<"\n\n   Your Name  ";gotoxy(25,17);cout<<"= ";
    cin>>name1;
    cout<<"\n   How many books ";gotoxy(25,19);cout<<"= ";
    cin>>booktotal;
    if(booktotal>5)
    {
        system("cls");
        gotoxy(32,10);cout<<" You Enter too Much "<<endl<<endl;
        asktomenu();

    }
    else
    {
        for(int x=1;x<=booktotal;x++)
        {
            int bookpetrocode;
            cout<<"\n   Input Book Code       = ";
            cin>>bookpetrocode;
            switch(bookpetrocode)
        {
        case 1 :
            cout<<"\n   You Borrow "<<book_petro[0]<<endl;
            break;
        case 2 :
            cout<<"\n   You Borrow "<<book_petro[1]<<endl;
            break;
        case 3 :
            cout<<"\n   You Borrow "<<book_petro[2]<<endl;
            break;
        case 4 :
            cout<<"\n   You Borrow "<<book_petro[3]<<endl;
            break;
        case 5 :
            cout<<"\n   You Borrow "<<book_petro[4]<<endl;
            break;
        default :
            cout<<"\n   Your Input is Wrong "<<endl;
            booktotal--;
            break;
        }
        }
    }
    int date,due,datereturn,penalties,penaltiesday;
    cout<<"\n   Input Dates of Borrowing (1-31) = ";
    cin>>date;
    if (date<1 || date>31)
    {
        due=0;
    }
    else
    {
        if(date<25)
        {
            due=date+6;
        }
        if(date>=25)
        {
            due=(date+6)-30;
        }
    }
    system("cls");
    gotoxy(20,10);loading();
    system("cls");
    gotoxy(20,4);cout<<"========== Detail ========== ";
    gotoxy(7,6);cout<<" Name ";gotoxy(35,6);cout<<"= "<<name1;
    gotoxy(7,8);cout<<" Number of Book";gotoxy(35,8);cout<<"= "<<booktotal;
    if (due>0)
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= "<<due;
    }
    else
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= You Date Input is Wrong ";
    }
    gotoxy(7,11);asktomenu();
}
void borrow_eeapplication()
{
    int booktotal;
    char name1[20];
    cout<<"\n\n   Your Name  ";gotoxy(25,17);cout<<"= ";
    cin>>name1;
    cout<<"\n   How many books ";gotoxy(25,19);cout<<"= ";
    cin>>booktotal;
    if(booktotal>5)
    {
        system("cls");
        gotoxy(32,10);cout<<" You Enter too Much "<<endl<<endl;
        asktomenu();

    }
    else
    {
        for(int x=1;x<=booktotal;x++)
        {
            int bookeecode;
            cout<<"\n   Input Book Code       = ";
            cin>>bookeecode;
            switch(bookeecode)
        {
        case 1 :
            cout<<"\n   You Borrow "<<book_ee[0]<<endl;
            break;
        case 2 :
            cout<<"\n   You Borrow "<<book_ee[1]<<endl;
            break;
        case 3 :
            cout<<"\n   You Borrow "<<book_ee[2]<<endl;
            break;
        case 4 :
            cout<<"\n   You Borrow "<<book_ee[3]<<endl;
            break;
        case 5 :
            cout<<"\n   You Borrow "<<book_ee[4]<<endl;
            break;
        default :
            cout<<"\n   Your Input is Wrong "<<endl;
            booktotal--;
            break;
        }
        }
    }
    int date,due,datereturn,penalties,penaltiesday;
    cout<<"\n   Input Dates of Borrowing (1-31) = ";
    cin>>date;
    if (date<1 || date>31)
    {
        due=0;
    }
    else
    {
        if(date<25)
        {
            due=date+6;
        }
        if(date>=25)
        {
            due=(date+6)-30;
        }
    }
    system("cls");
    gotoxy(20,10);loading();
    system("cls");
    gotoxy(20,4);cout<<"========== Detail ========== ";
    gotoxy(7,6);cout<<" Name ";gotoxy(35,6);cout<<"= "<<name1;
    gotoxy(7,8);cout<<" Number of Book";gotoxy(35,8);cout<<"= "<<booktotal;
    if (due>0)
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= "<<due;
    }
    else
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= You Date Input is Wrong ";
    }
    gotoxy(7,11);asktomenu();
 }
void return_finapplication()
{
    int booktotal;
    char name1[20];
    cout<<"\n\n   Your Name  ";gotoxy(25,17);cout<<"= ";
    cin>>name1;
    cout<<"\n   How many books ";gotoxy(25,19);cout<<"= ";
    cin>>booktotal;
    if(booktotal>5)
    {
        system("cls");
        gotoxy(32,10);cout<<" You Enter too Much "<<endl<<endl;
        asktomenu();

    }
    else
    {
        for(int x=1;x<=booktotal;x++)
        {
            int bookfincode;
            cout<<"\n   Input Book Code       = ";
            cin>>bookfincode;
            switch(bookfincode)
        {
        case 1 :
            cout<<"\n   You Return "<<book_fin[0]<<endl;
            break;
        case 2 :
            cout<<"\n   You Return "<<book_fin[1]<<endl;
            break;
        case 3 :
            cout<<"\n   You Return "<<book_fin[2]<<endl;
            break;
        case 4 :
            cout<<"\n   You Return "<<book_fin[3]<<endl;
            break;
        case 5 :
            cout<<"\n   You Return "<<book_fin[4]<<endl;
            break;
        default :
            cout<<"\n   Your Input is Wrong "<<endl;
            booktotal--;
            break;
        }
        }
    }
    int date,datereturn,datecalculate,due=0,penalties,penaltiesday;
    cout<<"\n   Input Dates of Borrowing (1-31) = ";
    cin>>date;
    cout<<"\n   Input Dates of Return (1-31)    = ";
    cin>>datereturn;
    if (date<1 || date>31)
    {
        due=0;
    }
    else
    {
        if(date<25)
        {
            due=date+6;
        }
        if(date>=25)
        {
            due=(date+6)-30;
        }
    }
    datecalculate=datereturn-due;
    system("cls");
    gotoxy(20,10);loading();
    system("cls");
    gotoxy(20,4);cout<<"========== Detail ========== ";
    gotoxy(7,6);cout<<" Name ";gotoxy(35,6);cout<<"= "<<name1;
    gotoxy(7,8);cout<<" Number of Book";gotoxy(35,8);cout<<"= "<<booktotal;
    if (due>0)
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= "<<due;
    }
    else
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= You Date Input is Wrong ";
    }
    gotoxy(7,12);cout<<" Date Return ";gotoxy(35,12);cout<<"= "<<datereturn;
    gotoxy(7,14);cout<<" Amount Late ";gotoxy(35,14);cout<<"= "<<datecalculate<<" days";
    if (datecalculate<1)
    {
        penalties=0;
        gotoxy(7,16);cout<<" Penalties ";gotoxy(35,16);cout<<"= Rp. "<<0;
    }
    else
    {
        penaltiesday=datecalculate*1000;
        gotoxy(7,16);cout<<" Penalties ";gotoxy(35,16);cout<<"= Rp. "<<penaltiesday;
    }
    gotoxy(7,19);asktomenu();
}
void return_accapplication()
{
    int booktotal;
    char name1[20];
    cout<<"\n\n   Your Name  ";gotoxy(25,17);cout<<"= ";
    cin>>name1;
    cout<<"\n   How many books ";gotoxy(25,19);cout<<"= ";
    cin>>booktotal;
    if(booktotal>5)
    {
        system("cls");
        gotoxy(32,10);cout<<" You Enter too Much "<<endl<<endl;
        asktomenu();

    }
    else
    {
        for(int x=1;x<=booktotal;x++)
        {
            int bookacccode;
            cout<<"\n   Input Book Code       = ";
            cin>>bookacccode;
            switch(bookacccode)
        {
        case 1 :
            cout<<"\n   You Return "<<book_acc[0]<<endl;
            break;
        case 2 :
            cout<<"\n   You Return "<<book_acc[1]<<endl;
            break;
        case 3 :
            cout<<"\n   You Return "<<book_acc[2]<<endl;
            break;
        case 4 :
            cout<<"\n   You Return "<<book_acc[3]<<endl;
            break;
        case 5 :
            cout<<"\n   You Return "<<book_acc[4]<<endl;
            break;
        default :
            cout<<"\n   Your Input is Wrong "<<endl;
            booktotal--;
            break;
        }
        }
    }
    int date,datereturn,datecalculate,due=0,penalties,penaltiesday;
    cout<<"\n   Input Dates of Borrowing (1-31) = ";
    cin>>date;
    cout<<"\n   Input Dates of Return (1-31)    = ";
    cin>>datereturn;
    if (date<1 || date>31)
    {
        due=0;
    }
    else
    {
        if(date<25)
        {
            due=date+6;
        }
        if(date>=25)
        {
            due=(date+6)-30;
        }
    }
    datecalculate=datereturn-due;
    system("cls");
    gotoxy(20,10);loading();
    system("cls");
    gotoxy(20,4);cout<<"========== Detail ========== ";
    gotoxy(7,6);cout<<" Name ";gotoxy(35,6);cout<<"= "<<name1;
    gotoxy(7,8);cout<<" Number of Book";gotoxy(35,8);cout<<"= "<<booktotal;
    if (due>0)
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= "<<due;
    }
    else
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= You Date Input is Wrong ";
    }
    gotoxy(7,12);cout<<" Date Return ";gotoxy(35,12);cout<<"= "<<datereturn;
    gotoxy(7,14);cout<<" Amount Late ";gotoxy(35,14);cout<<"= "<<datecalculate<<" days";
    if (datecalculate<1)
    {
        penalties=0;
        gotoxy(7,16);cout<<" Penalties ";gotoxy(35,16);cout<<"= Rp. "<<0;
    }
    else
    {
        penaltiesday=datecalculate*1000;
        gotoxy(7,16);cout<<" Penalties ";gotoxy(35,16);cout<<"= Rp. "<<penaltiesday;
    }
    gotoxy(7,19);asktomenu();
}
void return_baapplication()
{
    int booktotal;
    char name1[20];
    cout<<"\n\n   Your Name  ";gotoxy(25,17);cout<<"= ";
    cin>>name1;
    cout<<"\n   How many books ";gotoxy(25,19);cout<<"= ";
    cin>>booktotal;
    if(booktotal>5)
    {
        system("cls");
        gotoxy(32,10);cout<<" You Enter too Much "<<endl<<endl;
        asktomenu();

    }
    else
    {
        for(int x=1;x<=booktotal;x++)
        {
            int bookbacode;
            cout<<"\n   Input Book Code       = ";
            cin>>bookbacode;
            switch(bookbacode)
        {
        case 1 :
            cout<<"\n   You Return "<<book_ba[0]<<endl;
            break;
        case 2 :
            cout<<"\n   You Return "<<book_ba[1]<<endl;
            break;
        case 3 :
            cout<<"\n   You Return "<<book_ba[2]<<endl;
            break;
        case 4 :
            cout<<"\n   You Return "<<book_ba[3]<<endl;
            break;
        case 5 :
            cout<<"\n   You Return "<<book_ba[4]<<endl;
            break;
        default :
            cout<<"\n   Your Input is Wrong "<<endl;
            booktotal--;
            break;
        }
        }
    }
    int date,datereturn,datecalculate,due=0,penalties,penaltiesday;
    cout<<"\n   Input Dates of Borrowing (1-31) = ";
    cin>>date;
    cout<<"\n   Input Dates of Return (1-31)    = ";
    cin>>datereturn;
    if (date<1 || date>31)
    {
        due=0;
    }
    else
    {
        if(date<25)
        {
            due=date+6;
        }
        if(date>=25)
        {
            due=(date+6)-30;
        }
    }
    datecalculate=datereturn-due;
    system("cls");
    gotoxy(20,10);loading();
    system("cls");
    gotoxy(20,4);cout<<"========== Detail ========== ";
    gotoxy(7,6);cout<<" Name ";gotoxy(35,6);cout<<"= "<<name1;
    gotoxy(7,8);cout<<" Number of Book";gotoxy(35,8);cout<<"= "<<booktotal;
    if (due>0)
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= "<<due;
    }
    else
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= You Date Input is Wrong ";
    }
    gotoxy(7,12);cout<<" Date Return ";gotoxy(35,12);cout<<"= "<<datereturn;
    gotoxy(7,14);cout<<" Amount Late ";gotoxy(35,14);cout<<"= "<<datecalculate<<" days";
    if (datecalculate<1)
    {
        penalties=0;
        gotoxy(7,16);cout<<" Penalties ";gotoxy(35,16);cout<<"= Rp. "<<0;
    }
    else
    {
        penaltiesday=datecalculate*1000;
        gotoxy(7,16);cout<<" Penalties ";gotoxy(35,16);cout<<"= Rp. "<<penaltiesday;
    }
    gotoxy(7,19);asktomenu();
}
void return_markapplication()
{
    int booktotal;
    char name1[20];
    cout<<"\n\n   Your Name  ";gotoxy(25,17);cout<<"= ";
    cin>>name1;
    cout<<"\n   How many books ";gotoxy(25,19);cout<<"= ";
    cin>>booktotal;
    for(int x=1;x<=booktotal;x++)
    {
        int bookmarkcode;
        cout<<"\n   Input Book Code       = ";
        cin>>bookmarkcode;
        switch(bookmarkcode)
        {
        case 1 :
            cout<<"\n   You Return "<<book_mark[0]<<endl;
            break;
        case 2 :
            cout<<"\n   You Return "<<book_mark[1]<<endl;
            break;
        case 3 :
            cout<<"\n   You Return "<<book_mark[2]<<endl;
            break;
        case 4 :
            cout<<"\n   You Return "<<book_mark[3]<<endl;
            break;
        case 5 :
            cout<<"\n   You Return "<<book_mark[4]<<endl;
            break;
        }

    }
    int date,datereturn,datecalculate,due=0,penalties,penaltiesday;
    cout<<"\n   Input Dates of Borrowing (1-31) = ";
    cin>>date;
    cout<<"\n   Input Dates of Return (1-31)    = ";
    cin>>datereturn;
    if (date<1||date>>31)
    {
        cout<<"\n   Wrong Input";
    }
    else
    {
        if(date<25)
        {
            due=date+6;
        }
        if(date>=25)
        {
            due=(date+6)-30;
        }
    }
    datecalculate=datereturn-due;
    system("cls");
    gotoxy(20,10);loading();
    system("cls");
    gotoxy(20,4);cout<<"========== Detail ========== ";
    gotoxy(7,6);cout<<" Name ";gotoxy(35,6);cout<<"= "<<name1;
    gotoxy(7,8);cout<<" Number of Book";gotoxy(35,8);cout<<"= "<<booktotal;
    gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= "<<due;
    gotoxy(7,12);cout<<" Date Return ";gotoxy(35,12);cout<<"= "<<datereturn;
    gotoxy(7,14);cout<<" Amount Late ";gotoxy(35,14);cout<<"= "<<datecalculate<<" days";
    if (datecalculate<1)
    {
        penalties=0;
        gotoxy(7,16);cout<<" Penalties ";gotoxy(35,16);cout<<"= Rp. "<<0;
    }
    else
    {
        penaltiesday=datecalculate*1000;
        gotoxy(7,16);cout<<" Penalties ";gotoxy(35,16);cout<<"= Rp. "<<penaltiesday;
    }
    gotoxy(7,19);asktomenu();
}
void return_civapplication()
{
    int booktotal;
    char name1[20];
    cout<<"\n\n   Your Name  ";gotoxy(25,17);cout<<"= ";
    cin>>name1;
    cout<<"\n   How many books ";gotoxy(25,19);cout<<"= ";
    cin>>booktotal;
    if(booktotal>5)
    {
        system("cls");
        gotoxy(32,10);cout<<" You Enter too Much "<<endl<<endl;
        asktomenu();

    }
    else
    {
        for(int x=1;x<=booktotal;x++)
        {
            int bookcivcode;
            cout<<"\n   Input Book Code       = ";
            cin>>bookcivcode;
            switch(bookcivcode)
        {
        case 1 :
            cout<<"\n   You Return "<<book_civ[0]<<endl;
            break;
        case 2 :
            cout<<"\n   You Return "<<book_civ[1]<<endl;
            break;
        case 3 :
            cout<<"\n   You Return "<<book_civ[2]<<endl;
            break;
        case 4 :
            cout<<"\n   You Return "<<book_civ[3]<<endl;
            break;
        case 5 :
            cout<<"\n   You Return "<<book_civ[4]<<endl;
            break;
        default :
            cout<<"\n   Your Input is Wrong "<<endl;
            booktotal--;
            break;
        }
        }
    }
    int date,datereturn,datecalculate,due=0,penalties,penaltiesday;
    cout<<"\n   Input Dates of Borrowing (1-31) = ";
    cin>>date;
    cout<<"\n   Input Dates of Return (1-31)    = ";
    cin>>datereturn;
    if (date<1 || date>31)
    {
        due=0;
    }
    else
    {
        if(date<25)
        {
            due=date+6;
        }
        if(date>=25)
        {
            due=(date+6)-30;
        }
    }
    datecalculate=datereturn-due;
    system("cls");
    gotoxy(20,10);loading();
    system("cls");
    gotoxy(20,4);cout<<"========== Detail ========== ";
    gotoxy(7,6);cout<<" Name ";gotoxy(35,6);cout<<"= "<<name1;
    gotoxy(7,8);cout<<" Number of Book";gotoxy(35,8);cout<<"= "<<booktotal;
    if (due>0)
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= "<<due;
    }
    else
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= You Date Input is Wrong ";
    }
    gotoxy(7,12);cout<<" Date Return ";gotoxy(35,12);cout<<"= "<<datereturn;
    gotoxy(7,14);cout<<" Amount Late ";gotoxy(35,14);cout<<"= "<<datecalculate<<" days";
    if (datecalculate<1)
    {
        penalties=0;
        gotoxy(7,16);cout<<" Penalties ";gotoxy(35,16);cout<<"= Rp. "<<0;
    }
    else
    {
        penaltiesday=datecalculate*1000;
        gotoxy(7,16);cout<<" Penalties ";gotoxy(35,16);cout<<"= Rp. "<<penaltiesday;
    }
    gotoxy(7,19);asktomenu();
}

void return_ieapplication()
{
    int booktotal;
    char name1[20];
    cout<<"\n\n   Your Name  ";gotoxy(25,17);cout<<"= ";
    cin>>name1;
    cout<<"\n   How many books ";gotoxy(25,19);cout<<"= ";
    cin>>booktotal;
    if(booktotal>5)
    {
        system("cls");
        gotoxy(32,10);cout<<" You Enter too Much "<<endl<<endl;
        asktomenu();

    }
    else
    {
        for(int x=1;x<=booktotal;x++)
        {
            int bookiecode;
            cout<<"\n   Input Book Code       = ";
            cin>>bookiecode;
            switch(bookiecode)
        {
        case 1 :
            cout<<"\n   You Return "<<book_ie[0]<<endl;
            break;
        case 2 :
            cout<<"\n   You Return "<<book_ie[1]<<endl;
            break;
        case 3 :
            cout<<"\n   You Return "<<book_ie[2]<<endl;
            break;
        case 4 :
            cout<<"\n   You Return "<<book_ie[3]<<endl;
            break;
        case 5 :
            cout<<"\n   You Return "<<book_ie[4]<<endl;
            break;
        default :
            cout<<"\n   Your Input is Wrong "<<endl;
            booktotal--;
            break;
        }
        }
    }
    int date,datereturn,datecalculate,due=0,penalties,penaltiesday;
    cout<<"\n   Input Dates of Borrowing (1-31) = ";
    cin>>date;
    cout<<"\n   Input Dates of Return (1-31)    = ";
    cin>>datereturn;
    if (date<1 || date>31)
    {
        due=0;
    }
    else
    {
        if(date<25)
        {
            due=date+6;
        }
        if(date>=25)
        {
            due=(date+6)-30;
        }
    }
    datecalculate=datereturn-due;
    system("cls");
    gotoxy(20,10);loading();
    system("cls");
    gotoxy(20,4);cout<<"========== Detail ========== ";
    gotoxy(7,6);cout<<" Name ";gotoxy(35,6);cout<<"= "<<name1;
    gotoxy(7,8);cout<<" Number of Book";gotoxy(35,8);cout<<"= "<<booktotal;
    if (due>0)
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= "<<due;
    }
    else
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= You Date Input is Wrong ";
    }
    gotoxy(7,12);cout<<" Date Return ";gotoxy(35,12);cout<<"= "<<datereturn;
    gotoxy(7,14);cout<<" Amount Late ";gotoxy(35,14);cout<<"= "<<datecalculate<<" days";
    if (datecalculate<1)
    {
        penalties=0;
        gotoxy(7,16);cout<<" Penalties ";gotoxy(35,16);cout<<"= Rp. "<<0;
    }
    else
    {
        penaltiesday=datecalculate*1000;
        gotoxy(7,16);cout<<" Penalties ";gotoxy(35,16);cout<<"= Rp. "<<penaltiesday;
    }
    gotoxy(7,19);asktomenu();
}
void return_isapplication()
{
    int booktotal;
    char name1[20];
    cout<<"\n\n   Your Name  ";gotoxy(25,17);cout<<"= ";
    cin>>name1;
    cout<<"\n   How many books ";gotoxy(25,19);cout<<"= ";
    cin>>booktotal;
    if(booktotal>5)
    {
        system("cls");
        gotoxy(32,10);cout<<" You Enter too Much "<<endl<<endl;
        asktomenu();

    }
    else
    {
        for(int x=1;x<=booktotal;x++)
        {
            int bookiscode;
            cout<<"\n   Input Book Code       = ";
            cin>>bookiscode;
            switch(bookiscode)
        {
        case 1 :
            cout<<"\n   You Return "<<book_is[0]<<endl;
            break;
        case 2 :
            cout<<"\n   You Return "<<book_is[1]<<endl;
            break;
        case 3 :
            cout<<"\n   You Return "<<book_is[2]<<endl;
            break;
        case 4 :
            cout<<"\n   You Return "<<book_is[3]<<endl;
            break;
        case 5 :
            cout<<"\n   You Return "<<book_is[4]<<endl;
            break;
        default :
            cout<<"\n   Your Input is Wrong "<<endl;
            booktotal--;
            break;
        }
        }
    }
    int date,datereturn,datecalculate,due=0,penalties,penaltiesday;
    cout<<"\n   Input Dates of Borrowing (1-31) = ";
    cin>>date;
    cout<<"\n   Input Dates of Return (1-31)    = ";
    cin>>datereturn;
    if (date<1 || date>31)
    {
        due=0;
    }
    else
    {
        if(date<25)
        {
            due=date+6;
        }
        if(date>=25)
        {
            due=(date+6)-30;
        }
    }
    datecalculate=datereturn-due;
    system("cls");
    gotoxy(20,10);loading();
    system("cls");
    gotoxy(20,4);cout<<"========== Detail ========== ";
    gotoxy(7,6);cout<<" Name ";gotoxy(35,6);cout<<"= "<<name1;
    gotoxy(7,8);cout<<" Number of Book";gotoxy(35,8);cout<<"= "<<booktotal;
    if (due>0)
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= "<<due;
    }
    else
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= You Date Input is Wrong ";
    }
    gotoxy(7,12);cout<<" Date Return ";gotoxy(35,12);cout<<"= "<<datereturn;
    gotoxy(7,14);cout<<" Amount Late ";gotoxy(35,14);cout<<"= "<<datecalculate<<" days";
    if (datecalculate<1)
    {
        penalties=0;
        gotoxy(7,16);cout<<" Penalties ";gotoxy(35,16);cout<<"= Rp. "<<0;
    }
    else
    {
        penaltiesday=datecalculate*1000;
        gotoxy(7,16);cout<<" Penalties ";gotoxy(35,16);cout<<"= Rp. "<<penaltiesday;
    }
    gotoxy(7,19);asktomenu();
}
void return_ccapplication()
{

    int booktotal;
    char name1[20];
    cout<<"\n\n   Your Name  ";gotoxy(25,17);cout<<"= ";
    cin>>name1;
    cout<<"\n   How many books ";gotoxy(25,19);cout<<"= ";
    cin>>booktotal;
    if(booktotal>5)
    {
        system("cls");
        gotoxy(32,10);cout<<" You Enter too Much "<<endl<<endl;
        asktomenu();

    }
    else
    {
        for(int x=1;x<=booktotal;x++)
        {
            int bookcccode;
            cout<<"\n   Input Book Code       = ";
            cin>>bookcccode;
            switch(bookcccode)
        {
        case 1 :
            cout<<"\n   You Return "<<book_cc[0]<<endl;
            break;
        case 2 :
            cout<<"\n   You Return "<<book_cc[1]<<endl;
            break;
        case 3 :
            cout<<"\n   You Return "<<book_cc[2]<<endl;
            break;
        case 4 :
            cout<<"\n   You Return "<<book_cc[3]<<endl;
            break;
        case 5 :
            cout<<"\n   You Return "<<book_cc[4]<<endl;
            break;
        default :
            cout<<"\n   Your Input is Wrong "<<endl;
            booktotal--;
            break;
        }
        }
    }
    int date,datereturn,datecalculate,due=0,penalties,penaltiesday;
    cout<<"\n   Input Dates of Borrowing (1-31) = ";
    cin>>date;
    cout<<"\n   Input Dates of Return (1-31)    = ";
    cin>>datereturn;
    if (date<1 || date>31)
    {
        due=0;
    }
    else
    {
        if(date<25)
        {
            due=date+6;
        }
        if(date>=25)
        {
            due=(date+6)-30;
        }
    }
    datecalculate=datereturn-due;
    system("cls");
    gotoxy(20,10);loading();
    system("cls");
    gotoxy(20,4);cout<<"========== Detail ========== ";
    gotoxy(7,6);cout<<" Name ";gotoxy(35,6);cout<<"= "<<name1;
    gotoxy(7,8);cout<<" Number of Book";gotoxy(35,8);cout<<"= "<<booktotal;
    if (due>0)
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= "<<due;
    }
    else
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= You Date Input is Wrong ";
    }
    gotoxy(7,12);cout<<" Date Return ";gotoxy(35,12);cout<<"= "<<datereturn;
    gotoxy(7,14);cout<<" Amount Late ";gotoxy(35,14);cout<<"= "<<datecalculate<<" days";
    if (datecalculate<1)
    {
        penalties=0;
        gotoxy(7,16);cout<<" Penalties ";gotoxy(35,16);cout<<"= Rp. "<<0;
    }
    else
    {
        penaltiesday=datecalculate*1000;
        gotoxy(7,16);cout<<" Penalties ";gotoxy(35,16);cout<<"= Rp. "<<penaltiesday;
    }
    gotoxy(7,19);asktomenu();
}
void return_arcapplication()
{
    int booktotal;
    char name1[20];
    cout<<"\n\n   Your Name  ";gotoxy(25,17);cout<<"= ";
    cin>>name1;
    cout<<"\n   How many books ";gotoxy(25,19);cout<<"= ";
    cin>>booktotal;
    if(booktotal>5)
    {
        system("cls");
        gotoxy(32,10);cout<<" You Enter too Much "<<endl<<endl;
        asktomenu();

    }
    else
    {
        for(int x=1;x<=booktotal;x++)
        {
            int bookarccode;
            cout<<"\n   Input Book Code       = ";
            cin>>bookarccode;
            switch(bookarccode)
        {
        case 1 :
            cout<<"\n   You Return "<<book_arc[0]<<endl;
            break;
        case 2 :
            cout<<"\n   You Return "<<book_arc[1]<<endl;
            break;
        case 3 :
            cout<<"\n   You Return "<<book_arc[2]<<endl;
            break;
        case 4 :
            cout<<"\n   You Return "<<book_arc[3]<<endl;
            break;
        case 5 :
            cout<<"\n   You Return "<<book_arc[4]<<endl;
            break;
        default :
            cout<<"\n   Your Input is Wrong "<<endl;
            booktotal--;
            break;
        }
        }
    }
    int date,datereturn,datecalculate,due=0,penalties,penaltiesday;
    cout<<"\n   Input Dates of Borrowing (1-31) = ";
    cin>>date;
    cout<<"\n   Input Dates of Return (1-31)    = ";
    cin>>datereturn;
    if (date<1 || date>31)
    {
        due=0;
    }
    else
    {
        if(date<25)
        {
            due=date+6;
        }
        if(date>=25)
        {
            due=(date+6)-30;
        }
    }
    datecalculate=datereturn-due;
    system("cls");
    gotoxy(20,10);loading();
    system("cls");
    gotoxy(20,4);cout<<"========== Detail ========== ";
    gotoxy(7,6);cout<<" Name ";gotoxy(35,6);cout<<"= "<<name1;
    gotoxy(7,8);cout<<" Number of Book";gotoxy(35,8);cout<<"= "<<booktotal;
    if (due>0)
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= "<<due;
    }
    else
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= You Date Input is Wrong ";
    }
    gotoxy(7,12);cout<<" Date Return ";gotoxy(35,12);cout<<"= "<<datereturn;
    gotoxy(7,14);cout<<" Amount Late ";gotoxy(35,14);cout<<"= "<<datecalculate<<" days";
    if (datecalculate<1)
    {
        penalties=0;
        gotoxy(7,16);cout<<" Penalties ";gotoxy(35,16);cout<<"= Rp. "<<0;
    }
    else
    {
        penaltiesday=datecalculate*1000;
        gotoxy(7,16);cout<<" Penalties ";gotoxy(35,16);cout<<"= Rp. "<<penaltiesday;
    }
    gotoxy(7,19);asktomenu();
}

void return_petroapplication()
{
    int booktotal;
    char name1[20];
    cout<<"\n\n   Your Name  ";gotoxy(25,17);cout<<"= ";
    cin>>name1;
    cout<<"\n   How many books ";gotoxy(25,19);cout<<"= ";
    cin>>booktotal;
    if(booktotal>5)
    {
        system("cls");
        gotoxy(32,10);cout<<" You Enter too Much "<<endl<<endl;
        asktomenu();

    }
    else
    {
        for(int x=1;x<=booktotal;x++)
        {
            int bookpetrocode;
            cout<<"\n   Input Book Code       = ";
            cin>>bookpetrocode;
            switch(bookpetrocode)
        {
        case 1 :
            cout<<"\n   You Return "<<book_petro[0]<<endl;
            break;
        case 2 :
            cout<<"\n   You Return "<<book_petro[1]<<endl;
            break;
        case 3 :
            cout<<"\n   You Return "<<book_petro[2]<<endl;
            break;
        case 4 :
            cout<<"\n   You Return "<<book_petro[3]<<endl;
            break;
        case 5 :
            cout<<"\n   You Return "<<book_petro[4]<<endl;
            break;
        default :
            cout<<"\n   Your Input is Wrong "<<endl;
            booktotal--;
            break;
        }
        }
    }
    int date,datereturn,datecalculate,due=0,penalties,penaltiesday;
    cout<<"\n   Input Dates of Borrowing (1-31) = ";
    cin>>date;
    cout<<"\n   Input Dates of Return (1-31)    = ";
    cin>>datereturn;
    if (date<1 || date>31)
    {
        due=0;
    }
    else
    {
        if(date<25)
        {
            due=date+6;
        }
        if(date>=25)
        {
            due=(date+6)-30;
        }
    }
    datecalculate=datereturn-due;
    system("cls");
    gotoxy(20,10);loading();
    system("cls");
    gotoxy(20,4);cout<<"========== Detail ========== ";
    gotoxy(7,6);cout<<" Name ";gotoxy(35,6);cout<<"= "<<name1;
    gotoxy(7,8);cout<<" Number of Book";gotoxy(35,8);cout<<"= "<<booktotal;
    if (due>0)
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= "<<due;
    }
    else
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= You Date Input is Wrong ";
    }
    gotoxy(7,12);cout<<" Date Return ";gotoxy(35,12);cout<<"= "<<datereturn;
    gotoxy(7,14);cout<<" Amount Late ";gotoxy(35,14);cout<<"= "<<datecalculate<<" days";
    if (datecalculate<1)
    {
        penalties=0;
        gotoxy(7,16);cout<<" Penalties ";gotoxy(35,16);cout<<"= Rp. "<<0;
    }
    else
    {
        penaltiesday=datecalculate*1000;
        gotoxy(7,16);cout<<" Penalties ";gotoxy(35,16);cout<<"= Rp. "<<penaltiesday;
    }
    gotoxy(7,19);asktomenu();
}
void return_eeapplication()
{
    int booktotal;
    char name1[20];
    cout<<"\n\n   Your Name  ";gotoxy(25,17);cout<<"= ";
    cin>>name1;
    cout<<"\n   How many books ";gotoxy(25,19);cout<<"= ";
    cin>>booktotal;
    if(booktotal>5)
    {
        system("cls");
        gotoxy(32,10);cout<<" You Enter too Much "<<endl<<endl;
        asktomenu();

    }
    else
    {
        for(int x=1;x<=booktotal;x++)
        {
            int bookeecode;
            cout<<"\n   Input Book Code       = ";
            cin>>bookeecode;
            switch(bookeecode)
        {
        case 1 :
            cout<<"\n   You Return "<<book_ee[0]<<endl;
            break;
        case 2 :
            cout<<"\n   You Return "<<book_ee[1]<<endl;
            break;
        case 3 :
            cout<<"\n   You Return "<<book_ee[2]<<endl;
            break;
        case 4 :
            cout<<"\n   You Return "<<book_ee[3]<<endl;
            break;
        case 5 :
            cout<<"\n   You Return "<<book_ee[4]<<endl;
            break;
        default :
            cout<<"\n   Your Input is Wrong "<<endl;
            booktotal--;
            break;
        }
        }
    }
    int date,datereturn,datecalculate,due=0,penalties,penaltiesday;
    cout<<"\n   Input Dates of Borrowing (1-31) = ";
    cin>>date;
    cout<<"\n   Input Dates of Return (1-31)    = ";
    cin>>datereturn;
    if (date<1 || date>31)
    {
        due=0;
    }
    else
    {
        if(date<25)
        {
            due=date+6;
        }
        if(date>=25)
        {
            due=(date+6)-30;
        }
    }
    datecalculate=datereturn-due;
    system("cls");
    gotoxy(20,10);loading();
    system("cls");
    gotoxy(20,4);cout<<"========== Detail ========== ";
    gotoxy(7,6);cout<<" Name ";gotoxy(35,6);cout<<"= "<<name1;
    gotoxy(7,8);cout<<" Number of Book";gotoxy(35,8);cout<<"= "<<booktotal;
    if (due>0)
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= "<<due;
    }
    else
    {
        gotoxy(7,10);cout<<" Due Date ( 7 day )";gotoxy(35,10);cout<<"= You Date Input is Wrong ";
    }
    gotoxy(7,12);cout<<" Date Return ";gotoxy(35,12);cout<<"= "<<datereturn;
    gotoxy(7,14);cout<<" Amount Late ";gotoxy(35,14);cout<<"= "<<datecalculate<<" days";
    if (datecalculate<1)
    {
        penalties=0;
        gotoxy(7,16);cout<<" Penalties ";gotoxy(35,16);cout<<"= Rp. "<<0;
    }
    else
    {
        penaltiesday=datecalculate*1000;
        gotoxy(7,16);cout<<" Penalties ";gotoxy(35,16);cout<<"= Rp. "<<penaltiesday;
    }
    gotoxy(7,19);asktomenu();
}
void book_by_majorlist()
{
    system("cls");
    gotoxy(25,2);cout<<"================================"<<endl;
    gotoxy(25,3);cout<<"          Book Category         "<<endl;
    gotoxy(25,4);cout<<"            by Major            "<<endl;
    gotoxy(25,5);cout<<"================================"<<endl<<endl<<endl;
    gotoxy(25,7);cout<<"================================";
    gotoxy(25,8);cout<<"| No ";
    gotoxy(30,8);cout<<"|          Major          |";
    gotoxy(25,9);cout<<"================================"<<endl;
    gotoxy(25,10);cout<<"|  1  |";gotoxy(30,10);cout<<"| Finance                 |";
    gotoxy(25,11);cout<<"|  2  |";gotoxy(30,11);cout<<"| Accounting              |";
    gotoxy(25,12);cout<<"|  3  |";gotoxy(30,12);cout<<"| Business Administration |";
    gotoxy(25,13);cout<<"|  4  |";gotoxy(30,13);cout<<"| Marketing               |";
    gotoxy(25,14);cout<<"|  5  |";gotoxy(30,14);cout<<"| Corporate Communication |";
    gotoxy(25,15);cout<<"|  6  |";gotoxy(30,15);cout<<"| Civil Engineering       |";
    gotoxy(25,16);cout<<"|  7  |";gotoxy(30,16);cout<<"| Informatic Engineering  |";
    gotoxy(25,17);cout<<"|  8  |";gotoxy(30,17);cout<<"| Information System      |";
    gotoxy(25,18);cout<<"|  9  |";gotoxy(30,18);cout<<"| Architecture            |";
    gotoxy(25,19);cout<<"| 10  |";gotoxy(30,19);cout<<"| Petroleum Engineering   |";
    gotoxy(25,20);cout<<"| 11  |";gotoxy(30,20);cout<<"| Electrical Engineering  |";
    gotoxy(25,21);cout<<"================================"<<endl;
}
void book_finlist()
{
    system("cls");
    gotoxy(25,2);cout<<"=============================="<<endl;
    gotoxy(25,3);cout<<"          Book List           "<<endl;
    gotoxy(25,4);cout<<"           Finance            "<<endl;
    gotoxy(25,5);cout<<"=============================="<<endl<<endl<<endl;
    gotoxy(2,7);cout<<"==========================================================================";
    gotoxy(2,8);cout<<"| Kode";
    gotoxy(8,8);cout<<"|          Book Title          ";
    gotoxy(40,8);cout<<"|    Author    ";
    gotoxy(57,8);cout<<"| Published Year  |";
    gotoxy(2,9);cout<<"=========================================================================="<<endl;
    gotoxy(2,10);cout<<"|  1 ";
    gotoxy(8,10);cout<<"| Asas-Asas Manajemen Keuangan ";
    gotoxy(40,10);cout<<"| Stephen A.korse";
    gotoxy(57,10);cout<<"|      2012       |";
    gotoxy(2,11);cout<<"|  2 ";
    gotoxy(8,11);cout<<"| Ekonomi dan keuangan ";
    gotoxy(40,11);cout<<"| Ajafrudin P.";
    gotoxy(57,11);cout<<"|      2011       |";
    gotoxy(2,12);cout<<"|  3 ";
    gotoxy(8,12);cout<<"| Bisnis keuangan  ";
    gotoxy(40,12);cout<<"| Hasnul suhaimi";
    gotoxy(57,12);cout<<"|      2009       |";
    gotoxy(2,13);cout<<"|  4 ";
    gotoxy(8,13);cout<<"| Pengantar Manajemen Keuangan  ";
    gotoxy(40,13);cout<<"| Dermawan sjahrial";
    gotoxy(57,13);cout<<"|      2010       |";
    gotoxy(2,14);cout<<"|  5 ";
    gotoxy(8,14);cout<<"| Perencanaan Manajemen Keuangan   ";
    gotoxy(40,14);cout<<"| Adler haymans M.";
    gotoxy(57,14);cout<<"|      2008       |";
    gotoxy(2,15);cout<<"==========================================================================";
}
void book_acclist()
{
    system("cls");
    gotoxy(25,2);cout<<"=============================="<<endl;
    gotoxy(25,3);cout<<"          Book List           "<<endl;
    gotoxy(25,4);cout<<"          Accounting          "<<endl;
    gotoxy(25,5);cout<<"=============================="<<endl<<endl<<endl;
     gotoxy(2,7);cout<<"==========================================================================";
    gotoxy(2,8);cout<<"| Kode ";
    gotoxy(8,8);cout<<"|          Book Title          ";
    gotoxy(40,8);cout<<"|    Author    ";
    gotoxy(57,8);cout<<"| Published Year  |";
    gotoxy(2,9);cout<<"=========================================================================="<<endl;
    gotoxy(2,10);cout<<"|  1 ";
    gotoxy(8,10);cout<<"| Akuntansi Aktiva Tetap  ";
    gotoxy(40,10);cout<<"| Hadi mutaqin H. ";
    gotoxy(57,10);cout<<"|      2010       |";
    gotoxy(2,11);cout<<"|  2 ";
    gotoxy(8,11);cout<<"| Dasar Dasar Akutansi ";
    gotoxy(40,11);cout<<"| Al.Haryono Y.";
    gotoxy(57,11);cout<<"|      2010       |";
    gotoxy(2,12);cout<<"|  3 ";
    gotoxy(8,12);cout<<"| Akuntansi Biaya   ";
    gotoxy(40,12);cout<<"| Mulyadi";
    gotoxy(57,12);cout<<"|      2008       |";
    gotoxy(2,13);cout<<"|  4 ";
    gotoxy(8,13);cout<<"| Sistem Akuntansi  ";
    gotoxy(40,13);cout<<"| Mulyadi";
    gotoxy(57,13);cout<<"|      2013       |";
    gotoxy(2,14);cout<<"|  5 ";
    gotoxy(8,14);cout<<"| Akutansi Pajak    ";
    gotoxy(40,14);cout<<"| Waluyo ";
    gotoxy(57,14);cout<<"|      2012       |";
    gotoxy(2,15);cout<<"==========================================================================";
}
void book_balist()
{
    system("cls");
    gotoxy(25,2);cout<<"=============================="<<endl;
    gotoxy(25,3);cout<<"          Book List           "<<endl;
    gotoxy(25,4);cout<<"   Business Administration    "<<endl;
    gotoxy(25,5);cout<<"=============================="<<endl<<endl<<endl;
    gotoxy(2,7);cout<<"==========================================================================";
    gotoxy(2,8);cout<<"| Kode ";
    gotoxy(8,8);cout<<"|          Book Title          ";
    gotoxy(40,8);cout<<"|    Author    ";
    gotoxy(57,8);cout<<"| Published Year  |";
    gotoxy(2,9);cout<<"=========================================================================="<<endl;
    gotoxy(2,10);cout<<"|  1 ";
    gotoxy(8,10);cout<<"| Pengantar Bisnis Administrasi  ";
    gotoxy(40,10);cout<<"| Bucari Alma ";
    gotoxy(57,10);cout<<"|      2011       |";
    gotoxy(2,11);cout<<"|  2 ";
    gotoxy(8,11);cout<<"| Administrasi Perpajakan ";
    gotoxy(40,11);cout<<"| Abdul Rahman ";
    gotoxy(57,11);cout<<"|      2010       |";
    gotoxy(2,12);cout<<"|  3 ";
    gotoxy(8,12);cout<<"| Administrasi Publik  ";
    gotoxy(40,12);cout<<"| Saffie";
    gotoxy(57,12);cout<<"|      2006       |";
    gotoxy(2,13);cout<<"|  4 ";
    gotoxy(8,13);cout<<"| Bisnis Berbasis Entrepreneurship  ";
    gotoxy(40,13);cout<<"| Eman Suherman   ";
    gotoxy(57,13);cout<<"|      2013       |";
    gotoxy(2,14);cout<<"|  5 ";
    gotoxy(8,14);cout<<"| Bisnis Etik    ";
    gotoxy(40,14);cout<<"| Ermi R. Ernawan ";
    gotoxy(57,14);cout<<"|      2012       |";
    gotoxy(2,15);cout<<"==========================================================================";

}
void book_marklist()
{
    system("cls");
    gotoxy(25,2);cout<<"=============================="<<endl;
    gotoxy(25,3);cout<<"          Book List           "<<endl;
    gotoxy(25,4);cout<<"          Marketing           "<<endl;
    gotoxy(25,5);cout<<"=============================="<<endl<<endl<<endl;
     gotoxy(2,7);cout<<"==========================================================================";
    gotoxy(2,8);cout<<"| Kode ";
    gotoxy(8,8);cout<<"|          Book Title          ";
    gotoxy(40,8);cout<<"|    Author    ";
    gotoxy(57,8);cout<<"| Published Year  |";
    gotoxy(2,9);cout<<"=========================================================================="<<endl;
    gotoxy(2,10);cout<<"|  1 ";
    gotoxy(8,10);cout<<"| Dasar-dasar Pemasaran   ";
    gotoxy(40,10);cout<<"| Philip Kotler ";
    gotoxy(57,10);cout<<"|      2012       |";
    gotoxy(2,11);cout<<"|  2 ";
    gotoxy(8,11);cout<<"| Komunikasi Pemasaran Terpadu ";
    gotoxy(40,11);cout<<"| Terrence.A ";
    gotoxy(57,11);cout<<"|      2009       |";
    gotoxy(2,12);cout<<"|  3 ";
    gotoxy(8,12);cout<<"| Manajemen Pemasaran Global ";
    gotoxy(40,12);cout<<"| Shimp ";
    gotoxy(57,12);cout<<"|      2011       |";
    gotoxy(2,13);cout<<"|  4 ";
    gotoxy(8,13);cout<<"| Manajemen Kinerja  ";
    gotoxy(40,13);cout<<"| Wibowo   ";
    gotoxy(57,13);cout<<"|      2008       |";
    gotoxy(2,14);cout<<"|  5 ";
    gotoxy(8,14);cout<<"| Manajemen Kualitas Produk&Jasa    ";
    gotoxy(40,14);cout<<"| Zulian Yamit ";
    gotoxy(57,14);cout<<"|      2009       |";
    gotoxy(2,15);cout<<"==========================================================================";

}
void book_cclist()
{
    system("cls");
    gotoxy(25,2);cout<<"=============================="<<endl;
    gotoxy(25,3);cout<<"          Book List           "<<endl;
    gotoxy(25,4);cout<<"   Corporate Communication    "<<endl;
    gotoxy(25,5);cout<<"=============================="<<endl<<endl<<endl;
    gotoxy(2,7);cout<<"==========================================================================";
    gotoxy(2,8);cout<<"| Kode ";
    gotoxy(8,8);cout<<"|          Book Title          ";
    gotoxy(40,8);cout<<"|    Author    ";
    gotoxy(57,8);cout<<"| Published Year  |";
    gotoxy(2,9);cout<<"=========================================================================="<<endl;
    gotoxy(2,10);cout<<"|  1 ";
    gotoxy(8,10);cout<<"| Prasangka&Konflik Komunikasi  ";
    gotoxy(40,10);cout<<"| Dr.Alo Liliweri  ";
    gotoxy(57,10);cout<<"|      2005       |";
    gotoxy(2,11);cout<<"|  2 ";
    gotoxy(8,11);cout<<"| Komunikasi Internasional  ";
    gotoxy(40,11);cout<<"| Nita Andrianti ";
    gotoxy(57,11);cout<<"|      2015       |";
    gotoxy(2,12);cout<<"|  3 ";
    gotoxy(8,12);cout<<"| Komunikasi Bisnis ";
    gotoxy(40,12);cout<<"| Poerwanto ";
    gotoxy(57,12);cout<<"|      2008       |";
    gotoxy(2,13);cout<<"|  4 ";
    gotoxy(8,13);cout<<"| Komunikasi Antar Budaya ";
    gotoxy(40,13);cout<<"| Deddy Mulyana    ";
    gotoxy(57,13);cout<<"|      2008       |";
    gotoxy(2,14);cout<<"|  5 ";
    gotoxy(8,14);cout<<"| Komunikasi dan Kekuasaan    ";
    gotoxy(40,14);cout<<"| Forum Studi Komunikasi ";
    gotoxy(57,14);cout<<"|      2009       |";
    gotoxy(2,15);cout<<"==========================================================================";
}
void book_civlist()
{
    system("cls");
    gotoxy(25,2);cout<<"=============================="<<endl;
    gotoxy(25,3);cout<<"          Book List           "<<endl;
    gotoxy(25,4);cout<<"      Civil Engineering       "<<endl;
    gotoxy(25,5);cout<<"=============================="<<endl<<endl<<endl;
    gotoxy(2,7);cout<<"==========================================================================";
    gotoxy(2,8);cout<<"| Kode ";
    gotoxy(8,8);cout<<"|          Book Title          ";
    gotoxy(40,8);cout<<"|    Author    ";
    gotoxy(57,8);cout<<"| Published Year  |";
    gotoxy(2,9);cout<<"=========================================================================="<<endl;
    gotoxy(2,10);cout<<"|  1 ";
    gotoxy(8,10);cout<<"| Aliran Debris dan Lahar ";
    gotoxy(40,10);cout<<"| Haryono Kusumobroto  ";
    gotoxy(57,10);cout<<"|      2009       |";
    gotoxy(2,11);cout<<"|  2 ";
    gotoxy(8,11);cout<<"| Analisis Perancangan pondasi 1   ";
    gotoxy(40,11);cout<<"| Harry Crystadi H. ";
    gotoxy(57,11);cout<<"|      2010       |";
    gotoxy(2,12);cout<<"|  3 ";
    gotoxy(8,12);cout<<"| Balok & Beton Bertulang ";
    gotoxy(40,12);cout<<"| Ali Asroni ";
    gotoxy(57,12);cout<<"|      2011       |";
    gotoxy(2,13);cout<<"|  4 ";
    gotoxy(8,13);cout<<"| Beton non Pasir ";
    gotoxy(40,13);cout<<"| Diarto     ";
    gotoxy(57,13);cout<<"|      2010       |";
    gotoxy(2,14);cout<<"|  5 ";
    gotoxy(8,14);cout<<"| Desain Bangunan Irigasi    ";
    gotoxy(40,14);cout<<"| Erman Mawardi ";
    gotoxy(57,14);cout<<"|      2012       |";
    gotoxy(2,15);cout<<"==========================================================================";

}
void book_ielist()
{
    system("cls");
    gotoxy(25,2);cout<<"=============================="<<endl;
    gotoxy(25,3);cout<<"          Book List           "<<endl;
    gotoxy(25,4);cout<<"    Informatic Engineering    "<<endl;
    gotoxy(25,5);cout<<"=============================="<<endl<<endl<<endl;
     gotoxy(2,7);cout<<"==========================================================================";
    gotoxy(2,8);cout<<"| Kode ";
    gotoxy(8,8);cout<<"|          Book Title          ";
    gotoxy(40,8);cout<<"|    Author    ";
    gotoxy(57,8);cout<<"| Published Year  |";
    gotoxy(2,9);cout<<"=========================================================================="<<endl;
    gotoxy(2,10);cout<<"|  1 ";
    gotoxy(8,10);cout<<"| Rekayasa perangkat Lunak ";
    gotoxy(40,10);cout<<"| Aunur R.M.  ";
    gotoxy(57,10);cout<<"|      2012      |";
    gotoxy(2,11);cout<<"|  2 ";
    gotoxy(8,11);cout<<"| Membangun Jaringan Komputer   ";
    gotoxy(40,11);cout<<"| Zainal Arifin ";
    gotoxy(57,11);cout<<"|      2008      |";
    gotoxy(2,12);cout<<"|  3 ";
    gotoxy(8,12);cout<<"| Mengolah MultiMedia untuk Web  ";
    gotoxy(40,12);cout<<"| Ari maulana S.";
    gotoxy(57,12);cout<<"|      2010      |";
    gotoxy(2,13);cout<<"|  4 ";
    gotoxy(8,13);cout<<"| Web Programing  ";
    gotoxy(40,13);cout<<"| Rohi Abdullahh      ";
    gotoxy(57,13);cout<<"|      2009      |";
    gotoxy(2,14);cout<<"|  5 ";
    gotoxy(8,14);cout<<"| Pemograman Aplikasi Android    ";
    gotoxy(40,14);cout<<"| Dodid Suprianto  ";
    gotoxy(57,14);cout<<"|      2012      |";
    gotoxy(2,15);cout<<"==========================================================================";
}
void book_islist()
{
    system("cls");
    gotoxy(25,2);cout<<"=============================="<<endl;
    gotoxy(25,3);cout<<"          Book List           "<<endl;
    gotoxy(25,4);cout<<"     Information System       "<<endl;
    gotoxy(25,5);cout<<"=============================="<<endl<<endl<<endl;
     gotoxy(2,7);cout<<"==========================================================================";
    gotoxy(2,8);cout<<"| Kode ";
    gotoxy(8,8);cout<<"|          Book Title          ";
    gotoxy(40,8);cout<<"|    Author    ";
    gotoxy(57,8);cout<<"| Published Year  |";
    gotoxy(2,9);cout<<"=========================================================================="<<endl;
    gotoxy(2,10);cout<<"|  1 ";
    gotoxy(8,10);cout<<"| Analisis & design SI ";
    gotoxy(40,10);cout<<"| Jogiyanto  ";
    gotoxy(57,10);cout<<"|      1995      |";
    gotoxy(2,11);cout<<"|  2 ";
    gotoxy(8,11);cout<<"| Pengenalan sistem informasi   ";
    gotoxy(40,11);cout<<"| Zabdul Qadir ";
    gotoxy(57,11);cout<<"|      2003      |";
    gotoxy(2,12);cout<<"|  3 ";
    gotoxy(8,12);cout<<"| Pengembangan rencana induk SI ";
    gotoxy(40,12);cout<<"| Kridanto";
    gotoxy(57,12);cout<<"|      2009      |";
    gotoxy(2,13);cout<<"|  4 ";
    gotoxy(8,13);cout<<"| Komputer & Teknologi Informasi  ";
    gotoxy(40,13);cout<<"| Jack Febrian      ";
    gotoxy(57,13);cout<<"|      2006      |";
    gotoxy(2,14);cout<<"|  5 ";
    gotoxy(8,14);cout<<"| Pengantar Sistem Informasi    ";
    gotoxy(40,14);cout<<"| Eman.H  ";
    gotoxy(57,14);cout<<"|      2012      |";
    gotoxy(2,15);cout<<"==========================================================================";
}
void book_arclist()
{
    system("cls");
    gotoxy(25,2);cout<<"=============================="<<endl;
    gotoxy(25,3);cout<<"          Book List           "<<endl;
    gotoxy(25,4);cout<<"        Architecture          "<<endl;
    gotoxy(25,5);cout<<"=============================="<<endl<<endl<<endl;
    gotoxy(2,7);cout<<"==========================================================================";
    gotoxy(2,8);cout<<"| Kode ";
    gotoxy(8,8);cout<<"|          Book Title          ";
    gotoxy(40,8);cout<<"|    Author    ";
    gotoxy(57,8);cout<<"| Published Year  |";
    gotoxy(2,9);cout<<"=========================================================================="<<endl;
    gotoxy(2,10);cout<<"|  1 ";
    gotoxy(8,10);cout<<"| Arsitektur Ruang & Tatanan ";
    gotoxy(40,10);cout<<"| Francis DK.Cing  ";
    gotoxy(57,10);cout<<"|      2008      |";
    gotoxy(2,11);cout<<"|  2 ";
    gotoxy(8,11);cout<<"| Pengantar Ilmu Bangunan   ";
    gotoxy(40,11);cout<<"| Arief Sabaruddin ";
    gotoxy(57,11);cout<<"|      2013      |";
    gotoxy(2,12);cout<<"|  3 ";
    gotoxy(8,12);cout<<"| Pengantar Ilmu Bangunan ";
    gotoxy(40,12);cout<<"| Rudy Gunawan";
    gotoxy(57,12);cout<<"|      1978      |";
    gotoxy(2,13);cout<<"|  4 ";
    gotoxy(8,13);cout<<"| Buku Pintar Membangun Rumah  ";
    gotoxy(40,13);cout<<"| JYusep Arif     ";
    gotoxy(57,13);cout<<"|      2008      |";
    gotoxy(2,14);cout<<"|  5 ";
    gotoxy(8,14);cout<<"| Penataan Drainase Perkotaan    ";
    gotoxy(40,14);cout<<"| Wahana Komputer ";
    gotoxy(57,14);cout<<"|      2009      |";
    gotoxy(2,15);cout<<"==========================================================================";

}
void book_petrolist()
{
    system("cls");
    gotoxy(25,2);cout<<"=============================="<<endl;
    gotoxy(25,3);cout<<"          Book List           "<<endl;
    gotoxy(25,4);cout<<"     Petroleum Engineering    "<<endl;
    gotoxy(25,5);cout<<"=============================="<<endl<<endl<<endl;
    gotoxy(2,8);cout<<"| Kode ";
    gotoxy(8,8);cout<<"|          Book Title          ";
    gotoxy(40,8);cout<<"|    Author    ";
    gotoxy(57,8);cout<<"| Published Year  |";
    gotoxy(2,9);cout<<"=========================================================================="<<endl;
    gotoxy(2,10);cout<<"|  1 ";
    gotoxy(8,10);cout<<"| Migas Untuk Rakyat ";
    gotoxy(40,10);cout<<"| Dr.Syaiful  ";
    gotoxy(57,10);cout<<"|      2008      |";
    gotoxy(2,11);cout<<"|  2 ";
    gotoxy(8,11);cout<<"| Teknik Pemboran Modern    ";
    gotoxy(40,11);cout<<"| Rubiandini";
    gotoxy(57,11);cout<<"|      2012      |";
    gotoxy(2,12);cout<<"|  3 ";
    gotoxy(8,12);cout<<"| Geologi Minyak Dan Gas Bumi";
    gotoxy(40,12);cout<<"| S.Sartono";
    gotoxy(57,12);cout<<"|      2008      |";
    gotoxy(2,13);cout<<"|  4 ";
    gotoxy(8,13);cout<<"| S.Sartono  ";
    gotoxy(40,13);cout<<"| Lions     ";
    gotoxy(57,13);cout<<"|      2009      |";
    gotoxy(2,14);cout<<"|  5 ";
    gotoxy(8,14);cout<<"| Produksi Teknik Perminyakan    ";
    gotoxy(40,14);cout<<"| Boyungi  ";
    gotoxy(57,14);cout<<"|      2007      |";
    gotoxy(2,15);cout<<"==========================================================================";
}
void book_eelist()
{
    system("cls");
    gotoxy(25,2);cout<<"=============================="<<endl;
    gotoxy(25,3);cout<<"          Book List           "<<endl;
    gotoxy(25,4);cout<<"    Electrical Engineering    "<<endl;
    gotoxy(25,5);cout<<"=============================="<<endl<<endl<<endl;
    gotoxy(2,8);cout<<"| Kode ";
    gotoxy(8,8);cout<<"|          Book Title          ";
    gotoxy(40,8);cout<<"|    Author    ";
    gotoxy(57,8);cout<<"| Published Year  |";
    gotoxy(2,9);cout<<"=========================================================================="<<endl;
    gotoxy(2,10);cout<<"|  1 ";
    gotoxy(8,10);cout<<"| Teori Tansformator ";
    gotoxy(40,10);cout<<"| Drs.Sumanto  ";
    gotoxy(57,10);cout<<"|      1996      |";
    gotoxy(2,11);cout<<"|  2 ";
    gotoxy(8,11);cout<<"| Teknologi Instalasi listrik    ";
    gotoxy(40,11);cout<<"| Michael Tooley ";
    gotoxy(57,11);cout<<"|      1995      |";
    gotoxy(2,12);cout<<"|  3 ";
    gotoxy(8,12);cout<<"| Rangkaian Elektronik";
    gotoxy(40,12);cout<<"| B.L.Theraja";
    gotoxy(57,12);cout<<"|      2003      |";
    gotoxy(2,13);cout<<"|  4 ";
    gotoxy(8,13);cout<<"| Teknologi Elektrik  ";
    gotoxy(40,13);cout<<"| David E      ";
    gotoxy(57,13);cout<<"|      2001      |";
    gotoxy(2,14);cout<<"|  5 ";
    gotoxy(8,14);cout<<"| Analisis Sirkuit Elektronik    ";
    gotoxy(40,14);cout<<"| Boyungi Johnson  ";
    gotoxy(57,14);cout<<"|      1989      |";
    gotoxy(2,7);cout<<"==========================================================================";
}

void loading()
{
    for(int q=1;q<=10;q++)
    {
        cout<<"=";
        Sleep(60);
    }
    cout<<" L O A D I N G ";Sleep(100);
    for(int q=1;q<=10;q++)
    {
        cout<<"=";
        Sleep(60);
    }
}

void asktomenu()
{

    char yn;
    cout<<endl;
    cout<<"\tBack To Menu [Y/N]  ?  ";
    cin>>yn;
    if (yn=='Y' || yn=='y')
    {
        system("cls");
        main_menu();
    }
    else if (yn=='N' || yn=='n')
    {
        exit_program();
    }
    else
    {
        system("cls");
        gotoxy(23,8);cout<<"Your Input is Wrong Please Repeat  !"<<endl;
        cout<<endl<<endl;
        asktomenu();
        loading();
    }
}
void exit_program()
{
system("cls");
gotoxy(20,2);cout<<"******** PROGRAM  PEMINJAMAN BUKU********"<<endl;

gotoxy(10,10);
for (int i=0;i<50;i++)
{
   cout<<".";
   Sleep(80);
}
cout<<endl<<endl;
}

mungkin hanya itu, semoga bermanfaat untuk kita semua dan jangan lupa untuk membaca artikel lainnya agar pemahaman tentang pemograman semakan mendalam.
0 Komentar untuk "codingan C++ program peminjaman buku"

Back To Top