Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

help me for my assignment

0 votes
asked Dec 5, 2018 by Hazel Pacis (120 points)
#include<iostream.h>

#include<conio.h>

#include<iomanip.h>

#include<ctype.h>

#include<stdlib.h>

#define g gotoxy

void main(void)

{

    int style1,text;

    char size,add,top,yes, style[1];

    float price, topp,t=0,total=0;

    do{

        clrscr();

        gotoxy(30,2);cout<<"<<<"Main Menu">>;

        gotoxy(5,4);cout<<"Style";

        gotoxy(5,5);cout<<[1]"Manager's Choice";

        gotoxy(5,6);cout<<[2]"Super Supreme";

        gotoxy(5,7);cout<<[3]"Meat Lovers";

        gotoxy(5,8);cout<<[4]"Hawaiian Delight";

        gotoxy(35,4);cout<<"[F]amily";

        gotoxy(48,4);cout<<"[D]ouble";

        gotoxy(61,4);cout<<"[S]ingle";

        gotoxy(37,5);cout<<"250";

        gotoxy(37,6);cout<<"230";

        gotoxy(37,7);cout<<"220";

        gotoxy(37,8);cout<<"210";

       

        gotoxy(51,5);cout<<"135";

        gotoxy(65,5);cout<<"80";

        gotoxy(51,6);cout<<"125";

        gotoxy(51,7);cout<<"115";

        gotoxy(51,8);cout<<"110";

        gotoxy(65,6);cout<<"70";

        gotoxy(65,7);cout<<"60";

        gotoxy(65,8);cout<<"50";

       

        do {

            g(20,12);cout<<"Style[]";

            g(29,12);cin>>style1=atoi(style);

           

        } while (style1<1||style1>4);

       

        do{

            g(40,12);cout<<"Size[]";

            g(48,12);cin>>size;test=0;

            if(toupper(size))=='F'||toupper(size)=='D'||toupper(size)=='S');

            {

                switch(style1)

                {

                case A:switch(toupper(size))

                    {

                        case'F':price=250.00;break;

                    }

                    break;

                case'B':switch(toupper(size))

                    {

                        case'F':topp=30.00;break;

                    }

                    break;

                case'C':switch(toupper(size))

                {

                    case'F':topp=15,00;break;

                }

                    break;

                case'D':switch(toupper(size))

                {

                    case'F':topp=15.00;break;

                }

                break;

                }

                test=1;

            }

        }while (test==0);

        t+=topp;

        g(20,21);cout<<"More Toppings [y/n]";

        g(44,21);cin>>top;

    } while(top=='Y'||top=='y');

}

total=price+t;

g(20,23);cout<<"total bill:P"<<setprecision(2)<<setiosflags(ios::showpoint)<<total;

getch();

clrscr();

cout<<"\n\n\n Do you want to re-run your program [y/n]";cin>>yes;

}while(yes=='Y'||yes=='y');

}

getch();

}

                }

                }

                    }

                    }

                }

            }

        }

        }

    }

}

#include<iostream.h>

#include<conio.h>

#include<iomanip.h>

#include<ctype.h>

#include<stdlib.h>

#define g gotoxy

void main(void)

{

    int style1,text;

    char size,add,top,yes, style[1];

    float price, topp,t=0,total=0;

    do{

        clrscr();

        gotoxy(30,2);cout<<"<<<"Main Menu">>;

        gotoxy(5,4);cout<<"Style";

        gotoxy(5,5);cout<<[1]"Manager's Choice";

        gotoxy(5,6);cout<<[2]"Super Supreme";

        gotoxy(5,7);cout<<[3]"Meat Lovers";

        gotoxy(5,8);cout<<[4]"Hawaiian Delight";

        gotoxy(35,4);cout<<"[F]amily";

        gotoxy(48,4);cout<<"[D]ouble";

        gotoxy(61,4);cout<<"[S]ingle";

        gotoxy(37,5);cout<<"250";

        gotoxy(37,6);cout<<"230";

        gotoxy(37,7);cout<<"220";

        gotoxy(37,8);cout<<"210";

       

        gotoxy(51,5);cout<<"135";

        gotoxy(65,5);cout<<"80";

        gotoxy(51,6);cout<<"125";

        gotoxy(51,7);cout<<"115";

        gotoxy(51,8);cout<<"110";

        gotoxy(65,6);cout<<"70";

        gotoxy(65,7);cout<<"60";

        gotoxy(65,8);cout<<"50";

       

        do {

            g(20,12);cout<<"Style[]";

            g(29,12);cin>>style1=atoi(style);

           

        } while (style1<1||style1>4);

       

        do{

            g(40,12);cout<<"Size[]";

            g(48,12);cin>>size;test=0;

            if(toupper(size))=='F'||toupper(size)=='D'||toupper(size)=='S');

            {

                switch(style1)

                {

                case A:switch(toupper(size))

                    {

                        case'F':price=250.00;break;

                    }

                    break;

                case'B':switch(toupper(size))

                    {

                        case'F':topp=30.00;break;

                    }

                    break;

                case'C':switch(toupper(size))

                {

                    case'F':topp=15,00;break;

                }

                    break;

                case'D':switch(toupper(size))

                {

                    case'F':topp=15.00;break;

                }

                break;

                }

                test=1;

            }

        }while (test==0);

        t+=topp;

        g(20,21);cout<<"More Toppings [y/n]";

        g(44,21);cin>>top;

    } while(top=='Y'||top=='y');

}

total=price+t;

g(20,23);cout<<"total bill:P"<<setprecision(2)<<setiosflags(ios::showpoint)<<total;

getch();

clrscr();

cout<<"\n\n\n Do you want to re-run your program [y/n]";cin>>yes;

}while(yes=='Y'||yes=='y');

}

getch();

}

                }

                }

                    }

                    }

                }

            }

        }

        }

    }

}

1 Answer

0 votes
answered Dec 7, 2018 by Shivani Dubey (140 points)
What's problem in it ?Please specify
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...