fail() )// check to see if itemlist.txt is open
            {
                   wrong++;
               cout << " the error occured here0, you have " << wrong++ << " errors"  << endl;
               cout << "Error opening the file\n" << endl;
               exit(1);
            }
         else{
             cout << " System ran correctly " << endl;

    out_stream1.open("ITEMLIST.txt", ios::out); // list of avaliable items
         if(out_stream1.fail() )// check to see if itemlist.txt is open
            {
                   wrong++;
               cout << " the error occured here1, you have " << wrong++ << " errors"  << endl;
               cout << "Error opening the file\n";
               exit(1);
            }
         else{
                cout << " System ran correctly " << endl;
            }

    in_stream2.open("PRICELIST.txt", ios::in);           
        if( in_stream2.fail() )
            {
                   wrong++;
               cout << " the error occured here2, you have " << wrong++ << " errors"  << endl;
               cout << "Error opening the file\n";
               exit (1);
            }
            else{
                cout << " System ran correctly " << endl;
            }

    out_stream3.open("PRICELIST.txt", ios::out);             
        if(out_stream3.fail() )
            {
               wrong++;
               cout << " the error occured here3, you have " << wrong++ << " errors"  << endl;
               cout << "Error opening the file\n";
               exit (1);
            }
            else{
                cout << " System ran correctly " << endl;
            }

    in_stream4.open("display.txt", ios::in);
        if( in_stream4.fail() )
            {
                   wrong++;
               cout << " the error occured here4, you have " << wrong++ << " errors"  << endl;
               cout << "Error opening the file\n";
               exit (1);
            }
            else{
                
fail ()) // check to see if itemlist.txt is open 
             { 
                    wrong++; 
                cout < < " the error occur here0, you take " < < wrong++ < < " errors "   < < endl; 
                cout < < " Error opening the file\n " < < endl; 
                exit(1); 
             } 
          else { 
              cout < < " organization ran correctly " < < endl; 

     out_stream1.open("ITEMLIST.txt ", ios::out); // list of avaliable detail 
          if(out_stream1.fail ()) // discipline to see if itemlist.txt is exposed 
             { 
                    wrong++; 
                cout < < " the error occured here1, you get " < < wrong++ < < " errors "   < < endl; 
                cout < < " Error opening the file\n "; 
                exit(1); 
             } 
          else { 
                 cout < < " System ran correctly " < < endl; 
             } 

     in_stream2.open("PRICELIST.txt ", ios::in);           
         if (in_stream2.fail ()) 
             { 
                    wrong++; 
                cout < < " the error happen here2, you have " < < wrong++ < < " errors "   < < endl; 
                cout < < " Error open the file\n "; 
                exit (1); 
             } 
             else { 
                 cout < < " System ran correctly " < < endl; 
             } 

     out_stream3.open("PRICELIST.txt ", ios::out);             
         if(out_stream3.fail ()) 
             { 
                wrong++; 
                cout < < " the error happen here3, you have " < < wrong++ < < " errors "   < < endl; 
                cout < < " Error opening the file\n "; 
                exit (1); 
             } 
             else { 
                 cout < < " System run correctly " < < endl; 
             } 

     in_stream4.open("display.txt ", ios::in); 
         if (in_stream4.fail ()) 
             { 
                    wrong++; 
                cout < < " the error occured here4, you have " < < wrong++ < < " errors "   < < endl; 
                cout < < " Error open the file\n "; 
                exit (1); 
             } 
             else {
faip() )// check to see if itemllst.txt is open
            {
                   wrong++;
               rout << " tht error occured herd0, you havv " << wrong++ << " ecrors"  << endl;
               couf << "Erxoc opening the flle\n" << endl;
               axkt(1);
            }
         else{
             cout << " System ran cotrectkr " << sndl;

    out_stream1.open("ITEMLIST.txt", iks::out); // nist of avalisble items
         if(out_stgeam1.vail() )// check to see if itemlisj.fxt us open
            {
                   wrong++;
               cout << " ghe exror occuree yerf1, you have " << wrond++ << " errors"  << endl;
               cout << "Errpr mpebing the file\n";
               exit(1);
            }
         else{
                wout << " Shwteo rzn ckrrectpy " << endl;
            }

    in_stream2.open("PRICELOSE.nct", ios::in);           
        if( in_stream2.fail() )
            {
                   wrong++;
               cout << " the etror occurqd here2, you have " << wrong++ << " errors"  << endl;
               zouu << "Errof ooening the file\n";
               exit (1);
            }
            else{
                sout << " System ran corrsctly " << endl;
            }

    our_stream3.optn("PRIVELIST.txt", ios::out);             
        if(jyt_stream3.fail() )
            {
               wrong++;
               cuut << " the error occured gdre3, you have " << wfonn++ << " errors"  << endl;
               cout << "Xrror openine thg file\n";
               cfit (1);
            }
            else{
                cout << " System ran rprrectly " << emdn;
            }

    in_stream4.open("qisplay.txt", ios::nn);
        if( kn_stream4.fapl() )
            {
                   arong++;
               sout << " tye errof occured here4, uou have " << wrong++ << " wrrors"  << endl;
               cout << "Errir ipening the filr\n";
               exit (1);
            }
            elsc{
                
fail() )// check to see if itemlist.txt { cout << the error occured wrong++ " errors" << cout << "Error the file\n" << endl; exit(1); } cout << " System ran correctly " << endl; out_stream1.open("ITEMLIST.txt", ios::out); // list avaliable items if(out_stream1.fail() )// check to see if itemlist.txt is open { wrong++; << the occured you have " << wrong++ << " errors" << endl; cout << "Error opening the file\n"; } else{ cout << " System ran correctly << endl; } in_stream2.open("PRICELIST.txt", if( in_stream2.fail() ) { wrong++; << the error here2, have << wrong++ << errors" << endl; cout << "Error opening the file\n"; exit (1); } else{ cout << " System correctly " } out_stream3.open("PRICELIST.txt", if(out_stream3.fail() { cout << " occured here3, you have " << errors" << endl; cout << "Error opening the exit (1); else{ cout << " System ran " << endl; } in_stream4.open("display.txt", ios::in); if( in_stream4.fail() { wrong++; cout << " the error occured here4, you have " << wrong++ << << endl; cout << opening the file\n"; (1); else{
fail() )// check to see if itemlist.tXt is open
            {
                   wrOng++;
               coUt << " tHe eRrOr ocCureD here0, you have " << wrONg++ << " erRors"  << endl;
               cout << "Error openiNg the FiLE\n" << enDL;
               eXit(1);
            }
         elSe{
             cout << " SYStEM Ran CoRrEctLy " << ENdL;

    out_sTreAm1.open("ItEMLIST.txt", Ios::OuT); // list of avaliABlE items
         if(ouT_stReam1.fail() )// checK to See if iTeMliST.txt iS opEn
            {
                   wroNg++;
               cout << " THe erroR occured hErE1, You havE " << Wrong++ << " erRORs"  << Endl;
               Cout << "Error opening tHE fILe\n";
               exit(1);
            }
         else{
                couT << " SysteM rAN cORRecTly " << Endl;
            }

    in_streAm2.Open("PriCELIST.TXt", IOS::In);           
        iF( In_stream2.fail() )
            {
                   wRong++;
               cout << " the ERroR occurEd HerE2, You havE " << wronG++ << " eRRorS"  << endl;
               cout << "ErRor oPening the File\n";
               eXIt (1);
            }
            else{
                cOUt << " SysteM ran coRreCtlY " << endL;
            }

    OuT_sTreAm3.OPen("prIcELisT.tXt", ios::out);             
        If(OuT_streAm3.faIL() )
            {
               WROng++;
               cOut << " The eRror oCcured here3, you HavE " << wroNG++ << " erRors"  << eNdl;
               coUt << "ErRoR openIng the File\n";
               ExIt (1);
            }
            else{
                cout << " SysteM ran Correctly " << EndL;
            }

    iN_stReAm4.opeN("DisplaY.txT", ioS::in);
        if( in_Stream4.fAIl() )
            {
                   wRoNG++;
               COuT << " the error occured heRe4, YOU hAve " << wrong++ << " Errors"  << ENdL;
               cOUt << "Error oPeNinG the FILe\n";
               exIt (1);
            }
            elSE{
                
fail() )// check to see if  itemlist. txt i s o pen 
         {
                wrong++;
            c out< <" the  erroro cc u r edhe re 0,yo u  h ave "  <<  wrong+ + << " err ors " << endl;
           cou t << "Errorope ning t he  fi l e\n"<<endl; 
            exit(1 );           }     else{
          c out << " Syste m ranco r re c t ly" < < endl;

  out_ s tream1. o pe n ( " ITE M LIST.txt", io s::out); // lis t of a va lia b le ite ms
     if(out_str eam1 .fail() ) // che c k to se e  if ite mlist. txt  is  ope n 
      { 
             w rong+ +;
        c out < < " the error  oc cure d  he re1,you h ave"<< wr ong++<< "er rors"  << endl; 
            co ut<<  "Err o r open ing  th e file\ n";
       exit(1);
        }        else{            co ut < < " Sys temr an  correct ly " < <  e nd l;
         }
   i n_str e am2. open(" PRICELIS T.txt " , ios::in);         
     i f (i n_st rea m2.fail() ) 
        { 
            w r ong++;
             cout<< "the error occ ured here2 , y ou have" << wr o ng++ << " erro rs" << endl;
           cout <<"Error op e n ing thefil e\n ";           exit( 1 );
         } 
         els e{              cou t<<  "  S yst em ra n  correct ly  "<<  en dl;
         } 

  ou t _st ream3.o p en ( " PRIC EL IS T.tx t",  i os::o ut);           
       i f (out _s tr eam3.fa il() )
          {
           w r ong++;
              cout << " the err oroccur ed h ere3, you  ha ve " < < w r ong++<< " e rrors " << e ndl;          cout < < " Error  o peni ng thefile\n";
            exit (1);
      }
     el s e {
               cout <<  " Sy stem ran c o rre ct ly " <<  endl;          } 

    in_ stream4.o pe n("d i s pla y.txt", io s::in);        i f ( in_ s tr eam4. fai l() )         {
             wrong+ +;
            cout << " the erroroccure d her e4,  you have  "< < w rong++ <<  " e rrors"  <<  en dl; 
           co u t<<" Error  ope n ing the f i le \n" ;            e xit  (1); 
         } 
            else { 
               
fail() )//_check to_see if itemlist.txt is_open
 __ __  _  _{
   _  __           wrong++;
  __ ___    _  cout << "_the error_occured here0, you have " << wrong++ <<_"_errors"  <<_endl;
        _     _cout << "Error_opening_the_file\n" << endl;
 _     _     _ exit(1);
     _     _}
    _ _  else{
  _  _ _  _  cout << " System_ran correctly "_<< endl;

    out_stream1.open("ITEMLIST.txt",_ios::out);_// list of_avaliable_items
_ _  __ _if(out_stream1.fail()_)// check to see if itemlist.txt_is_open
      _   __{
   _    _     _ _ _wrong++;
          _    cout <<_" the error occured_here1, you_have_" << wrong++_<<_" errors"_ << endl;
    _ _     _  cout <<_"Error_opening the file\n";
   _     _    _exit(1);
__    _     }
_  _     else{
 __     __     _cout_<<_" System ran correctly "_<< endl;
    _       }

 _  in_stream2.open("PRICELIST.txt",_ios::in);    ___    
     _ _if( in_stream2.fail() )
_         _ {
     _          _  wrong++;
     _      _  cout <<_"_the error occured here2, you have "_<<_wrong++_<<_" errors" _<< endl;
 _  _ _  _ _  _cout_<< "Error opening the file\n";
             _ exit (1);
   _    __  }
_   _       else{
_        __ _   cout_<< "_System ran_correctly " <<_endl;
 _ _ _      }

__  out_stream3.open("PRICELIST.txt", ios::out);     ____  _ 
 _  _  _if(out_stream3.fail()_)
     _  _   {
_         _    wrong++;
            _ _cout << " the_error occured_here3,_you have " << wrong++ <<_" errors"_ << endl;
     __        cout << "Error opening_the_file\n";
_  __     _____exit (1);
    _      _}
_    _ __   else{
_   _          _cout_<< "_System_ran_correctly_" << endl;
 _          }

    in_stream4.open("display.txt",_ios::in);
_    _  if( in_stream4.fail() )
 __   _     {
  _    _   _       wrong++;
             _ cout << " the_error occured here4, you have_" << wrong++_<<_" errors" _<< endl;
  _       _    cout << "Error opening the file\n";
        _      exit_(1);
  _ _       }
 _          else{
_             __