Skip to content

Instantly share code, notes, and snippets.

@Miaababikir
Created November 12, 2020 10:16
Show Gist options
  • Save Miaababikir/ab4318eba9a2c14a434c0a4e5e6a687e to your computer and use it in GitHub Desktop.
Save Miaababikir/ab4318eba9a2c14a434c0a4e5e6a687e to your computer and use it in GitHub Desktop.
#include<iostream>
#include<stdlib.h>
using namespace std;
struct employee {
char Name[40];
int Password=rand();
int money=100;
};
main(){
struct employee emp[13];
float a,b,count=0,d,SR=1.67,SD=1.59,z,c,x,nx;
int serial,cash;
char account,aaaa,aaa,aa,e,f,g,currency,ncurrency,currency1,y;
char Name[100];
char Phone[10];
for(int omega=1;omega<=120;omega++)
{
for(int by=1;by<=omega;by++)
cout<<"By OmeGa ";
cout<<endl;
}
here:
cout<<"\n\t\t\t##Welcome to OmiGa National Bank##";
cout<<"\n\n\t\tIf you wont to create new account please sir press(1)";
cout<<"\n\t\tIf you wont to sign in please sir press(2)\n";
int i,j,k,n=10;
for(i=0;i<n;i++)
{
for(j=n-i-1;j>0;j--)
cout<<" ";
cout<<"By";
for(k=2*i-1;k>0;k--)
cout<<" "; //code for upper triangle
if(i!=0)
cout<<"OmeGa";
if(j==0)
cout<<endl;
}
for(i=n-1;i>0;i--)
{
for(j=0;j<n-i;j++)
cout<<" ";
cout<<"OmeGa"; //code for lower triangle
for(k=2*i-3;k>0;k--)
cout<<" ";
if(i!=1)
cout<<"By";
cout<<"\n";
}
cin>>a;
if(a==1)
for(int i=0;i<13;i++)
{
{ up:
cout<<"\n\nPlease Sir enter your name ";
cin>>emp[i].Name;
cout<<"\n\nNow you have account "<<emp[i].Name<<" your password is "<<emp[i].Password<<" Your serial number is "<<i;
cout<<"\n\nDo you wont to sign in?(y/n)";
cin>>e;
if(e=='y')
goto sing;
else
cout<<"\n\n\n\tIf you want to create new account press(y,n)";
cin>>account;
if(a=='y')
{
i=i+1;
goto up;
}
else
if(a=='n')
cout<<"\n\nThank you "<<emp[i].Name<<" See ya soon";
goto exit;
}//a==1
if(a==2)
{
sing:
cout<<"\n\nEnter your name sir ";
cin>>emp[i].Name;
hell:
cout<<"\n\n\tEnter your Password sir ";
cin>>b;
if(b==emp[i].Password)
{ a1:
cout<<"\n\n\t\t\t\tHello Mr."<<emp[i].Name<<"\n\n\t\tHow can i help you "<<emp[i].Name;
cout<<"\n\nIf you wont to send and transfer money please enter(T) ";
cout<<"\n\nIf you wont to check your money in you account enter(C) ";
cout<<"\n\nIf you wont to buy Currency please enter(B) ";
cout<<"\n\nIf you wont to sell Currency please enter(S) ";
cout<<"\n\nIf you wont to buy electric enter(E) ";
cout<<"\n\nIf you wont to recharge your phone acount(Z)";
cin>>e;
if(e=='e')
{
cout<<"\n\n\tHow much you want? ";
cin>>a;
emp[i].money=emp[i].money-a;
cout<<"\nNow you get "<<a*100;
cout<<"\nDo you wont another service(y,n) ";
cin>>e;
if(e=='y')
goto a1;
else
goto exit;
}
else
if(e=='c')
{
cout<<"\n\n\t you have $"<<emp[i].money;
cout<<"\nDo you wont anything else?(y/n) ";
cin>>e;
if(e=='y')
goto a1;
else
cout<<"Thank you "<<emp[i].Name<<"See ya";
goto exit;
}
else
if(e=='z')
{
cout<<"Enter your phone number ";
cin>>Phone;
cout<<"\nHow much do you wont? ";
cin>>z;
emp[i].money=emp[i].money-z;
cout<<"Now you have "<<emp[i].money<<" in your acount";
cout<<"\nDo you wont another service(y/n)";
cin>>e;
if(e=='y')
goto a1;
else
goto exit;
}
else
if(e=='t')
{
cout<<"\n\n\t\tHow much you want to send ";
cin>>cash;
cout<<"\n\n\t\tFor who you want to send it(Enter the serial number )";
cin>>serial;
emp[serial].money=emp[serial].money+cash;
cout<<"\n\n\tNow you transfer $"<<cash<<" for"<<emp[serial].Name;
cout<<"\nDo you want anything else?(y/n) ";
cin>>e;
if(e=='y')
goto a1;
else
cout<<"Thank you "<<emp[i].Name<<"See ya";
goto exit;
}
else
if(e=='b')
{ currency:
cout<<"which currency do you have??\n\ndollar(press(d))\n\teuro(press(e))\n\t\tSoudi real((r))\n\t\t\tK dinar(press(k))\n\t\t\t\tE pound(press(p))\n\t\t\t\t\t S pound(press(s))\n\tpress(e)to exit\n ";
cin>>currency;
if(currency=='d'||'D')
{
cout<<"\nHow much you wont??";
cin>>c;
x=c*7.14;
cout<<"\nNow you have "<<x<<"Dollars Do you wont to buy it(y/n)";
cin>>currency;
if(currency=='y')
{
cout<<"Now you buy "<<x<<" Dollars";
cout<<"\nDo you wont currency(c)\n\tDo you wont another service(s)\n\t\tTo exit(e)";
cin>>currency;
if(currency=='c')
{
goto currency;
}
else
if(currency=='s')
{
goto a1;
}
else
if(currency=='e')
{
goto exit;
}
}
}
else
if(currency=='e'||'E')
{
cout<<"\nHow much you wont??";
cin>>c;
x=c*8.2;
cout<<"\nNow you have "<<x<<"Euro Do you wont to buy it(y/n)";
cin>>currency;
if(currency=='y')
{
cout<<"Now you buy "<<x<<" Euro";
cout<<"\nDo you wont currency(c)\n\tDo you wont another service(s)\n\t\tTo exit(e)";
cin>>currency;
if(currency=='c')
{
goto currency;
}
else
if(currency=='s')
{
goto a1;
}
else
if(currency=='e')
{
goto exit;
}
}
}
else
if(currency=='r'||'R')
{
cout<<"\nHow much you wont??";
cin>>c;
x=c*2.12;
cout<<"\nNow you have "<<x<<"RS Do you wont to buy it(y/n)";
cin>>currency;
if(currency=='y')
{
cout<<"Now you buy "<<x<<" RS";
cout<<"\nDo you wont currency(c)\n\tDo you wont another service(s)\n\t\tTo exit(e)";
cin>>currency;
if(currency=='c')
{
goto currency;
}
else
if(currency=='s')
{
goto a1;
}
else
if(currency=='e')
{
goto exit;
}
}
}
else
if(currency=='k'||'K')
{
cout<<"\nHow much you wont??";
cin>>c;
x=c*6.58;
cout<<"\nNow you have "<<x<<"Tk Dinar Do you wont to buy it(y/n)";
cin>>currency;
if(currency=='y')
{
cout<<"Now you buy "<<x<<" Tk Dinar";
cout<<"\nDo you wont currency(c)\n\tDo you wont another service(s)\n\t\tTo exit(e)";
cin>>currency;
if(currency=='c')
{
goto currency;
}
else
if(currency=='s')
{
goto a1;
}
else
if(currency=='e')
{
goto exit;
}
}
}
else
if(currency=='p'||'P')
{
cout<<"\nHow much you wont??";
cin>>c;
x=c*9.47;
cout<<"\nNow you have "<<x<<"Pound Do you wont to buy it(y/n)";
cin>>currency;
if(currency=='y')
{
cout<<"Now you buy "<<x<<" Pound";
cout<<"\nDo you wont currency(c)\n\tDo you wont another service(s)\n\t\tTo exit(e)";
cin>>currency;
if(currency=='c')
{
goto currency;
}
else
if(currency=='s')
{
goto a1;
}
else
if(currency=='e')
{
goto exit;
}
}
}
else
if(currency=='s'||'S')
{
cout<<"\nHow much you wont??";
cin>>c;
x=c*1.23;
cout<<"\nNow you have "<<x<<"S Pound Do you wont to buy it(y/n)";
cin>>currency;
if(currency=='y')
{
cout<<"Now you buy "<<x<<" S Pound";
cout<<"\nDo you wont currency(c)\n\tDo you wont another service(s)\n\t\tTo exit(e)";
cin>>currency;
if(currency=='c')
{
goto currency;
}
else
if(currency=='s')
{
goto a1;
}
else
if(currency=='e')
{
goto exit;
}
}
}
else
if(currency=='e'||'E')
{
goto exit;
}
}
else
if(e=='s'||'s')
{
{
currency1:
cout<<"which currency do you have??\n\ndollar(press(d))\n\teuro(press(e))\n\t\tSoudi real((r))\n\t\t\tK dinar(press(k))\n\t\t\t\tE pound(press(p))\n\t\t\t\t\t S pound(press(s))\n\tpress(e)to exit\n ";
cin>>currency;
if(currency=='d'||'D')
{
cout<<"\nHow much you wont to sell??";
cin>>c;
x=c*7.6;
cout<<"\nNow you have "<<x<<"Dollars Do you wont to sell it(y/n)";
cin>>currency;
if(currency=='y')
{
cout<<"Now you sell "<<x<<" Dollars";
cout<<"\nDo you wont currency(c)\n\tDo you wont another service(s)\n\t\tTo exit(e)";
cin>>currency;
if(currency=='c')
{
goto currency1;
}
else
if(currency=='s')
{
goto a1;
}
else
if(currency=='e')
{
goto exit;
}
}
}
else
if(currency=='e'||'E')
{
cout<<"\nHow much you wont to sell??";
cin>>c;
x=c*8;
cout<<"\nNow you have "<<x<<"Euro Do you wont to sell it(y/n)";
cin>>currency;
if(currency=='y')
{
cout<<"Now you sell "<<x<<" Euro";
cout<<"\nDo you wont currency(c)\n\tDo you wont another service(s)\n\t\tTo exit(e)";
cin>>currency;
if(currency=='c')
{
goto currency1;
}
else
if(currency=='s')
{
goto a1;
}
else
if(currency=='e')
{
goto exit;
}
}
}
else
if(currency=='r'||'R')
{
cout<<"\nHow much you wont to sell??";
cin>>c;
x=c*2.3;
cout<<"\nNow you have "<<x<<"RS Do you wont to sell it(y/n)";
cin>>currency;
if(currency=='y')
{
cout<<"Now you sell "<<x<<" RS";
cout<<"\nDo you wont currency(c)\n\tDo you wont another service(s)\n\t\tTo exit(e)";
cin>>currency;
if(currency=='c')
{
goto currency1;
}
else
if(currency=='s')
{
goto a1;
}
else
if(currency=='e')
{
goto exit;
}
}
}
else
if(currency=='k'||'K')
{
cout<<"\nHow much you wont to sell??";
cin>>c;
x=c*6.58;
cout<<"\nNow you have "<<x<<"Tk Dinar Do you wont to sell it(y/n)";
cin>>currency;
if(currency=='y')
{
cout<<"Now you sell "<<x<<" Tk Dinar";
cout<<"\nDo you wont currency(c)\n\tDo you wont another service(s)\n\t\tTo exit(e)";
cin>>currency;
if(currency=='c')
{
goto currency1;
}
else
if(currency=='s')
{
goto a1;
}
else
if(currency=='e')
{
goto exit;
}
}
}
else
if(currency=='p'||'P')
{
cout<<"\nHow much you wont to sell??";
cin>>c;
x=c*9.47;
cout<<"\nNow you have "<<x<<"Pound Do you wont to sell it(y/n)";
cin>>currency;
if(currency=='y')
{
cout<<"Now you sell "<<x<<" Pound";
cout<<"\nDo you wont currency(c)\n\tDo you wont another service(s)\n\t\tTo exit(e)";
cin>>currency;
if(currency=='c')
{
goto currency1;
}
else
if(currency=='s')
{
goto a1;
}
else
if(currency=='e')
{
goto exit;
}
}
}
else
if(currency=='s'||'S')
{
cout<<"\nHow much you wont to sell??";
cin>>c;
x=c*1.23;
cout<<"\nNow you have "<<x<<"S Pound Do you wont to sell it(y/n)";
cin>>currency;
if(currency=='y')
{
cout<<"Now you sell "<<x<<" S Pound";
cout<<"\nDo you wont currency(c)\n\tDo you wont another service(s)\n\t\tTo exit(e)";
cin>>currency;
if(currency=='c')
{
goto currency1;
}
else
if(currency=='s')
{
goto a1;
}
else
if(currency=='e')
{
goto exit;
}
}
}
else
if(currency=='e'||'E')
{
goto exit;
}
}
}
}//b==Password
else
{ if(count<=3){
cout<<"You enter wronge password or username\n\t\tTry Again Sir ";
count=count+1;
goto hell;
}
else
goto exit;
}
}//a==2
else
{
cout<<"Try agein sir ^_^ ";
goto here;
}
}//for
exit:
cout<<" ";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment