TpC0GUO0GfMlBUd6TfW5BUOoBA==
Skip to main content

Cara membuat borland C++ Travel (Tugas Amikom Semester 1 )

#include <iostream.h>

#include <conio.h>

void menu_utama();

void judul();

void kota_asal();

void kota_tujuan_ml();

void kota_tujuan_sb();

void ml_pse();

void ml_yk();

void ml_bali();

void ml_bd();

void sb_pse();

void sb_yk();

void sb_bali();

void sb_bd();

main()

{

 menu_utama();



getch();

}

void judul()

{

 cout<<"=======================================";

 cout<<endl;

 cout<<"Traveling Information For Back Packer";

 cout<<endl;

 cout<<"=======================================";

 cout<<endl;

}

void menu_utama()

{

 judul();

 kota_asal();

}

void kota_asal()

{

 int pilih;

 char ulang;

  cout<<"Pilih Kota Asal"<<endl;

  cout<<"======================="<<endl;

  cout<<"1.Malang"<<endl;

  cout<<"2.Surabaya"<<endl;

  cout<<"Piih Kota Asal =";cin>>pilih;



  switch (pilih)

  {

  case 1:

   kota_tujuan_ml();

  break ;



  case 2:

   kota_tujuan_sb();

  break ;



  default:

   clrscr();

   cout<<"Pilihan yang anda masukan salah !! apakah anda ingin mengulang?(Y?N)";cin>>ulang;

   while(ulang=='y'||ulang=='y')

  break;

  }





}

void kota_tujuan_ml()

{

 int pilih_ml;



  clrscr();

  cout<<"Kota Asal = Malang"<<endl;

  cout<<"==================="<<endl;

  cout<<endl;

  cout<<"Pilih Kota Tujuan"<<endl;

  cout<<"==================="<<endl;

  cout<<"1.Jakarta"<<endl;

  cout<<"2.Yogyakarta"<<endl;

  cout<<"3.Bali"<<endl;

  cout<<"4.Bandung"<<endl;

  cout<<"Pilih Kota Tujuan =";cin>>pilih_ml;

  switch (pilih_ml)

  {

  case 1:

   ml_pse();

  break;



  case 2:

   ml_yk();

  break;



  case 3:

   ml_bali();

  break;



  case 4:

   ml_bd();

  break;

  }





}

void kota_tujuan_sb()

{

 int pilih_sb;

  clrscr();

  cout<<"Kota Asal = Surabaya"<<endl;

  cout<<"==================="<<endl;

  cout<<endl;

  cout<<"Pilih Kota Tujuan"<<endl;

  cout<<"==================="<<endl;

  cout<<"1.Jakarta"<<endl;

  cout<<"2.Yogyakarta"<<endl;

  cout<<"3.Bali"<<endl;

  cout<<"4.Bandung"<<endl;

  cout<<"Pilih Kota Tujuan =";cin>>pilih_sb;



  switch (pilih_sb)

  {

  case 1:

   sb_pse();

  break;



  case 2:

   sb_yk();

  break;



  case 3:

   sb_bali();

  break;



  case 4:

   sb_bd();

  break;

  }

}

void ml_pse()

{

 clrscr();

 cout<<"kota Asal = Malang"<<endl;

 cout<<"==================="<<endl;

 cout<<endl;

 cout<<"Kota Tujuan = Jakarta Pasar Senen"<<endl;

 cout<<"==================="<<endl;

 cout<<"Kereta Api Matarmaja 15.00 harga tiket Rp.50.000"<<endl;

 cout<<"Bus Gunung Harta harga tiket Rp. 250.000"<<endl;

 cout<<"Kereta Api Majapahit 13.45 harga tiket Rp.275.000"<<endl;

}

void ml_yk()

{

 clrscr();

 cout<<"kota Asal = Malang"<<endl;

 cout<<"==================="<<endl;

 cout<<endl;

 cout<<"Kota Tujuan = Yogyakarta"<<endl;

 cout<<"==================="<<endl;

 cout<<"Kereta Api Malioboro Express 09.00 harga tiket Rp.275.000"<<endl;

 cout<<"Bus Patas dari malang. menuju dari surabaya. trus oper bus yg menuju yogyakarta"<<endl;

 cout<<"Kereta Api Gajayana 14.45 harga tiket Rp.250.000"<<endl;

}

void ml_bali()

{

 clrscr();

 cout<<"kota Asal = Malang"<<endl;

 cout<<"==================="<<endl;

 cout<<endl;

 cout<<"Kota Tujuan = Bali"<<endl;

 cout<<"==================="<<endl;

 cout<<"Kereta Api Tawang Alun 14.45.00 harga tiket Rp. 18.000"<<endl;

 cout<<"Penyebrangan 5000"<<endl;



}

void ml_bd()

{

 clrscr();

 cout<<"kota Asal = Malang"<<endl;

 cout<<"==================="<<endl;

 cout<<endl;

 cout<<"Kota Tujuan = Bandung"<<endl;

 cout<<"==================="<<endl;

 cout<<"Kereta Api Malabar 09.00 harga tiket Rp.275.000"<<endl;

 cout<<"Bus Patas dari malang. menuju dari surabaya. trus oper bus yg menuju Bandung"<<endl;



}

void sb_pse()

{

 clrscr();

 cout<<"kota Asal = Surabaya"<<endl;

 cout<<"==================="<<endl;

 cout<<endl;

 cout<<"Kota Tujuan = Jakarta Pasar Senen"<<endl;

 cout<<"==================="<<endl;

 cout<<"Kereta Api Gaya Baru Malam Selatan 14.00 harga tiket Rp.35.000"<<endl;

 cout<<"Bus Pahala Kencana harga tiket Rp. 250.000"<<endl;

}

void sb_yk()

{

 clrscr();

 cout<<"kota Asal = Surabaya"<<endl;

 cout<<"==================="<<endl;

 cout<<endl;

 cout<<"Kota Tujuan = Yogyakarta"<<endl;

 cout<<"==================="<<endl;

 cout<<"Kereta Api Turangga 14.00 harga tiket Rp.135.000"<<endl;

 cout<<"Bus Sumber kencono harga tiket Rp. 35.000"<<endl;

}

void sb_bali()

{

 clrscr();

 cout<<"kota Asal = Surabaya"<<endl;

 cout<<"==================="<<endl;

 cout<<endl;

 cout<<"Kota Tujuan = Bali"<<endl;

 cout<<"==================="<<endl;

 cout<<"Kereta Api Sri Tanjung 14.00 harga tiket Rp.45.000"<<endl;

 cout<<"Bus Pahala Kencana harga tiket Rp. 150.000"<<endl;

 cout<<"ongkos penyebrangan 5000"<<endl;

}

void sb_bd()

{

 clrscr();

Cara membuat borland C++ Travel (Tugas Amikom Semester 1 )

0

0 Comments for "Cara membuat borland C++ Travel (Tugas Amikom Semester 1 )"

Related Post

Lorem ipsum madolor sit amet, consectetur adipisicing elit.

Click on one of our representatives below to chat on WhatsApp

img
Customer Service Nina Lawson
6281234567891
img
Billing Albert Henderson
6281977094282
img
Support Sufiya Elija
6281977094283
img
Support Pabelo Mukrani
6281977094284
img
Sales Laila Lan
6281977094285
We run on Goomsite.Net
Hello! What can I do for you?

Need help? Let's chat with us!

Added Successfully