Sei sulla pagina 1di 10

#include<stdio.

h>

main ()

char cho;

double op,dis,tc,change;

int pay,pro;

printf("*********************************************************************\n");

printf("**** \1\1 ***\n");

printf("** \3\3 WELCOME TO My Proposal \3\3 **\n");


printf("*********************************************************************\n");

printf("***** \3\3\3 \3\3\3\3\3 we offered \3\3\3\3\3 \3\3\3 *****\n");


printf("*********************************************************************\n");

printf("*** \3\3\3 [1]bag w/ 20 percent discount \3\3\3 ***\n");


printf("*** \3\3 [2]sandals w/ 15 percent discount \3\3 ***\n");
printf("*** \1\1 [3]shoes w/ 10 percent discount \1\1 ***\n");
printf("*** \1\1 take this opportunity \1\1 ***\n");
printf("*********************************************************************\n");

printf("\n\t\tpls enter the number you want::\t");

scanf("%d", &pro);

switch (pro)

case 1:

printf("\n\t\t************************************************\n");

printf("\t\t******************** ***********\n");

printf("\t\t*****************\1\1 [d]gale=550 \1\1*******\n");

printf("\t\t*****************\1\1 [e]esmeralda=450 \1\1*******\n");

printf("\t\t*****************\1\1 [f]tatun=445 \1\1*******\n");

printf("\t\t******************** ***********\n");

printf("\t\t************************************************\n\n");
printf("\n\t\tpls type the leter of the brand of the bag::");

scanf("%s", &cho);

if(cho=='d')

op=550;

dis=op*.2;

tc=op-dis;

printf("\n\t\tyour total coast is:%lf\n\n\n", tc);

printf("\n\t\tpls input your money:\n\n\t\t");

scanf("%d", &pay);

if(pay>=tc)

change=pay-tc;

printf("\n\t\tyour changeis:\n\n\t\t%lf\n\n", change);

printf("\t\tthank you\n\n\n\t\t");

else

printf("\t\t\5\5\5\tinsuficient money\t\5\5\5\t\t\n");

else if(cho=='e')

{
op=450;

dis=op*.2;

tc=op-dis;

printf("\n\t\tyour total coast is:\n\n\t\t%lf\n\n", tc);

printf("\n\t\tpls input your money:\n\n\t\t");

scanf("%d", &pay);

if(pay>=tc)

change=pay-tc;

printf("\t\tyour changeis:\n\n\n\t\t%lf\n", change);

printf("\t\tthank you\n\n\n\t\t");

else

printf("\n\t\t\3\3\tinsuficient money\t\3\3\n\n");

else if(cho=='f')

op=445;

dis=op*.2;

tc=op-dis;

printf("\n\t\tyour total coast is:\n\n\n\t\t%lf", tc);

printf("\n\t\tpls input your money:\n\t\t");


scanf("%d", &pay);

if(pay>=tc)

change=pay-tc;

printf("\t\tyour changeis:\n\n\t\t%lf\n", change);

printf("\t\tthank you\n\n\n\t\t");

else

printf("\t\t\3\3\tinsuficient money\t\3\3\n\n");

else

printf("\t\t\4\4 invalid product \4\4\n\n\n\n");

break;

case 2:

printf("\n\t\t************************************************\n");

printf("\t\t****************** *************\n");

printf("\t\t************\1\1 [g]catheryn=455 \1\1*******\n");

printf("\t\t************\1\1 [k]glam=490 \1\1*******\n");

printf("\t\t************\1\1 [m]noreen=570 \1\1*******\n");

printf("\t\t****************** *************\n");

printf("\t\t************************************************\n\n");

printf("\n\t\tpls type the leter of the unit::");


scanf("%s", &cho);

if(cho=='g')

op=455;

dis=op*.15;

tc=op-dis;

printf("\n\t\tyour total coast is:\n\n\n\t\t%lf\n", tc);

printf("\n\t\tpls input your money:\n\t\t");

scanf("%d", &pay);

if(pay>=tc)

change=pay-tc;

printf("\n\t\tyour changeis:\n\n\n\t\t%lf\n", change);

printf("\t\tthank you\n\n\n\t\t");

else

printf("\n\t\t\4\4\tinsuficient money\t\4\4\n\t\t");

else if(cho=='k')

op=490;

dis=op*.15;
tc=op-dis;

printf("\n\t\tyour total coast is:\n\n\n\t\t%lf\n\n", tc);

printf("\n\t\tpls input your money:\n\t\t");

scanf("%d", &pay);

if(pay>=tc)

change=pay-tc;

printf("\n\t\tyour changeis:\n\n\n\t\t%lf\n", change);

printf("\t\tthank you\n\n\n\t\t");

else

printf("\t\t\4\4\tinsuficient money\t\4\4\n\n\t\t");

else if(cho=='m')

op=570;

dis=op*.15;

tc=op-dis;

printf("\n\t\tyour total coast is:\n\n\n\t\t%lf\n\n", tc);

printf("\t\tpls input your money:\n\n\t\t");

scanf("%d", &pay);

if(pay>=tc)
{

change=pay-tc;

printf("\t\tyour changeis:\n\n\n\t\t%lf\n", change);

printf("\t\tthank you\n\n\n\t\t");

else

printf("\t\t\4\4\tinsuficient\tmoney\4\4\t\n\t\t");

else

printf("\t\t\1\1 invalid product \1\1\n\n");

break;

case 3:

printf("\n\t\t************************************************\n");

printf("\t\t*************** ************\n");

printf("\t\t*********\1\1 [p]momentum=1685 \1\1******\n");

printf("\t\t*********\1\1 [t]blue marine=1150 \1\1******\n");

printf("\t\t*********\1\1 [q]explorer=1225 \1\1******\n");

printf("\t\t*************** ************\n");

printf("\t\t************************************************\n");

printf("\n\t\tpls type the leter of the shoes::");

scanf("%s", &cho);

if(cho=='p')

op=1685;
dis=op*.1;

tc=op-dis;

printf("\n\t\tyour total coast is:\n\n\t\t%lf\n\n", tc);

printf("\n\t\tpls input your money:\n\n\t\t");

scanf("%d", &pay);

if(pay>=tc)

change=pay-tc;

printf("\n\t\tyour changeis:\n\n\t\t%lf\n\n", change);

printf("\n\t\tthank you\n\n\n\t\t");

else

printf("\n\t\t\4\4 insaficient money\4\4\n\t\t");

else if(cho=='t')

op=1150;

dis=op*.1;

tc=op-dis;

printf("\n\t\tyour total coast is:\n\n\t\t%lf\n\n", tc);

printf("\n\t\tpls input your money:\n\n\t\t");

scanf("%d", &pay);

if(pay>=tc)
{
change=pay-tc;
printf("\t\tyour changeis:\n\n\n\t\t%lf\n", change);
printf("\n\t\tthank you\n\n\n\t\t");

else

printf("\n\t\t\4\4 insaficient money\4\4\n\t\t");

else if(cho=='q')

op=1225;

dis=op*.1;

tc=op-dis;

printf("\t\tyour total coast is:\n\n\t\t%lf\n\n", tc);

printf("\t\tls input your money:\n\n\t\t");

scanf("%d", &pay);

if(pay>=tc)

change=pay-tc;

printf("\t\tyour changeis:\n\n\t\t%lf\n\n", change);

printf("\n\t\tthank you\n\n\n\n\t\t");
}
else
printf("\n\t\t\4\4 insaficient money\4\4\n\n\n\t\t");
}
else

printf("\n\t\t\2\2\2 invalid product \2\2\2\n\n\n\n\t\t");


break;
default:
printf("\n\t\t\2\2 INvalid product \2\2\n\n\n\t\t");
}
}
}
}

Potrebbero piacerti anche