Wednesday, 2 April 2025

Program Sewa Kendaraan Roda 4

 #include <iostream>

#include <stdlib.h>

using namespace std;


int main()

{

    int x,y;

    char z;

    string nama, alamat,ket;

    int no_ktp;

    int sewa;

do{

    cout<<"--------------------------------------------------------------------"<<endl;

    cout<<"                           PROGRAM SEWA KENDARAAN RODA 4            "<<endl;

    cout<<"--------------------------------------------------------------------"<<endl<<endl;

    cout<<"Pilihan Jenis Mobil :      "<<endl;

Program TOKO Bunga

 #include <iostream>

using namespace std;

int main () {

 string nama,nama_bunga,jasa,bonus;

 char kode_bunga,kode_jasa;

 int harga,jumlah,biaya_kirim,total_biaya;

 cout<<"                                                        "<<endl;

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

 cout<<"         TOKO BUNGA Hanya Sekali Mekar "<<endl;

 cout<<"--------------------------------------------------------"<<endl;

Program Penginapan di HOTEL

 #include <iostream>

using namespace std;

int main() 

{

 string nama,nama_kamar,kategori,souvenir;

 char kode_kamar;

 int kode_kelas;

 int lama_nginap,biaya_sewa,biaya_adm,total_biaya,harga;

 cout<<"    Penginapan di HOTEL Gratis  .... "<<endl;

 cout<<"_______________________________________________"<<endl;

 cout<<"Nama Penyewa  :"; cin>>nama;

Sunday, 16 March 2025

Program C++ Deret Angka Ganjil

 #include <iostream>

using namespace std;

int main()

{

 cout << "    Program C++ Deret Angka Ganjil " << endl;

 cout << "___________________________________" << endl;

 

 int titik_akhir, i;

  cout << "Input angka akhir: ";cin >> akhir;

 

Program C++ Deret Angka Genap

 #include <iostream>

using namespace std;

int main()

{

 cout << "    Program C++ Deret Angka Genap  " << endl;

 cout << "___________________________________" << endl;

 int titik_akhir, i;

  cout << "Input angka akhir: ";cin >> akhir;

 

Program Deret Penjumlahan C++

 #include <iostream> 

using namespace std;

int main()

{

  cout << "  Program Deret Penjumlahan   " << endl;

  cout << "______________________________" << endl;

  int a, n, total;

  cout << "Jumlah deret yang diinginkan: ";cin >> n;

  cout << endl;

  

Wednesday, 12 March 2025

Program if bersarang C++ Menentukan Nama Hari dan Jadwal Kuliah

 #include <iostream>

using namespace std;

int main()

{

  cout << "##  Program C++ Menentukan Nama Hari dan Jadwal  ##" << endl;

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

  cout << endl;

  int n,jam;

  string hari;

  cout << "Input angka Hari (1-7): "; cin >> n;

  cout << "Input angka Jam (8-16): ";cin >> jam;