Answer to Question #45918 in C++ for mark justine fontanilla cruz

Question #45918
how to add category to this program . like asking choose food : or choose drinks

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

int friedchicken=0;
int pizzapie=0;
int spaghetti=0;
int frenchfries=0;
int coke=0;
int pineapplejuice=0;
int icetea=0;
int water=0;
int q1,q2,q3,q4,q5,q6,q7,q8;



main()

{
clrscr();
int order;

char a;

gotoxy(35,4);
printf("MENU\n\n");
textcolor(BROWN);
gotoxy(20,7);
cprintf("[1] Fried Chicken\n");
textcolor(LIGHTRED);
gotoxy(20,8);
cprintf("[2] Pizza Pie\n");
textcolor(RED);
gotoxy(20,9);
cprintf("[3] Spaghetti\n");
textcolor(YELLOW);
gotoxy(20,10);
cprintf("[4] French Fries\n");
gotoxy(20,11);
textcolor(DARKGRAY);
gotoxy(40,7);
cprintf("[5] Coke\n");
textcolor(LIGHTGREEN);
gotoxy(40,8);
cprintf("[6] Pineapple Juice\n");
textcolor(LIGHTCYAN);
gotoxy(40,9);
cprintf("[7] Ice Tea\n");
textcolor(WHITE);
gotoxy(40,10);
cprintf("[8] Water\n");
gotoxy(42,12);
printf("\nEnter your order:");
scanf("%d", &order);
switch(
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS