Professional Documents
Culture Documents
Service Motor
Service Motor
Service Motor
#include <cstdlib>
#include <conio.h>
#include <iomanip>
#include "Service.h"
string Jenis_Service();
int main(){
//
Pelanggan x;
Service y;
//
int pilih_menu, No_Antrian = 1;
//
Menu:
cout << "|---------------------------------------------|" << endl;
cout << "| ADMIN BENGKEL HONDA |" << endl;
cout << "|---------------------------------------------|" << endl;
cout << "| 1. Registrasi Motor |" <<
endl;
cout << "| 2. Motor Masuk Service |" << endl;
cout << "| 3. Daftar Antrian Service Motor |" << endl;
cout << "| 4. Exit Program |" <<
endl;
cout << "|---------------------------------------------|" << endl;
cout << "| Choose Menu : "; cin >> pilih_menu;
y.registrasi(x);
system("cls");
No_Antrian++;
goto menu;
break;
case Service_Pel :
y.service_motor();
getch();
system("cls");
goto Menu;
break;
case Daftar_Pel :
system("cls");
y.list_pel();
getch();
system("cls");
goto Menu;
break;
case Exit :
break;
default :
system("cls");
goto Menu;
}
return 0;
}
string Jenis_Service(){
int pilih;
list:
system("cls");
cout << "|---------------------------------------------|" << endl;
cout << "| JENIS SERVICE MOTOR |" << endl;
cout << "|---------------------------------------------|" << endl;
cout << "| 1. Service Ringan |" << endl;
cout << "| 2. Service Sedang |" << endl;
cout << "| 3. Service Lengkap |" <<
endl;
cout << "|---------------------------------------------|" << endl;
cout << "| Choose Menu : "; cin >> pilih;
if(pilih == 1){
return "Ringan";
}else if (pilih == 2){
return "Sedang";
}else if (pilih == 3){
return "Lengkap";
}else{
goto List
}