You are on page 1of 4

#include <iostream>

using namespace std;

int main () {

cout << "RIZKY RAMADHANI" << endl;

cout << "065122060" << endl;

cout << "KELAS B" << endl;

cout << endl;

//GENAP

float km, hm, dam,m;

cout << "Masukan Kilo Meter (km) : "; cin >> km;

hm = km*10;

dam = hm*10;

m = dam*10;

cout << endl;

cout << "Hasil Konversi km ke m : " << endl;

cout << "Hexa Meter : "<<hm<< endl;

cout << "Deka Meter : " <<dam<< endl;

cout << "Meter : " <<m<< endl;

cout << endl;

//BONUS

int menu,jum;

cout << "WARUNG SO ASIK" << endl;


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

cout << "MENU MAKANAN" << endl;

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

cout << "1.Nasi Goreng Rp.15000" << endl;

cout << "2.Mie Ayam Rp.10000" << endl;

cout << "3.Ayam Bakar Rp.20000" << endl;

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

cout << "MENU MINUMAN" << endl;

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

cout << "1.Susu Hangat Rp.5000" << endl;

cout << "2.Air Putih Rp.3000" << endl;

cout << "3.Teh Manis Rp.5000" << endl;

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

cout << endl;

cout << "Masukan Pilihan : "; cin >> menu;

switch (menu){

case 1:

cout << "Kamu Beli Nasi Goreng dengan Susu Hangat" << endl;

break;

case 2:

cout << "Kamu Beli Mie Ayam dengan Air Putih " << endl;

break;

case 3:

cout << "Kamu Beli Ayam Bakar dengan Teh Manis" << endl;

break;
default:

cout << "Tidak Tersedia" << endl;

break;

You might also like