#include<iostream> using namespace std; int main() { cout << "Welcome to ethio gebeta "<<endl; cout <<"1.Easter Holiday Package " <<endl; cout <<"2.Packages "<<endl; cout <<"3.One Birr Package "<<endl; cout <<"4.Additional Service" <<endl; cout <<"5.Language Change " <<endl; cout <<"6.My Service " <<endl; cout <<"7.Group Member"<<endl ; //We used zero instead of **// cout <<"Enter your choice"<<endl ; char n ; cin >>n ; if (n=='2'){ cout <<"1.For yourself " <<endl; cout <<"2.For gift " <<endl; cout <<"*.Back "<<endl ; } else if (n=='7'){ cout <<"ADDIS ABABA SCIENCE AND TECHNOLOGY UNNIVERSITY"<<endl ; cout <<"----------------------------------------------"<<endl ; cout <<" SECTION----E" <<endl ; cout <<" NAME ID" <<endl ; cout <<" 1.CHAKEBO TADESSE -------------------------ETS0318/13"<<endl ; cout <<" 2.CHALA DEREJE ----------------------------ETS0319/13"<<endl ; cout <<" 3.CHALA SOBOKA ----------------------------ETS0320/13"<<endl ; cout <<" 4.BIRUK KASTRO ----------------------------ETS0287/13"<<endl ; cout <<" 5.DAGMAWI DEREJE --------------------------ETS0334/13"<<endl ; } else cout <<"Entered number is not valid "<<endl ; cout <<"Enter your choice"<<endl ; cin>>n ; switch ( n) { case '1': cout <<"For yourself "<<endl ; cout <<"1.Voice package"<<endl ; cout <<"2.Internet Package " <<endl ; cout <<"3.Voice Plus Data " <<endl ; cout <<"4.Flexi Package " <<endl ; cout <<"5.Unlimited premium Package "<<endl ; cout <<"6.Unlimited Daily Voice package"<<endl ; cout <<"#.Next Page *.Back " <<endl ; cout <<"**.Main Menu "<<endl ; cout <<"Enter your choice"<<endl ; cin >>n; if (n=='1'){ cout <<"Voice package " <<endl; cout <<"1.Daily " <<endl ; cout <<"2.Weekly "<<endl ; cout <<"3.Monthly " <<endl ; cout <<"4.Night " <<endl ; cout <<"*.Back " <<endl ; cout <<"**.Main Menu " <<endl ; cout <<"Enter your choice"<<endl ; cin>>n; if (n=='1'){ cout <<"Daily " <<endl ; cout <<"1.Birr 3 for 12 Min"<<endl ; cout <<"2.Birr 5 for 20 Min"<<endl ; cout <<"3.Birr 10 for 45 Min"<<endl ; cout <<"*.Back " <<endl ; cout <<"**.Main Menu "<<endl ; cout <<"Enter your choice"<<endl ; cin>>n; if (n=='1'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='2'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='3'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='*'){ cout <<"Voice package " <<endl ; cout <<"1.Daily " <<endl ; cout <<"2.Weekly "<<endl ; cout <<"3.Monthly " <<endl ; cout <<"4.Night " <<endl ; cout <<"*.Back " <<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='0'){ cout << "Welcome to ethio gebeta "<<endl; cout <<"1.Easter Holiday Package " <<endl; cout <<"2.Packages "<<endl; cout <<"3.One Birr Package "<<endl; cout <<"4.Additional Service" <<endl; cout <<"5.Language Change " <<endl; cout <<"6.My Service " <<endl; } } else if (n=='2') { cout<<"Weekly"<<endl; cout<<"1.Birr 15 for 70 Min"<<endl; cout<<"2.Birr 20 for 100 Min"<<endl; cout<<"3.Birr 25 for 130 Min"<<endl; cout<<"*.Back"<<endl; cout<<"**.Main Menu"<<endl; cout <<"Enter your choice"<<endl ; cin >>n; if (n=='1'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='2'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n==3){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='*'){ cout <<"Voice package " <<endl ; cout <<"1.Daily " <<endl ; cout <<"2.Weekly "<<endl ; cout <<"3.Monthly " <<endl ; cout <<"4.Night " <<endl ; cout <<"*.Back " <<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='0'){ cout << "Welcome to ethio gebeta "<<endl; cout <<"1.Easter Holiday Package " <<endl; cout <<"2.Packages "<<endl; cout <<"3.One Birr Package "<<endl; cout <<"4.Additional Service" <<endl; cout <<"5.Language Change " <<endl; cout <<"6.My Service " <<endl; } } else if (n=='3') { cout<<"Monthly"<<endl; cout<<"1.Birr 35 for 125 Min"<<endl; cout<<"2.Birr 50 for 185 Min"<<endl; cout<<"3.Birr 95 for 375 Min"<<endl; cout<<"4.Birr 120 for 500 Min"<<endl; cout<<"5.Birr 200 for 1000 Min"<<endl; cout<<"6.Birr 380 for 2000 Min"<<endl; cout<<"*.Back"<<endl; cout<<"**.Main Menu"<<endl; cout <<"Enter your choice"<<endl ; cin>>n; if (n=='1'){ cout<<"Please Select"<<endl; cout <<"1.One Time Only"<<endl; cout <<"2.Reccuring Monthly"<<endl; cout <<"**.Main Menu"<<endl; cout <<"Enter your choice"<<endl ; cin>>n; if (n=='1'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='2'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='0'){ cout << "Welcome to ethio gebeta "<<endl; cout <<"1.Easter Holiday Package " <<endl; cout <<"2.Packages "<<endl; cout <<"3.One Birr Package "<<endl; cout <<"4.Additional Service" <<endl; cout <<"5.Language Change " <<endl; cout <<"6.My Service " <<endl; } } else if (n=='2'){ cout<<"Please Select"<<endl; cout <<"1.One Time Only"<<endl; cout <<"2.Reccuring Monthly"<<endl; cout <<"**.Main Menu"<<endl; cout <<"Enter your choice"<<endl ; cin>>n; if (n=='1'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='2'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } } else if (n=='3'){ cout<<"Please Select"<<endl; cout <<"1.One Time Only"<<endl; cout <<"2.Reccuring Monthly"<<endl; cout <<"**.Main Menu"<<endl; cout <<"Enter your choice"<<endl ; cin>>n; if (n=='1'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='2'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='0'){ cout << "Welcome to ethio gebeta "<<endl; cout <<"1.Easter Holiday Package " <<endl; cout <<"2.Packages "<<endl; cout <<"3.One Birr Package "<<endl; cout <<"4.Additional Service" <<endl; cout <<"5.Language Change " <<endl; cout <<"6.My Service " <<endl; } } } else if (n=='4'){ cout<<"Please Select"<<endl; cout <<"1.One Time Only"<<endl; cout <<"2.Reccuring Monthly"<<endl; cout <<"**.Main Menu"<<endl; cout <<"Enter your choice"<<endl ; cin>>n; if (n=='1'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='2'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='0'){ cout << "Welcome to ethio gebeta "<<endl; cout <<"1.Easter Holiday Package " <<endl; cout <<"2.Packages "<<endl; cout <<"3.One Birr Package "<<endl; cout <<"4.Additional Service" <<endl; cout <<"5.Language Change " <<endl; cout <<"6.My Service " <<endl; } } else if (n=='5'){ cout<<"Please Select"<<endl; cout <<"1.One Time Only"<<endl; cout <<"2.Reccuring Monthly"<<endl; cout <<"**.Main Menu"<<endl; cout <<"Enter your choice"<<endl ; cin>>n; if (n=='1'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='2'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='0'){ cout << "Welcome to ethio gebeta "<<endl; cout <<"1.Easter Holiday Package " <<endl; cout <<"2.Packages "<<endl; cout <<"3.One Birr Package "<<endl; cout <<"4.Additional Service" <<endl; cout <<"5.Language Change " <<endl; cout <<"6.My Service " <<endl; } } else if (n=='6'){ cout<<"Please Select"<<endl; cout <<"1.One Time Only"<<endl; cout <<"2.Reccuring Monthly"<<endl; cout <<"**.Main Menu"<<endl; cout <<"Enter your choice"<<endl ; cin>>n; if (n=='1'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='2'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='0'){ cout << "Welcome to ethio gebeta "<<endl; cout <<"1.Easter Holiday Package " <<endl; cout <<"2.Packages "<<endl; cout <<"3.One Birr Package "<<endl; cout <<"4.Additional Service" <<endl; cout <<"5.Language Change " <<endl; cout <<"6.My Service " <<endl; } } else if (n=='*'){ cout <<"Voice package " <<endl ; cout <<"1.Daily " <<endl ; cout <<"2.Weekly "<<endl ; cout <<"3.Monthly " <<endl ; cout <<"4.Night " <<endl ; cout <<"*.Back " <<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='0'){ cout << "Welcome to ethio gebeta "<<endl; cout <<"1.Easter Holiday Package " <<endl; cout <<"2.Packages "<<endl; cout <<"3.One Birr Package "<<endl; cout <<"4.Additional Service" <<endl; cout <<"5.Language Change " <<endl; cout <<"6.My Service " <<endl; } else if (n=='4') { cout<<"Night"<<endl; cout<<"1.Birr 3 for 60 Min"<<endl; cout<<"2.Birr 6 for 140 Min"<<endl; cout<<"*.Back"<<endl; cout<<"**.Main Menu"<<endl; cout <<"Enter your choice"<<endl ; cin>>n; if (n=='1'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='2'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='*'){ cout <<"Voice package " <<endl ; cout <<"1.Daily " <<endl ; cout <<"2.Weekly "<<endl ; cout <<"3.Monthly " <<endl ; cout <<"4.Night " <<endl ; cout <<"*.Back " <<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='0'){ cout << "Welcome to ethio gebeta "<<endl; cout <<"1.Easter Holiday Package " <<endl; cout <<"2.Packages "<<endl; cout <<"3.One Birr Package "<<endl; cout <<"4.Additional Service" <<endl; cout <<"5.Language Change " <<endl; cout <<"6.My Service " <<endl; } } else if (n=='*'){ cout<<"Package"<<endl; cout<<"1.For yourself"<<endl; cout<<"2.For gift"<<endl; cout<<"*.Back"<<endl; } else if (n=='0') { cout << "Welcome to ethio gebeta "<<endl; cout <<"1.Easter Holiday Package " <<endl; cout <<"2.Packages "<<endl; cout <<"3.One Birr Package "<<endl; cout <<"4.Additional Service" <<endl; cout <<"5.Language Change " <<endl; cout <<"6.My Service " <<endl; } } else if (n=='2'){ cout <<"Internet Package"<<endl ; cout <<"1.Daily " <<endl ; cout <<"2.Weekly " <<endl ; cout <<"3.Monthly " <<endl ; cout <<"4.Night "<<endl ; cout <<"*.Back " <<endl ; cout <<"**.Main Menu "<<endl ; cout <<""<<endl ; cout <<"Enter your choice"<<endl ; cin>>n; if (n=='1'){ cout <<"Daily"<<endl ; cout <<"1.Birr 3 for 35 MB"<<endl ; cout <<"2.Birr 5 for 75 MB"<<endl ; cout <<"3.Birr 12 for 200 MB"<<endl ; cout <<"4.Birr 25 for 500 MB"<<endl ; cout <<"*.Back"<<endl ; cout <<"**.Main Menu"<<endl ; cout <<"Enter your choice"<<endl ; cin>>n; if (n=='1'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='2'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='3'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='4'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='*'){ cout <<"Internet Package"<<endl ; cout <<"1.Daily " <<endl ; cout <<"2.Weekly " <<endl ; cout <<"3.Monthly " <<endl ; cout <<"4.Night "<<endl ; cout <<"*.Back " <<endl ; cout <<"**.Main Menu "<<endl ; } else if (n=='0'){ cout <<"Welcome to ethio gebeta "<<endl ; cout <<"1.Easter Holiday Package "<<endl ; cout <<"2.Packages " <<endl ; cout <<"3.One Birr Package "<<endl ; cout <<"4.Additional Service "<<endl ; cout <<"5.Language Change " <<endl ; cout <<"6.My Service "<<endl ; } } else if (n=='2'){ cout <<"Weekly"<<endl; cout <<"1.Birr 24 for 300 MB"<<endl; cout <<"2.Birr 38 for 600 MB"<<endl; cout <<"3.Birr 56 for 1GB"<<endl; cout <<"*.Back"<<endl; cout <<"**.Main Menu"<<endl; cout <<"Enter your choice"<<endl ; cin>>n; if (n=='1'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='2'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='*'){ cout <<"Internet Package"<<endl ; cout <<"1.Daily " <<endl ; cout <<"2.Weekly " <<endl ; cout <<"3.Monthly " <<endl ; cout <<"4.Night "<<endl ; cout <<"*.Back " <<endl ; cout <<"**.Main Menu "<<endl ; } else if (n=='0'){ cout <<"Welcome to ethio gebeta "<<endl ; cout <<"1.Easter Holiday Package "<<endl ; cout <<"2.Packages " <<endl ; cout <<"3.One Birr Package "<<endl ; cout <<"4.Additional Service "<<endl ; cout <<"5.Language Change " <<endl ; cout <<"6.My Service "<<endl ; } else if (n=='3'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } } else if (n=='3'){ cout <<"Monthly"<<endl; cout <<"1.Birr 35 for 500MB"<<endl; cout <<"2.Birr 60 for 1GB"<<endl; cout <<"3.Birr 105 for 2BG"<<endl; cout <<"4.Birr 200 for 4GB"<<endl; cout <<"5.Birr 420 for 10GB"<<endl; cout <<"*.Back"<<endl; cout <<"**.Main Menu"<<endl; cout <<"Enter your choice"<<endl ; cin>>n; if (n=='1'){ cout<<"Please Select"<<endl; cout <<"1.One Time Only"<<endl; cout <<"2.Reccuring Monthly"<<endl; cout <<"**.Main Menu"<<endl; } else if (n=='2'){ cout<<"Please Select"<<endl; cout <<"1.One Time Only"<<endl; cout <<"2.Reccuring Monthly"<<endl; cout <<"**.Main Menu"<<endl; } else if (n=='3'){ cout<<"Please Select"<<endl; cout <<"1.One Time Only"<<endl; cout <<"2.Reccuring Monthly"<<endl; cout <<"**.Main Menu"<<endl; } else if (n=='4'){ cout<<"Please Select"<<endl; cout <<"1.One Time Only"<<endl; cout <<"2.Reccuring Monthly"<<endl; cout <<"**.Main Menu"<<endl; } else if (n=='5'){ cout<<"Please Select"<<endl; cout <<"1.One Time Only"<<endl; cout <<"2.Reccuring Monthly"<<endl; cout <<"**.Main Menu"<<endl; } } else if (n=='4'){ cout <<"Night"<<endl; cout <<"1.Birr 3 for 70 MB"<<endl; cout <<"2.Birr 5 for160 MB"<<endl; cout <<"3.Birr 7 for 300 MB"<<endl; cout <<"*.Back"<<endl; cout <<"**.Main Menu"<<endl; cout <<"Enter your choice"<<endl ; cin>>n; if (n=='1'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='2'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='3'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='*'){ cout <<"Internet Package"<<endl ; cout <<"1.Daily " <<endl ; cout <<"2.Weekly " <<endl ; cout <<"3.Monthly " <<endl ; cout <<"4.Night "<<endl ; cout <<"*.Back " <<endl ; cout <<"**.Main Menu "<<endl ; } else if (n=='0'){ cout <<"Welcome to ethio gebeta "<<endl ; cout <<"1.Easter Holiday Package "<<endl ; cout <<"2.Packages " <<endl ; cout <<"3.One Birr Package "<<endl ; cout <<"4.Additional Service "<<endl ; cout <<"5.Language Change " <<endl ; cout <<"6.My Service "<<endl ; } } } else if (n=='3'){ cout <<"Voice Plus Data Package"<<endl ; cout <<"1.Daily " <<endl ; cout <<"2.Weekly " <<endl ; cout <<"3.Monthly " <<endl ; cout <<"*.Back " <<endl ; cout <<"**.Main Menu "<<endl ; cout <<"Enter your choice"<<endl ; cin>>n; if (n=='1'){ cout <<"Daily"<<endl ; cout <<"1.Birr 12 for 12 min,160 MB,10 SMS"<<endl ; cout <<"2.Birr 33 for 28 min,590 MB,10 SMS"<<endl ; cout <<"*.Back"<<endl ; cout <<"**.Main Menu"<<endl ; } else if (n=='2'){ cout<<"Weekly"<<endl; cout<<"1.Birr 50 for 70 min,590 MB,20 SMS"<<endl; cout<<"2.Birr 76 for 100 min,1GB,20 SMS"<<endl; cout<<"*.Back"<<endl; cout<<"**.Main Menu"<<endl; cout <<"Enter your choice"<<endl ; cin>>n; if (n=='1'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='2'){ cout <<"You have chosen to purchase a " <<endl ; cout <<"Package " <<endl ; cout <<"To confirm press 1"<<endl ; cout <<"To cancel press other key "<<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='*'){ cout <<"Voice Plus Data Package"<<endl ; cout <<"1.Daily " <<endl ; cout <<"2.Weekly " <<endl ; cout <<"3.Monthly " <<endl ; cout <<"*.Back " <<endl ; cout <<"**.Main Menu "<<endl ; } else if (n=='0'){ cout <<"Welcome to ethio gebeta "<<endl ; cout <<"1.Easter Holiday Package "<<endl ; cout <<"2.Packages " <<endl ; cout <<"3.One Birr Package "<<endl ; cout <<"4.Additional Service "<<endl ; cout <<"5.Language Change " <<endl ; cout <<"6.My Service "<<endl ; } } } else if (n=='4'){ cout <<"Flexi Package"<<endl ; cout <<"1.Daily " <<endl ; cout <<"2.Weekly " <<endl ; cout <<"3.Monthly " <<endl ; cout <<"*.Back " <<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='5'){ cout <<"Unlimited premium " <<endl ; cout <<"1.Weekly " <<endl ; cout <<"2.Monthly " <<endl ; cout <<"*.Back " <<endl; cout <<"**.Main Menu " <<endl ; } else if (n=='6'){ cout <<"Unlimited Daily Package "<<endl ; cout <<"1.Daily " <<endl ; cout <<"*.Back " <<endl ; cout <<"**.Main Menu " <<endl ; } else if (n=='#'){ cout <<"7.Long Validity Package "<<endl ; cout <<"8.International Call Package "<<endl ; cout <<"9.Morning Package "<<endl ; cout <<"10.SMS Package "<<endl ; cout <<"##.Previous page *.Back "<<endl ; cout <<"**.Main Menu "<<endl; } else if (n=='*'){ cout <<"Package " <<endl ; cout <<"1.For yourself " <<endl ; cout <<"2.For gift " <<endl ; } else if (n=='0'){ cout <<"Welcome to ethio gebeta "<<endl ; cout <<"1.Easter Holiday Package "<<endl ; cout <<"2.Packages " <<endl ; cout <<"3.One Birr Package "<<endl ; cout <<"4.Additional Service "<<endl ; cout <<"5.Language Change " <<endl ; cout <<"6.My Service "<<endl ; } else { cout<<"Entered number is wrong"<<endl; } break ; case '2': cout <<"For gift " <<endl; cout <<"1.Voice package " <<endl ; cout <<"2.Internet Package " <<endl ; cout <<"3.Voice Plus Data "<<endl ; cout <<"4.Flexi Package "<<endl ; cout <<"5.Unlimited premium Package " <<endl ; cout <<"6.Unlimited Daily Voice package "<<endl; cout <<"#.Next Page *.Back " <<endl ; cout <<"**.Main Menu " <<endl ; cout <<"Enter your choice"<<endl ; cin>>n; if (n=='1'){ cout <<"1.Daily " <<endl ; cout <<"2.Weekly "<<endl ; cout <<"3.Monthly "<<endl ; cout <<"4.Night " <<endl ; cout <<"*.Back "<<endl ; cout <<"**.Main Menu " <<endl ; cout <<"Enter your choice"<<endl ; cin>>n; if (n=='1'){ cout <<"Daily " <<endl ; cout <<"1.Birr 3 for 12 Min"<<endl ; cout <<"2.Birr 5 for 20 Min"<<endl ; cout <<"3.Birr 10 for 45 Min"<<endl ; cout <<"*.Back " <<endl ; cout <<"**.Main Menu "<<endl ; } else if (n=='2') { cout<<"Weekly"<<endl; cout<<"1.Birr 15 for 70 Min"<<endl; cout<<"2.Birr 20 for 100 Min"<<endl; cout<<"3.Birr 25 for 130 Min"<<endl; cout<<"*.Back"<<endl; cout<<"**.Main Menu"<<endl; } else if (n=='3') { cout<<"Monthly"<<endl; cout<<"1.Birr 35 for 125 Min"<<endl; cout<<"2.Birr 50 for 185 Min"<<endl; cout<<"3.Birr 95 for 375 Min"<<endl; cout<<"4.Birr 120 for 500 Min"<<endl; cout<<"5.Birr 200 for 1000 Min"<<endl; cout<<"6.Birr 380 for 2000 Min"<<endl; cout<<"*.Back"<<endl; cout<<"**.Main Menu"<<endl; } else if (n=='4') { cout<<"Night"<<endl; cout<<"1.Birr 3 for 60 Min"<<endl; cout<<"2.Birr 6 for 140 Min"<<endl; cout<<"*.Back"<<endl; cout<<"**.Main Menu"<<endl; } else if (n=='*'){ cout<<"Package"<<endl; cout<<"1.For yourself"<<endl; cout<<"2.For gift"<<endl; cout<<"*.Back"<<endl; } else if (n=='0'){ cout << "Welcome to ethio gebeta "<<endl; cout <<"1.Easter Holiday Package " <<endl; cout <<"2.Packages "<<endl; cout <<"3.One Birr Package "<<endl; cout <<"4.Additional Service" <<endl; cout <<"5.Language Change " <<endl; cout <<"6.My Service " <<endl; } } if (n=='2'){ cout <<"1.Daily " <<endl ; cout <<"2.Weekly "<<endl ; cout <<"3.Monthly "<<endl ; cout <<"4.Night " <<endl ; cout <<"*.Back "<<endl ; cout <<"**.Main Menu " <<endl ; cout <<"Enter your choice"<<endl ; cin>>n; if (n=='1'){ cout <<"Daily"<<endl ; cout <<"1.Birr 3 for 35 MB"<<endl ; cout <<"2.Birr 5 for 75 MB"<<endl ; cout <<"3.Birr 12 for 200 MB"<<endl ; cout <<"4.Birr 25 for 500 MB"<<endl ; cout <<"*.Back"<<endl ; cout <<"**.Main Menu"<<endl ; } else if (n=='2'){ cout <<"Weekly"<<endl; cout <<"1.Birr 24 for 300 MB"<<endl; cout <<"2.Birr 38 for 600 MB"<<endl; cout <<"3.Birr 56 for 1GB"<<endl; cout <<"*.Back"<<endl; cout <<"**.Main Menu"<<endl; } else if (n=='3'){ cout <<"Monthly"<<endl; cout <<"1.Birr 35 for 500MB"<<endl; cout <<"2.Birr 60 for 1GB"<<endl; cout <<"3.Birr 105 for 2BG"<<endl; cout <<"4.Birr 200 for 4GB"<<endl; cout <<"5.Birr 420 for 10GB"<<endl; cout <<"*.Back"<<endl; cout <<"**.Main Menu"<<endl; } else if (n=='4'){ cout <<"Night"<<endl; cout <<"1.Birr 3 for 70 MB"<<endl; cout <<"2.Birr 5 for160 MB"<<endl; cout <<"3.Birr 7 for 300 MB"<<endl; cout <<"*.Back"<<endl; cout <<"**.Main Menu"<<endl; } else if (n=='*'){ cout <<"Package " <<endl ; cout <<"1.For yourself " <<endl ; cout <<"2.For gift " <<endl ; } else if (n=='0'){ cout <<"Welcome to ethio gebeta "<<endl ; cout <<"1.Easter Holiday Package "<<endl ; cout <<"2.Packages " <<endl ; cout <<"3.One Birr Package "<<endl ; cout <<"4.Additional Service "<<endl ; cout <<"5.Language Change " <<endl ; cout <<"6.My Service "<<endl ; } } if (n=='3'){ cout <<"Voice Plus Data " <<endl ; cout <<"1.Daily " <<endl ; cout <<"2.Weekly " <<endl ; cout <<"3.Monthly " <<endl ; cout <<"*.Back "<<endl ; cout <<"**.Main Menu " <<endl ; cin>>n; if (n=='1'){ cout <<"Daily"<<endl ; cout <<"1.Birr 12 for 12 min,160 MB,10 SMS"<<endl ; cout <<"2.Birr 33 for 28 min,590 MB,10 SMS"<<endl ; cout <<"*.Back"<<endl ; cout <<"**.Main Menu"<<endl ; } else if (n=='2'){ cout<<"Weekly"<<endl; cout<<"1.Birr 50 for 70 min,590 MB,20 SMS"<<endl; cout<<"2.Birr 76 for 100 min,1GB,20 SMS"<<endl; cout<<"*.Back"<<endl; cout<<"**.Main Menu"<<endl; } } if (n=='4'){ cout <<"Flexi Package " <<endl ; cout <<"1.Daily " <<endl ; cout <<"2.Weekly " <<endl ; cout <<"3.Monthly " <<endl ; cout <<"*.Back " <<endl ; cout <<"**.Main Menu " <<endl ; } if (n=='5'){ cout <<"Unlimited premium " <<endl ; cout <<"1.Weekly " <<endl ; cout <<"2.Monthly " <<endl ; cout <<"*.Back " <<endl ; cout <<"**.Main Menu " <<endl ; } if (n=='6'){ cout <<"Unlimited Daily Package "<<endl ; cout <<"1.Daily"<<endl ; cout <<"*.Back " <<endl ; cout <<"**.Main Menu " <<endl ; } if (n=='#'){ cout <<"7.Long Validity Package "<<endl ; cout <<"8.International Call Package "<<endl ; cout <<"9.Morning Package "<<endl ; cout <<"10.SMS Package "<<endl ; cout <<"##.Previous page *.Back "<<endl ; cout <<"**.Main Menu "<<endl; } if (n=='*'){ cout <<"Package " <<endl ; cout <<"1.For yourself " <<endl ; cout <<"2.For gift " <<endl ; } if (n=='0'){ cout <<"Welcome to ethio gebeta "<<endl ; cout <<"1.Easter Holiday Package "<<endl ; cout <<"2.Packages " <<endl ; cout <<"3.One Birr Package "<<endl ; cout <<"4.Additional Service "<<endl ; cout <<"5.Language Change " <<endl ; cout <<"6.My Service "<<endl ; } break ; case '*': cout <<"Welcome to ethio gebeta "<<endl ; cout <<"1.Easter Holiday Package "<<endl ; cout <<"2.Packages "<<endl ; cout <<"3.One Birr Package "<<endl ; cout <<"4.Additional Service "<<endl ; cout <<"5.Language Change " <<endl ; cout <<"6.My Service " <<endl ; cout <<"Enter your choice"<<endl ; cin>>n; if (n=='2'){ cout <<"1.For yourself " <<endl; cout <<"2.For gift " <<endl; cout <<"*.Back "<<endl ; } break ; default : cout <<"Entered number is not valid "<<endl ; } return 0; }
Write, Run & Share C++ code online using OneCompiler's C++ online compiler for free. It's one of the robust, feature-rich online compilers for C++ language, running on the latest version 17. Getting started with the OneCompiler's C++ compiler is simple and pretty fast. The editor shows sample boilerplate code when you choose language as C++
and start coding!
OneCompiler's C++ online compiler supports stdin and users can give inputs to programs using the STDIN textbox under the I/O tab. Following is a sample program which takes name as input and print your name with hello.
#include <iostream>
#include <string>
using namespace std;
int main()
{
string name;
cout << "Enter name:";
getline (cin, name);
cout << "Hello " << name;
return 0;
}
C++ is a widely used middle-level programming language.
When ever you want to perform a set of operations based on a condition If-Else is used.
if(conditional-expression) {
//code
}
else {
//code
}
You can also use if-else for nested Ifs and If-Else-If ladder when multiple conditions are to be performed on a single variable.
Switch is an alternative to If-Else-If ladder.
switch(conditional-expression){
case value1:
// code
break; // optional
case value2:
// code
break; // optional
......
default:
code to be executed when all the above cases are not matched;
}
For loop is used to iterate a set of statements based on a condition.
for(Initialization; Condition; Increment/decrement){
//code
}
While is also used to iterate a set of statements based on a condition. Usually while is preferred when number of iterations are not known in advance.
while (condition) {
// code
}
Do-while is also used to iterate a set of statements based on a condition. It is mostly used when you need to execute the statements atleast once.
do {
// code
} while (condition);
Function is a sub-routine which contains set of statements. Usually functions are written when multiple calls are required to same set of statements which increases re-usuability and modularity. Function gets run only when it is called.
return_type function_name(parameters);
function_name (parameters)
return_type function_name(parameters) {
// code
}