Help me. do statement must have while problem

//Graduation Program
#include <iostream.h>
#include <conio.h>

const char password = 'AV';

void main()

{
long double x,y;
char pass, ar, ch;
do
{




clrscr();
cout<<"\n\n\tPress any key to continue..... ";
getch();
clrscr();
cout<<"\n\n\tEnter Password: ";
cin>> pass;
while (pass!=password);

{
clrscr ();
cout<<"\n\n\tSorry wrong password!!! ";
cout<<"\n\n\tPlease enter correct password: ";
cin>> pass;
}

clrscr ();
cout<<"\n\n\n\n\t\t\t PASSWORD ACCEPTED......";
cout<<"\n\n\n\n\t\t\t Press any key to continue......";
getch ();
clrscr ();
cout<<"\n\n\t\t75th Closing Exercises of Holy Angel University ";
cout<<"\n\t\tTime: 4:00 pm";
cout<<"\n\t\ttVenue: University Theatre";
cout<<"\n\t\tHere is the sequence of the program: ";
cout<<"\n\t\t[A] Prayer";
cout<<"\n\t\t[E] Graduation Song";
cout<<"\n\t\t[G] Distribution of Diplomas";
cout<<"\n\t\t[H] Awarding of Medals and Certificate of Recognition to Honor Students";
cout<<"\n\t\t[I] Valedictory Address";
cout<<"\n\t\t[J] Class Pledge";
cout<<"\n\t\t[K] Closing Song";
cout<<"\n\t\t[L] Recessional";
cout<<"\n\n\t\tEnter CAPS Letter to use: ";
cin>>ch;
cout<<"<\n\n\n";

switch (ch)

//For Prayer

{
case 'A':

{

clrscr ();
cout<<"\n\n\n\t\t\tPRAYER";
cout<<"\n\t\tDear Lord, as we look toward our future we are filled";
cout<<"\n\t\twith bright hope. You have spoken to us Lord and said that";
cout<<"\n\t\tYou know the plans You have for us, and we rest";
cout<<"\n\t\tin that promise because we know You have";
cout<<"\n\t\tmade those plans with care. Holy Spirt, we ask that";
cout<<"\n\t\tYou lead us and guide us. Help us to run and";
cout<<"\n\t\tobey at Your command and help us to be still";
cout<<"\n\t\tand know you are God and are there when trouble";
cout<<"\n\t\tis at hand. Your Word is a lamp to us, a ";
cout<<"\n\t\tlight to guide our way; a solid place we can";
cout<<"\n\t\trest upon and a guide to us when we stray.";
cout<<"\n\t\tHelp us to live our lives to praise You, ";
cout<<"\n\t\tnot for fortune or fame for ourselves. We seek Your";
cout<<"\n\t\thelp that in everything we say or do will bring ";
cout<<"\n\t\tYou glory. We pray that our eyes will ";
cout<<"\n\t\tstay fixed on You as we seek the way that is pure,";
cout<<"\n\t\tabiding in You always. Dear Lord, show us";
cout<<"\n\t\tyour favor and at all times keep us blessed.";
cout<<"\n\t\tMay your face ever shine upon ";
cout<<"\n\t\tus with Your peace and perfect rest. Amen"<<endl;
cout.precision(2);

}

break





//For Graduation Song


{ case 'E';

{

clrscr ();
cout<<"\n\n\n\t\t\tGLOWING INSIDE";
cout<<"\n\t\tHappy, to let you know you make me";
cout<<"\n\t\tglow I feel so good, It's true so glad";
cout<<"\n\t\tglad that I have you. Love me so now";
cout<<"\n\t\tall is bright.";
cout<<"\n\n\t\tI'll always thank you for the glow";
cout<<"\n\t\tand thank you for the joy. Thank you";
cout<<"\n\t\tfor the love you gave to me";
cout<<"\n\t\tI'm glowing, glowing inside with your love";
cout<<"\n\t\tshining through. Thank you for everything you do";
cout<<"\n\n\t\tI'd glowing inside because of you..";
cout<<"\n\t\tRemember, My growing years they're filled";
cout<<"\n\t\twith joy because you're there for me cast my";
cout<<"\n\t\tfears away you wipe those tears you gave me strength";
cout<<"\n\t\teach day.. I thank you for the joy. Thankyou for";
cout<<"\n\t\tthe love you gave to me I'm glowing, glowing inside";
cout<<"\n\t\twith your love shining through. Thank you for";
cout<<"\n\t\teverything you do I'm glowing inside because of you";
cout<<"\n\t\twho knows of what tomorrow brings my glowing wings";
cout<<"\n\n\t\tcan make me fly I'll reach and now I touch";
cout<<"\n\t\tthe sky because of you. I'll sore up so high";
cout<<"\n\t\tSo I must thank you for the glow and thank you for";
cout<<"\n\t\tthe joy. thank you for the love you give to me..";
cout<<"\n\t\tI'm glowing, glowing inside with your love shining";
cout<<"\n\t\tthrough.. Thank you for everything you do.";
cout<<"\n\t\tI'm glowing inside because of you.."<<endl;
cout.precision(2);

}


break;

//Presentation and Confirmation of the Candidates for Graduation


}

break;


//Distribution of Diplomas

{
case 'G':

{

clrscr ();
cout<<"\n\n\n\t\t\t\tBOYS: ";
cout<<"\n\t\t\tAlipio, Dean T.";
cout<<"\n\t\t\tAloc, Marc Andrew R. ";
cout<<"\n\t\t\tAngeles, Jason Alecxis ";
cout<<"\n\t\t\tBrinas, John Michael ";
cout<<"\n\t\t\tCandava, Marion ";
cout<<"\n\t\t\tChavez, John Michael ";
cout<<"\n\t\t\tCunanan, Acy V.";
cout<<"\n\t\t\tDanganan, Kristopher Wilson F.";
cout<<"\n\t\t\tFernandez, Jesfer Aaron. ";
cout<<"\n\t\t\tHechanova, Jun Ace";
cout<<"\n\t\t\tIgnacio, Romiel ";
cout<<"\n\t\t\tLayoso, Vener ";
cout<<"\n\t\t\tLim, Francis Ian ";
cout<<"\n\t\t\tMalig, Eruinne";
cout<<"\n\t\t\tMalonzo, Vaughn ";
cout<<"\n\t\t\tManansala, Mark Angelo";
cout<<"\n\t\t\tMontoya, Aldrin";
cout<<"\n\t\t\tMoyano, Karlo ";
cout<<"\n\t\t\tNidua, Jayson";
cout<<"\n\t\t\tPabustan, Oliver";
cout<<"\n\t\t\tPostrado, Art Matthew";
cout<<"\n\t\t\tRobinos, Ralpdrian";
cout<<"\n\t\t\tSalunga, Alfred";
cout<<"\n\t\t\tSantos, Roy Raphael";
cout<<"\n\t\t\tSolis, Gian Vincenz";
cout<<endl;
cout<<"\n\t\t\tPress any key for The Girls";
clrscr ();

cout<<"\n\n\n\t\t\t\tGIRLS: ";
cout<<"\n\t\t\tAngeles, Ma. Mayette";
cout<<"\n\t\t\tCortez, Samantha Joy";
cout<<"\n\t\t\tDayrit, Hazel Rose";
cout<<"\n\t\t\tDela Cruz, Ma. Rica ";
cout<<"\n\t\t\tGomez, Ariana Xyianne S.";
cout<<"\n\t\t\tGomez, Jia M.";
cout<<"\n\t\t\tIbarra, Tracy Lynne P.";
cout<<"\n\t\t\tIligan, Alyssa T.";
cout<<"\n\t\t\tLacson, Christine Joie";
cout<<"\n\t\t\tLacson, Kimberly";
cout<<"\n\t\t\tLayug, Arianne";
cout<<"\n\t\t\tManalastas, Mary Joanne";
cout<<"\n\t\t\tMarquez, Louisse Angela G.";
cout<<"\n\t\t\tMejia, Raven ";
cout<<"\n\t\t\tNolasco, Cheska Ginger";
cout<<"\n\t\t\tPingol, Carmel Ray ";
cout<<"\n\t\t\tPunsalan, Carol Anne";
cout<<"\n\t\t\tQuiazon, Patricia Joy";
cout<<"\n\t\t\tSantos, Tria Mae";
cout<<"\n\t\t\tSoriano, Lyka";
cout<<"\n\t\t\tSpillers, Irish Brina";
cout<<"\n\t\t\tTulud, Cristine";
cout<<"\n\t\t\tTumang, Andrea";
cout<<"\n\t\t\tYmson, Geraldine Micaela";
cout<<endl;
cout.precision(2);

}

break;


//Awarding of Medals and Certificate of Recognition to Honor Students

{
case 'H':

{

clrscr ();

cout<<"\n\n\t\t\tAWARDEES: ";
cout<<"\n\t\tValedictorian: Lim, Ian Francis";
cout<<"\n\t\tSalutatorian: Postrado, Art Matthew";
cout<<"\n\t\tFirst Honorable Mention: Noloasco, Cheska Ginger";
cout<<"\n\t\tSecond Honorable Mention: Gomez, Jia M.";
cout<<"\n\t\tThird Honorable Mention: Iligan, Allysa T.";
cout<<"\n\t\tFourth Honorable Mention: Ibarra, Tracy Lynne";
cout<<"\n\t\tFifth Honorable Mention: Aloc, Marc Andrew";
cout<<"\n\t\tSixth Honorable Mention: Ymson, Geraldine Micaela";
cout<<"\n\t\tSeventh Honorable Mention: Quiazon, Patricia Joy";
cout<<"\n\t\tEighth Honorable Mention: Salunga, Alfred";
cout<<"\n\t\tNinth Honorable Mention: Santos, Tria Mae";
cout<<"\n\t\tTenth Honorable Mention: Ignacio, Romiel";
cout<<"\n\n\t\t\tSPECIAL CITATION AWARDEES: ";
cout<<"\n\t\tBest in TLE: Lim, Francis Ian";
cout<<"\n\t\tBest in CLE: Aloc, Marc Andrew R.";
cout<<"\n\t\tBest in MAPEH: Gomez, Ariana Xyianne";
cout<<"\n\t\tAthlete of the Year: Chavez, John Michael";
cout<<"\n\t\tBoyscout of the Year: Brinas, John Michael";
cout<<"\n\t\tGirlscout of the year: Spillers, Irish Brina";
cout<<endl;
cout.precision(2);

}

break;
//Valedictory Address



//Class Pledge

{
case 'J':

{

clrscr ();

cout<<"\n\n\t\t\tCLASS PLEDGE: ";
cout<<"\n\tDear Lord, as we look toward our future we are filled";
cout<<"\n\twith bright hope. You have spoken to us Lord and said ";
cout<<"\n\tthat You know the plans You have for us, and we rest in";
cout<<"\n\tthat promise because we know You have made those plans with care.";
cout<<"\n\n\tHoly Spirt, we ask that You lead us and guide us.";
cout<<"\n\tHelp us to run and obey at Your command and help us";
cout<<"\n\tto be still and know you are God and are there when trouble";
cout<<"\n\tis at hand.";
cout<<"\n\n\tYour Word is a lamp to us, a light to guide our way; a solid ";
cout<<"\n\tplace we can rest upon and a guide to us when we stray.";
cout<<"\n\n\tHelp us to live our lives to praise You, not for fortune or";
cout<<"\n\tfame for ourselves. We sak Your help that in everything";
cout<<"\n\twe say or do will bring You glory.";
cout<<"\n\n\tWe pray that our eyes will stay fixed on You as we seek ";
cout<<"\n\tthe way that is pure, abiding in You always.";
cout<<"\n\n\tDear Lord, show us your favor and at all times keep";
cout<<"\n\tus blessed. May your face ever shine upon us with ";
cout<<"\n\tYour peace and perfect rest. So, Help us God.";
cout<<"\n\tAmen ";
cout.precision(2);

}

break;

}





//Ressecional

{

case 'L':

{

clrscr ();
cout<<"\n\n\t...........EXIT OG GRADUANTS..............";
cout<<"\n\tCONGRATULATIONS!!!! GOD BLESS. ";

}




cout<<"\n\n\n\t\t\tTry again (y/n): ";
cin>>ar;



}
}

while (ar == 'y' || ar == 'Y');



getch ();
}}}}}} }
Topic archived. No new replies allowed.