User:PARIS LAWRENCE

This program is written by paris lawrence khumalo on 06th of march 2013.


 * 1) include 
 * 2) include 

int main(int argc, char *argv[]) { float weight; float convertor=1; float height; float AQf; int select; puts("******************************************"); puts("   WELCOME TO THE UNITED KINGDOM        *"); puts("        RECRUITMENT AGENCY              *"); puts("                                        *"); puts("******************************************"); //sleep(2000); //textcolour(RED); puts("All succesful candidate will be posistioned\n  acccording to their AQF outcome"); sleep(1000); puts("******************************************"); puts("*          Data capturing....           *"); puts("******************************************"); puts("Please enter your height:");//prompting the user to enter height scanf("%f",&height);//storing the weith puts("Please enter your weigth:"); scanf("%f",&weight); convertor=weight*0.45359237 ;//converting the weigth entered in pounds to kg AQf=convertor/((height*height)); printf("Your AQf is : %.3f\n",AQf); if(AQf<=30) { if(AQf<20.5)//condition:juniour selection position {   printf("Thank you for trying our agency\nPlease wait for your results\n"); sleep(400); puts("\n"); puts("\n"); puts("You have been been selected for the \n***JUNIOUR position***"); puts("\n"); } if(AQf>=20.5 &&  AQf<=26.9)//condition: captain selection position {   printf("\nThank you for trying our agency\n Please for your results\n"); sleep(1500); puts(""); puts("You have been been selected for the \nCAPTAIN position"); puts("\n"); } if(AQf>=27 &&  AQf<=30)// {   printf("Thank you for trying our agency\n Please for your results\n"); sleep(1500); puts(""); puts("You have been been selected for the \nMAJOR GENERAL position"); puts("\n"); } }  else//this condition will be selected if the first if statement is not true {  puts("apllication rejected"); }

puts(""); system("PAUSE"); return 0; }