get paid to paste

#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
    enum first_menu_options { phone_account_info = 1, emergency_phone_call, just_to_talk};
    enum phone_account_info_menu_option {billing_issues =1, payment, cancellation_request};
    enum emergency_phone_call_menu_options {emergency_service_connect=1, list_of_emergency_contacts};
    enum just_to_talk_menu_options {about_weather=1, about_your_day};
    enum billing_issue_menu_options {over_billing =1, specific_charge_issue,};
    enum payment_menu_options {with_credit_card =1, with_check};
    enum cancelation_request_menu_options {cancel_phone_service =1, cancel_other_service};
    enum get_connected_to_emergency_service {fire_department_connect =1, police_connect, paramedic_connect};
    enum list_of_emergency_numbers {fire_department_number =1, police_number, paramedic_number};
    enum about_the_weather_menu {sunny =1, cloudy, rainy};
    enum about_your_day_menu {good = 1, bad, so_so};
    const int EXIT_CODE = 5;
    const int GO_HOME = 4;
    int not_done=1;
    
   int selection;
   do
   {      cout<< endl;
          cout<< " Welcome to the phone company menu \n"
              << "For information about your account press "<< phone_account_info<< endl
              << "For emergency phone call press "<< emergency_phone_call<< endl
              << "Just to talk press " << just_to_talk << endl
              << "Enter your selection now:";
          cin>> selection;
          cout<< endl;
          {
          
           switch (selection)
          {
             case phone_account_info:
                { cout<<"You chose " << phone_account_info << " for phone account info\n"
                      <<"For billing issue press " << billing_issues << endl
                      <<"To make a payment press " << payment << endl
                      <<"To cancel service press " << cancellation_request << endl
                      <<"To go to home menu press " << GO_HOME << endl
                      <<"To exit program press " << EXIT_CODE << endl
                      <<"Please enter selection now:";
                  cin>> selection;
                  cout<< endl;
                          
                          switch(selection)
                          {
                               case billing_issues: cout<< "You chose " << billing_issues << " for billing issues." << endl
                                                        << "For over billing problem press " << over_billing << endl
                                                        << "For specific charge issue press " << specific_charge_issue <<endl
                                                        << "To go to main menu press " << GO_HOME << endl
                                                        << "To exit program press " << EXIT_CODE << endl
                                                        << "Enter choice now: ";
                                                    cin>> selection;
                                                    cout<<endl;
                                         switch (selection)
                                         {
                                                      
                                                  case over_billing: cout<< "You chose " << over_billing << " for over billing problem\n";
                                                                     
                                                                            break;
                               
                                                  case specific_charge_issue: cout<< "You chose " << specific_charge_issue << " for issues with specific charges" << endl;
                                                                              break;
                                
                                                  case GO_HOME: cout<< "You chose " << GO_HOME << " to go to the home menu"<< endl;
                                                                             break;                   
                               
                                                  case EXIT_CODE: cout<< "You chose " << EXIT_CODE << " to exit the program "<< endl;
                                                                         not_done=0 ; //sets not done to zero to end the loop
                                                                             break;
                                                  default: cout<< "That is not a valid selection\n";
                                                                             break;                           
                                                                             }
                                                  break; 
                                                  break;                          
                               case payment : cout<< "You chose "<< payment << " for payment options"<< endl
                                                  << "To pay with credit card press " << with_credit_card << endl
                                                  << "To pay with check press " << with_check << endl
                                                  << "To go back to main menu press " << GO_HOME << endl
                                                  << "To exit press " << EXIT_CODE << endl
                                                  << "Please enter selection now:";
                                              cin>> selection;
                                              cout<< endl;
                                
                                               switch(selection)
                                               {               
                                                      case with_credit_card: cout<< "You chose " << with_credit_card << " to pay with credit card\n";
                                                      break;
                               
                                                      case with_check: cout<< "You chose " << with_check << " to pay with check\n";
                                                       break;
                               
                                                      case GO_HOME: cout<< "You chose " << GO_HOME << " to go to the main menu\n";
                                                      break;
                               
                                                      case EXIT_CODE: cout<< "You chose " << EXIT_CODE << " to exit program\n";
                                                           not_done=0;//sets not done to zero to end the loop
                                                      break;
                                                      default: cout<< "That is not a valid selection\n";
                                                      break; 
                                                      }  
                                                      break;
                                                      break;
                               case cancellation_request:cout<< "You chose " << cancellation_request << " to cancel service\n"
                                                             << "To cancel phone service press " << cancel_phone_service << endl
                                                             << "to cancel other service press "<< cancel_other_service << endl
                                                             << "To go home press " << GO_HOME << endl
                                                             << "To exit program press " << EXIT_CODE << endl
                                                             << "Please enter selection now:"; 
                                                         cin>> selection;
                                                         cout<< endl;
                                                         switch(selection)
                                                            {
                                                                case cancel_phone_service: cout<< "You chose " << cancel_phone_service << " to cancel your phone service\n";
                                                                                        break; 
                                                                case cancel_other_service: cout<<"You chose " << cancel_other_service << " to cancel other service\n";     
                                                                                        break;
                                                                case GO_HOME: cout<< "You chose " << GO_HOME << " to go to the main menu\n";
                                                                                        break;
                                                                case EXIT_CODE: cout<< "You chose " << EXIT_CODE << " to exit program\n";
                                                                                        not_done=0;//sets not done to zero to end the loop
                                                                                        break;
                                                                 default: cout<< "That is not a valid selection\n";
                                                                                        break; 
                                                                                        } 
                                                                                        break;
                               case GO_HOME: cout<< "You chose " << GO_HOME << " to go to the main menu\n";
                                                    break;
                               case EXIT_CODE: cout<< "You chose " << EXIT_CODE << " to exit program\n";
                                                           not_done=0;//sets not done to zero to end the loop
                                                    break; 
                                default: cout<< "That is not a valid selection\n";
                                                    break; 
                                                    }         
                               break;
                                                                 
                                                
                          break;
                          break;
                          cout<< endl; 
              case emergency_phone_call: cout<<"You chose "<< emergency_phone_call << " for emergency phone call \n"
                                             <<"To get connected to an emergency service press " << emergency_service_connect << endl
                                             <<"To hear a list of numbers press " << list_of_emergency_contacts << endl
                                             <<"To go to main menu press " << GO_HOME << endl
                                             <<"To exit press " << EXIT_CODE << endl
                                             <<"Enter selection now: " ;
                                         cin>> selection;
                                         cout<< endl;
                                         switch (selection)
                                         {
                                               case emergency_service_connect: cout<< "You chose "<< emergency_service_connect<< " to get connected to an emergency service\n"
                                                                                   << "To be connected to the fire department press " << fire_department_connect << endl
                                                                                   << "To be connected to the police department press "<< police_connect << endl
                                                                                   << "To be connected to the paramedics press " << paramedic_connect << endl
                                                                                   << "To go to the main menu press " << GO_HOME << endl
                                                                                   << "To exit program press " << EXIT_CODE << endl
                                                                                   << "Please enter selection now: ";
                                                                               cin>> selection;
                                                                               cout<< endl;
                                                                               switch (selection)
                                                                               {
                                                                                      case fire_department_connect: cout<< "You chose " << fire_department_connect<<" to be connected to the fire department\n";
                                                                                                           break;
                                                                                      case police_connect: cout<< "You chose " << police_connect << " to be connected to the police\n";
                                                                                                           break;
                                                                                      case paramedic_connect: cout<< "You chose " << paramedic_connect <<" to be connected to the paramedics\n";
                                                                                                           break;
                                                                                      case GO_HOME: cout<< "you chose " << GO_HOME << " to go to the home menu"<< endl;
                                                                                                           break;                   
                                                                                      case EXIT_CODE: cout<< "you chose " << EXIT_CODE << " to exit the program "<< endl;
                                                                                                      not_done=0 ;//sets not done to zero to end the loop
                                                                                                           break;
                                                                                      default: cout<< "That is not a valid selection\n";
                                                                                                           break; 
                                                                                                           }
                                                                                      break;
                                                                               break;
                                               case list_of_emergency_contacts: cout<< "You chose " << list_of_emergency_contacts << " to hear a list of emergency contacts\n"
                                                                                    << "For the fire department's number press " << fire_department_number << endl
                                                                                    << "For the police departments's number press " << police_number << endl
                                                                                    << "For the paramedic's number press " << paramedic_number << endl
                                                                                    << "To go to the main menu press " << GO_HOME<< endl
                                                                                    << "To exit the program press " << EXIT_CODE << endl
                                                                                    << "Please enter selection now:";
                                                                                 cin>> selection;
                                                                                cout<< endl;
                                                                                
                                                                                switch(selection)
                                                                                {
                                                                                                 case fire_department_number: cout<< "You chose " << fire_department_number << " for the fire department's number\n";
                                                                                                                                     break;
                                                                                                 case police_number: cout<< "You chose " << police_number << " for the police department's number\n";
                                                                                                                                     break;
                                                                                                 case paramedic_number: cout<< "You chose "<< paramedic_number << " for the paramedic's number\n";
                                                                                                                                     break;
                                                                                                 case GO_HOME: cout<< "you chose " << GO_HOME << " to go to the home menu"<< endl;
                                                                                                                         break;                   
                                                                                                 case EXIT_CODE: cout<< "you chose " << EXIT_CODE << " to exit the program "<< endl;
                                                                                                      not_done=0 ;//sets not done to zero to end the loop
                                                                                                                        break;
                                                                                                 default: cout<< "That is not a valid selection\n";
                                                                                                                        break; 
                                                                             }
                                                                                                                        break;
                                                                                                   
                                                                                                                                        
                                                                                    
                                                                                    
                                                                               break;
                                               case GO_HOME: cout<< "You chose " << GO_HOME << " to go to the main menu\n";
                                                                               break;
                                               case EXIT_CODE: cout<< "You chose " << EXIT_CODE << " to exit program\n";
                                                               not_done=0;//sets not done to zero to end the loop
                                                                               break;
                                               default: cout<< "That is not a valid selection\n";
                                                                               break;  
                                                                               }                                               
                                        break;
                               
                        
                           
                   break;
                          }
             case just_to_talk:
                               cout<< "You chose "<< just_to_talk << " for just to talk\n"
                                   << "Press " << about_weather << "to talk about the weather\n"
                                   << "Press " << about_your_day << " to talk about your day\n"
                                   << "Press " << GO_HOME << " to go to the main menu\n" 
                                   << "Press " << EXIT_CODE << " to exit the program\n"
                                   << "Enter your selection now: ";
                               cin>> selection;     
                               cout<< endl;
                               switch (selection)
                                      {case about_weather:
                                                          cout<< "You chose "<< about_weather << " to talk about the weather\n"
                                                              << "If the weather is sunny press " << sunny << endl
                                                              << "If the weather is cloudy press " << cloudy << endl
                                                              << "If the weather is rainy press " << rainy << endl
                                                              << "To go to the main menu press " << GO_HOME <<endl
                                                              << "To exit the program press " << EXIT_CODE << endl
                                                              <<"Please enter selection now:";
                                                          cin>>selection;
                                                          cout<<endl;
                                                          switch(selection)
                                                           {
                                                                 case sunny: cout<< "The weather is sunny\n";
                                                                 break;
                                                                 case cloudy:cout<< "It is cloudy\n";
                                                                 break;
                                                                 case rainy: cout<< "It is rainy\n";
                                                                 break;
                                                                 case GO_HOME: cout<< "You chose " << GO_HOME << " to go to the main menu\n";
                                                                 break;
                                                                 case EXIT_CODE: cout<< "You chose " << EXIT_CODE << " to exit the program\n";
                                                                                 not_done=0;//sets not done to zero to end the loop
                                                                 break;
                                                                 default: cout<< "Not a valid answer\n";
                                                                 break;
                                                                 }
                                                                 break;
                                                                            
                                                          break;
                                      case about_your_day: cout<< "You chose " << about_your_day << " to talk about your day\n"
                                                              << "If your day is good press "<< good << endl
                                                              << "If your day is bad press " << bad << endl
                                                              << "If your day is so so press " << so_so << endl
                                                              << "To go to the main menu press " << GO_HOME << endl
                                                              << "To exit the program press " << EXIT_CODE << endl
                                                              << "Please enter your selection now:";
                                                          cin>>selection;
                                                          cout<< endl;
                                                          
                                                          switch (selection)
                                                          {
                                                                 case good: cout<<"You are having a good day\n";
                                                                 break;
                                                                 case bad: cout<<"You are having a bad day\n";
                                                                 break;
                                                                 case so_so: cout<<"Your day is going so so \n";
                                                                 break;
                                                                 case GO_HOME: cout<<"You chose "<< GO_HOME << " to go to the main menu\n";
                                                                 break;
                                                                 case EXIT_CODE: cout<<"You chose "<< EXIT_CODE << " to exit the program\n";
                                                                      not_done= 0;//sets not done to zero to end the loopv
                                                                 break;
                                                                 default: cout<< "That is not a valid selection\n";
                                                                 break;
                                                                 }
                                                                 break;    
                                                              
                                                              
                                                          break;
                                      case GO_HOME: cout<< "You chose " << GO_HOME << " to go to the main menu\n";
                                      break;
                                      case EXIT_CODE: cout<< "You chose " << EXIT_CODE << " to exit the program\n";
                                                      not_done=0;//sets not done to zero to end the loop
                                      break;
                                      default: cout<< "That is not a valid selection\n";
                                      break;                    
                                                          } 
                               break;         
                                      
             default: cout<< "that is not a valid answer\n";
             break;
             }
                      break;                                                  
                          }                          
                          }
       while(not_done);                                                                                   
                                                                       
                                                                                               
                        
                        
                                  
          
          
        
          
    system("PAUSE");
    return EXIT_SUCCESS;
}

Pasted: Oct 4, 2011, 12:17:09 am
Views: 184