Ellveetrapz ~

Ellveetrapz ~
No one can define what the real meaning of Love ...

9/23/2011

#include<stdio.h>
#include<conio.h>
#include<stdlib.h>

main()
{
     
      int market,decision=1,decisive;
      float money, pencil=5.25, pencilq, crayon=15.75, crayonq, papers=10.50, paperq, ballpen=6.50, ballpenq, notebook=12.75, notebookq, totalone,
       bacon=36.75, baconq, hotdog=20.50, hotdogq, chicken_nuggets=43.25, chicken_nuggetsq, ham=28.25, hamq, tocino=31.75, tocinoq, totaltwo,
       tuna=14.50, tunaq, sausage=15.25, sausageq, cornbeef=17.25,cornbeefq, meatloaf=15.25, meatloafq, squid=21.75, squidq, totalthree,
       apple=12.25, appleq, orange=14.50, orangeq, mangoes=19.75, mangoesq, banana=17.75, bananaq, pineapple=29.25, pineappleq, squash=35.50, squashq, potato=10.50, potatoq, cabbage=11.25, cabbageq, redbellpeppers=15.25, redbellpeppersq, carrots=10.50, carrotsq, totalfive,
       napkin=5.50, napkinq, shampoo=7.25, shampooq, pamper=12.00, pamperq, tissue=15.00, tissueq, cotton=12.00, cottonq, soap=16.75, soapq, toothpaste=8.00, toothpasteq, totalsix,tax=0.10,vatable;
      
     
       while(decision==1)
      {
      
      printf("\t\tWelcome To Perfection Supermarket!\n\n\t\tPick here !!\n\t\tCode        \t\tMENU \n \t\t 1    \t\t\tSchool Supplies \n \t\t 2    \t\t\tFrozen Food\n \t\t 3    \t\t\tCan goods\n \t\t 4    \t\t\tFruits and Vegestables\n \t\t 5    \t\t\tPersonal Hygiene\n");
      printf("\t\tÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ\n\t\t----------------");
      printf("------------------------------");
      printf("\n\nEnter your choice  ");
      scanf("%d",&market);
     
     
      switch(market)
                     {
     case 1:
      system("cls");
      printf("\t\t\tSchool Supplies\n\n\t\tPut 0 if you will not buy that item.");
      printf("\n\t™ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ™");
      printf("\n\t™ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ™");
      printf("\n\nPencil price [5.25]  :  ",pencilq);
      scanf("%f",&pencilq);
      pencil=pencilq*pencil;
      printf("Crayon [15.75]  :  ",crayonq);
      scanf("%f",&crayonq);
      crayon=crayonq*crayon;
      printf("Papers  [10.50]  :  ",paperq);
      scanf("%f",&paperq);
      papers=paperq*papers;
      printf("Notebook  [12.75]: ",notebookq);
      scanf("%f",&notebookq);
      notebook=notebook*notebookq;
      printf("Ballpen  [6.50] :  ",ballpenq);
      scanf("%f",&ballpenq);
      ballpen=ballpenq*ballpen;
      totalone=papers+crayon+pencil+notebook+ballpen;
      printf("\n Total Amount %.2f ",totalone);
      vatable=totalone*0.10;
      totalone=totalone+vatable;
      printf("\n\nVAT 10 percent = %f",vatable);
      printf("\n \nTotal price with tax %.2f ",totalone);
      printf("\n\nMoney Tendered? ",money);
      scanf("%f",&money);
      money=money-totalone;
      printf("Change Due is %.2f\n\n ",money);
      printf("Thank You Come Again!\nWant to buy more ? Yes=0 No=1: ",decisive);
      scanf("%f",&decisive);
      decision=decision-decisive;
      system("cls");
     
     
     
      break;
     
      case 2:
           system("cls");
         printf("\t\t\tFrozen Food\n\n\t\tPut 0 if you will not buy that item.");
         printf("\n\t™ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ™");
         printf("\n\t™ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ™");
         printf("\n\nBacon [36.75] : ",baconq);     
         scanf("%f",&baconq);
         bacon=baconq*bacon;
         printf("Hotdog  [20.50]:  ",hotdog);
         scanf("%f",&hotdogq);
         hotdog=hotdogq*hotdog;
         printf("Chicken Nuggets[43.25]:  ",chicken_nuggetsq);
         scanf("%f",&chicken_nuggetsq);
         chicken_nuggets=chicken_nuggetsq*chicken_nuggets;
         printf("Ham  [28.25] :  ",hamq);
         scanf("%f",&hamq);
         ham=hamq*ham;
         printf("Tocino  [31.75] :  ",tocinoq);
         scanf("%f",&tocinoq);
         totaltwo=bacon+hotdog+chicken_nuggets+ham+tocino;
         printf("\n Total price %.2f ",totaltwo);
         vatable=totaltwo*0.10;
         totaltwo=totaltwo+vatable;
         printf("\n\nVAT 10 percent = %f",vatable);
         printf("\nTotal price with tax %.2f ",totaltwo);
         printf("\n\nHow much is your money? ",money);
         scanf("%f",&money);
         money=money-totaltwo;
         printf("Change Due is %.2f\n\n ",money);
         printf("Thank You Come Again!\nWant to buy more ? Yes=0 No=1: ",decisive);
      scanf("%f",&decisive);
      decision=decision-decisive;
      system("cls");
     
         break;
        
      case 3:
           system("cls");
         printf("\t\t\tCanned Goods\n\n\tPut 0 if you will not buy that item.");
         printf("\n\t™ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ™");
         printf("\n\t™ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ™");
         printf("\n\nTuna [14.50]:  ",tunaq); 
         scanf("%f",&tunaq);
         tuna=tunaq*tuna;
         printf("Sausage [15.25]:  ",sausageq);
         scanf("%f",&sausageq);
         sausage=sausageq*sausage;
         printf("Cornbeef [17.25] :  ",cornbeefq);
         scanf("%f",&cornbeefq);
         cornbeef=cornbeefq*cornbeef;
         printf("Meatloaf [15.25] :  ",meatloafq);
         scanf("%f",&meatloafq);
         meatloaf=meatloafq*meatloaf;
         printf("Squid  [21.75]:  ",squidq);
         scanf("%f",&squidq);
         squid=squidq*squid;
         totalthree=tuna+sausage+cornbeef+meatloaf+squid;
         printf("\n Total price %.2f ",totalthree);
         vatable=totalthree*0.10;
         totalthree=totalthree+vatable;
         printf("\n\nVAT 10 percent = %f",vatable);
         printf("\nTotal price with tax %.2f ",totalthree);
         printf("\n\nHow much is your money? ",money);
         scanf("%f",&money);
         money=money-totalthree;
         printf("Change Due is %.2f\n\n ",money);
         printf("Thank You Come Again!\nWant to buy more ? Yes=0 No=1: ",decisive);
      scanf("%f",&decisive);
      decision=decision-decisive;
      system("cls");
         break;
        
        
    case 4:
         system("cls");
         printf("\t\t\tFruits and Vegetables\n\n\tPut 0 if you will not buy that item.");
         printf("\n\t™ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ™");
         printf("\n\t™ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ™");
         printf("\n\nApples [12.25]:  ",appleq); 
         scanf("%f",&appleq);
         apple=appleq*apple;
         printf("Orange  [14.50] :  ",orangeq);
         scanf("%f",&orangeq);
         orange=orangeq*orange;
         printf("Mangoes price [19.75]:  ",mangoesq);
         scanf("%f",&mangoesq);
         mangoes=mangoesq*mangoes;
         printf("Banana [17.75]:  ",bananaq);
         scanf("%f",&bananaq);
         banana=bananaq*banana;
         printf("Pineapple [29.25] :  ",pineappleq);
         scanf("%f",&pineappleq);
         pineapple=pineappleq*pineapple;
         printf("Squash [35.50]:  ",squashq);
         scanf("%f",&squashq);
         squash=squashq*squash;
         printf("Potato [10.50]:  ",potatoq);
         scanf("%f",&potatoq);
         potato=potatoq*potato;
         printf("Cabbage [11.25]:  ",cabbageq);
         scanf("%f",&cabbageq);
         cabbage=cabbageq*cabbage;
         printf("Red bell peppers  [15.25]:   ",redbellpeppersq);
         scanf("%f",&redbellpeppersq);
         redbellpeppers=redbellpeppersq*redbellpeppers;
         printf("Carrots price [10.50]:   ",carrotsq);
         scanf("%f",&carrotsq);
         carrots=carrotsq*carrots;
         totalfive=apple+orange+mangoes+banana+pineapple+squash+potato+cabbage+redbellpeppers+carrots;
         printf("\n Total price %.2f ",totalfive);
         vatable=totalfive*0.10;
         totalfive=totalfive+vatable;
         printf("\n\nVAT 10 percent = %f",vatable);
         printf("\nTotal price with tax %.2f ",totalfive);
         printf("\n\nAmount Tendered? ",money);
         scanf("%f",&money);
         money=money-totalfive;
         printf("Change Due is %.2f\n\n ",money);
         printf("Thank You Come Again!\nWant to buy more ? Yes=0 No=1: ",decisive);
      scanf("%f",&decisive);
      decision=decision-decisive;
      system("cls");
         break;
        
    case 5:
         system("cls");
         printf("\t\t\tPersonal Hygiene\n\n\tPut 0 if you will not buy that item.");
         printf("\n\t™ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ™");
         printf("\n\t™ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ™");
         printf("\n\nNapkins [5.50]: ",napkinq);
         scanf("%f",&napkinq);
         napkin=napkinq*napkin;
         printf("Shampoo  [7.50]:  ",shampooq);
         scanf("%f",&shampooq);
         shampoo=shampooq*shampoo;
         printf("Pampers [12.00]:  ",pamperq);
         scanf("%f",&pamperq);
         pamper=pamper*pamperq;
         printf("Tissues [15.00]:  ",tissueq);
         scanf("%f",&tissueq);
         tissue=tissueq*tissue;
         printf("Cotton [12.00] : ",cottonq);
         scanf("%f",&cottonq);
         cotton=cottonq*cotton;
         printf("Soap  [16.75]:  ",soapq);
         scanf("%f",&soapq);
         soap=soapq*soap;
         printf("toohpaste [8.00]:   ",toothpasteq);
         scanf("%f",&toothpasteq);
         toothpaste=toothpasteq*toothpaste;
         totalsix=napkin+toothpaste+soap+cotton+pamper+shampoo;
         printf("\n Total price %.2f ",totalsix);
         vatable=totalsix*0.10;
         totalsix=totalsix+vatable;
         printf("\n\nVAT 10 percent = %f",vatable);
         printf("\nTotal price with tax %.2f ",totalsix);
         printf("\n\nHow much is your money? ",money);
         scanf("%f",&money);
         money=money+totalsix;
         printf("Change Due is %.2f\n\n ",money);
         printf("Thank You Come Again!\nWant to buy more ? Yes=0 No=1: ",decisive);
      scanf("%f",&decisive);
      decision=decision-decisive;
         system("cls");
    default:
            printf("\nBuy at the other store");
                          }
}      
      getch();
}