Recipie book in c language with text animiations - Source code ( Program - 18 )

 /*Made by Anmol main

Student - B.tech  CSE

Punjabi university*/



#include <stdio.h>

#include <conio.h>

#include <dos.h>

#include<windows.h>


int i, j;

char text[] = "| MAIN MENU:          |\n|_____________________|\n|_____________________|\n| achari mutton       |\n| bhatura             |\n| black dal           |\n| black eyes beans    |\n| corn pakoda         |\n|";

char text1[] = "\n=> Wash and cut the mutton into 11/2 cubes.\n=> Take off and cut the onions.\n=> Cut the tomatoes.\n=> Roast the whole spices separately and grind everything coarsely.\n=> Heat up oil in a thick-bottomed pot to smoking point, cool and again heat up the oil and stir fry the onions till brown. Preparation Time Serves 45 minutes 6 Punjabi Recipes 5\n=> Mix in the cut ginger-garlic.\n=> Mix well.\n=> Mix in coarsely ground masala powder.\n=> Stir-fry for half a minute, stirring all the time.\n=> Mix in mutton, stir fry on high flame heat up till mutton pieces are well browned.\n=> Mix in the tomatoes, turmeric powder, red chili powder and salt and mix well.\n=> Stir-fry till oil leaves the masala.\n=> Mix in sufficient quantity of water (about 21/2 cups), bring it to a boil and cover.\n=> Stir-fry till the mutton is fully done.\n=> Adjust the flavor and serve hot decorated with coriander leaves\n";

char text2[] = "=> Sieve flour and semolina.\n=> Now add all the ingredients and make stiff (but not hard) dough.\n=> Knead properly for at least 5 minutes.\n=> Cover with a wet muslin cloth and keep in a warm place for at least 3 – 4 hours.\n=> Divide into 8 – 10 round balls.\n=> Roll them out like big puris, a bit smaller than chapattis.\n=> Serve immediately with chana.";

char text3 [] = "=> Soak the dal for 2 – 3 hours. \n=> Chop the tomatoes, garlic, ginger and coriander leaves finely. \n=> Slit the chili. \n=> Pressure cook the dal and rajmah with salt and garlic for 3 – 4 whistles. \n=> Once cooked, let it simmer on a low flame for 30 minutes or till thick and creamy. \n=> In a pan heat the ghee. Preparation Time Serves 60 minutes \n=> Add chopped ginger, chili, cinnamon, cloves and tomatoes. \n=> Cook on medium flame till the ghee separates. \n=> Add it to the dal. \n=> Add butter and serve hot. \n=> Add ½ cup cream just before serving.";

char text4 [] = "=> Soak beans overnight in 3 cups of water. \n=> Drain beans, add fresh lukewarm water. \n=> Add salt, coriander, cumin and turmeric. \n=> Pressure cook it for 4-5 whistles. \n=> Heat oil in deep saucepan. Add onion, garlic, ginger and cumin. \n=> Sauté for 10 minutes and add tomato. Cook another 5 minutes. \n=> Add black-eyed beans along with the water. Continue to simmer, uncovered, until beans are soft but not completely dissolved. \n=> Curry should be soupy";

char text5 [] = "Coarsely mash the corn seeds. \n=> Mix all the ingredents and make a soft dough, so as to make pakodas. \n=> Put spoonfuls in hot oil and deep fry till golden brown on medium flame. \n=> Serve hot with coriander chutney or tomato ketchup";


main()


{

    end: ;

    printf("\n\n");

    printf("_______________________\n");

    for (i = 0; text[i] != 0; i++)

    {

        printf("%c", text[i]);

        for (j = 0; j < 8888888; j++)

        {

        }

    }

    printf("_____________________|\n");


    char str[100];

    int ps = 0;

    printf(".......................\n");

    printf("| ENTER YOUR CHOICE   |\n");

    printf("|_____________________|\n");


    while (1)

    {printf("\n");

        gets(str);

printf("\n");


        if (strcmp(str, "achari mutton") == 0)

        {

            {

                for (i = 0; text1[i] != 0; i++)

                {

                    printf("%c", text1[i]);

                    for (j = 0; j < 8888888; j++)

                    {

                    }

                }

            }

        }

       else if (strcmp(str, "bhatura") == 0)

        {

            {

                for (i = 0; text2[i] != 0; i++)

                {

                    printf("%c", text2[i]);

                    for (j = 0; j < 8888888; j++)

                    {

                    }

                }


                     }             }

           else if (strcmp(str, "black dal") == 0)

            {

                {

                    for (i = 0; text3[i] != 0; i++)

                    {

                        printf("%c", text3[i]);

                        for (j = 0; j < 8888888; j++)

                        {

                        }

                    }

                }

            }

           else if (strcmp(str, "black eyes beans") == 0)

            {

                {

                    for (i = 0; text4[i] != 0; i++)

                    {

                        printf("%c", text4[i]);

                        for (j = 0; j < 8888888; j++)

                        {

                        }

                    }

                }

            }

           else if (strcmp(str, "corn pakoda") == 0)

            {

                for (i = 0; text5[i] != 0; i++)

                {

                    printf("%c", text5[i]);

                    for (j = 0; j < 8888888; j++)

                    {

                    }

                }

            }


            else printf(" PLEASE ENTER WORD TO WORD TEXT FROM MAIN MENU");

            printf("\n.......................................................................\n");

            Beep(500,1500);

            goto end;

        }

    }


Comments

Popular posts from this blog

C Pogram to play Sa-re-ga......sa wihout break (Program 25)

Program to find largest of 3 numbers in C language (Program 08)