2 Code formatting
source | link
using System;
using System.Text;

namespace Greetings
{
    class Program
    {
        static string[] ingredients = {" vegetable oil "," eggs "," boiling water "," vanilla "," cocoa powder "," flour "," sugar "," baking soda "," salt " };
        static string[] measures = { " tablespoons", " dashes", " heaped tablespoons", "", " pinches" };
        static int[] amounts = {154,32,157,127,110,145,164,141,154};
        static int[] units = {0,3,0,1,2,2,2,4,4};
        static int[] steps = { 4, 7, 0, 8, 2, 1, 3, 5, 0, 6 };

        static void Main(string[] args)
        {
            StringBuilder sb = new StringBuilder("Fudge Brownies.\n\nThis recipe makes an absurd amount of brownies for one person.\n");
            sb.Append("\nPre-heat oven to 175 degrees Celsius.\n\nIngredients.\n");

            for (int i = 0; i < ingredients.Length; i++)
            {
                sb.Append(amounts[i]);
                sb.Append(measures[units[i]]);
                sb.Append(ingredients[i]);
                sb.Append("\n");
            }

            sb.Append("\nMethod.\n");

            for (int i = 0; i < steps.Length; i++)
            {
                sb.Append("Put");
                sb.Append(ingredients[steps[i]]);
                sb.Append("into the mixing bowl.\n");
            }

            sb.Append("Liquefy contents of the mixing bowl.\nPour contents of the mixing bowl into the baking dish.\n");
            sb.Append("\nCooking time: time 40 minutes.\n\nServes 1.");
            Console.WriteLine(sb);
        }
    }
}
using System;
using System.Text;

namespace Greetings
{
    class Program
    {
        static string[] ingredients = {" vegetable oil "," eggs "," boiling water "," vanilla "," cocoa powder "," flour "," sugar "," baking soda "," salt "};
        static string[] measures = {" tablespoons"," dashes"," heaped tablespoons",""," pinches"};
        static int[] amounts = {154,32,157,127,110,145,164,141,154};
        static int[] units = {0,3,0,1,2,2,2,4,4};
        static int[] steps = {4,7,0,8,2,1,3,5,0,6};

        static void Main(string[] args)
        {
            StringBuilder sb = new StringBuilder("Fudge Brownies.\n\nThis recipe makes an absurd amount of brownies for one person.\n");
            sb.Append("\nPre-heat oven to 175 degrees Celsius.\n\nIngredients.\n");

            for (int i = 0; i < ingredients.Length; i++)
            {
                sb.Append(amounts[i]);
                sb.Append(measures[units[i]]);
                sb.Append(ingredients[i]);
                sb.Append("\n");
            }

            sb.Append("\nMethod.\n");

            for (int i = 0; i < steps.Length; i++)
            {
                sb.Append("Put");
                sb.Append(ingredients[steps[i]]);
                sb.Append("into the mixing bowl.\n");
            }

            sb.Append("Liquefy contents of the mixing bowl.\nPour contents of the mixing bowl into the baking dish.\n");
            sb.Append("\nCooking time: time 40 minutes.\n\nServes 1.");
            Console.WriteLine(sb);
        }
    }
}
using System;
using System.Text;

namespace Greetings
{
    class Program
    {
        static string[] ingredients = {" vegetable oil "," eggs "," boiling water "," vanilla "," cocoa powder "," flour "," sugar "," baking soda "," salt " };
        static string[] measures = { " tablespoons", " dashes", " heaped tablespoons", "", " pinches" };
        static int[] amounts = {154,32,157,127,110,145,164,141,154};
        static int[] units = {0,3,0,1,2,2,2,4,4};
        static int[] steps = { 4, 7, 0, 8, 2, 1, 3, 5, 0, 6 };

        static void Main(string[] args)
        {
            StringBuilder sb = new StringBuilder("Fudge Brownies.\n\nThis recipe makes an absurd amount of brownies for one person.\n");
            sb.Append("\nPre-heat oven to 175 degrees Celsius.\n\nIngredients.\n");

            for (int i = 0; i < ingredients.Length; i++)
            {
                sb.Append(amounts[i]);
                sb.Append(measures[units[i]]);
                sb.Append(ingredients[i]);
                sb.Append("\n");
            }

            sb.Append("\nMethod.\n");

            for (int i = 0; i < steps.Length; i++)
            {
                sb.Append("Put");
                sb.Append(ingredients[steps[i]]);
                sb.Append("into the mixing bowl.\n");
            }

            sb.Append("Liquefy contents of the mixing bowl.\nPour contents of the mixing bowl into the baking dish.\n");
            sb.Append("\nCooking time: time 40 minutes.\n\nServes 1.");
            Console.WriteLine(sb);
        }
    }
}
using System;
using System.Text;

namespace Greetings
{
    class Program
    {
        static string[] ingredients = {" vegetable oil "," eggs "," boiling water "," vanilla "," cocoa powder "," flour "," sugar "," baking soda "," salt "};
        static string[] measures = {" tablespoons"," dashes"," heaped tablespoons",""," pinches"};
        static int[] amounts = {154,32,157,127,110,145,164,141,154};
        static int[] units = {0,3,0,1,2,2,2,4,4};
        static int[] steps = {4,7,0,8,2,1,3,5,0,6};

        static void Main(string[] args)
        {
            StringBuilder sb = new StringBuilder("Fudge Brownies.\n\nThis recipe makes an absurd amount of brownies for one person.\n");
            sb.Append("\nPre-heat oven to 175 degrees Celsius.\n\nIngredients.\n");

            for (int i = 0; i < ingredients.Length; i++)
            {
                sb.Append(amounts[i]);
                sb.Append(measures[units[i]]);
                sb.Append(ingredients[i]);
                sb.Append("\n");
            }

            sb.Append("\nMethod.\n");

            for (int i = 0; i < steps.Length; i++)
            {
                sb.Append("Put");
                sb.Append(ingredients[steps[i]]);
                sb.Append("into the mixing bowl.\n");
            }

            sb.Append("Liquefy contents of the mixing bowl.\nPour contents of the mixing bowl into the baking dish.\n");
            sb.Append("\nCooking time: time 40 minutes.\n\nServes 1.");
            Console.WriteLine(sb);
        }
    }
}
1
source | link

C# -> Chef -> German\Brownies

using System;
using System.Text;

namespace Greetings
{
    class Program
    {
        static string[] ingredients = {" vegetable oil "," eggs "," boiling water "," vanilla "," cocoa powder "," flour "," sugar "," baking soda "," salt " };
        static string[] measures = { " tablespoons", " dashes", " heaped tablespoons", "", " pinches" };
        static int[] amounts = {154,32,157,127,110,145,164,141,154};
        static int[] units = {0,3,0,1,2,2,2,4,4};
        static int[] steps = { 4, 7, 0, 8, 2, 1, 3, 5, 0, 6 };

        static void Main(string[] args)
        {
            StringBuilder sb = new StringBuilder("Fudge Brownies.\n\nThis recipe makes an absurd amount of brownies for one person.\n");
            sb.Append("\nPre-heat oven to 175 degrees Celsius.\n\nIngredients.\n");

            for (int i = 0; i < ingredients.Length; i++)
            {
                sb.Append(amounts[i]);
                sb.Append(measures[units[i]]);
                sb.Append(ingredients[i]);
                sb.Append("\n");
            }

            sb.Append("\nMethod.\n");

            for (int i = 0; i < steps.Length; i++)
            {
                sb.Append("Put");
                sb.Append(ingredients[steps[i]]);
                sb.Append("into the mixing bowl.\n");
            }

            sb.Append("Liquefy contents of the mixing bowl.\nPour contents of the mixing bowl into the baking dish.\n");
            sb.Append("\nCooking time: time 40 minutes.\n\nServes 1.");
            Console.WriteLine(sb);
        }
    }
}

The C# code above outputs the Chef code below (which is also a pretty tasty brownie recipe).

Fudge Brownies.

This recipe makes an absurd amount of brownies for one person.

Pre-heat oven to 175 degrees Celsius.

Ingredients.
154 tablespoons vegetable oil
32 eggs
157 tablespoons boiling water
127 dashes vanilla
110 heaped tablespoons cocoa powder
145 heaped tablespoons flour
164 heaped tablespoons sugar
141 pinches baking soda
154 pinches salt

Method.
Put cocoa powder into the mixing bowl.
Put baking soda into the mixing bowl.
Put vegetable oil into the mixing bowl.
Put salt into the mixing bowl.
Put boiling water into the mixing bowl.
Put eggs into the mixing bowl.
Put vanilla into the mixing bowl.
Put flour into the mixing bowl.
Put vegetable oil into the mixing bowl.
Put sugar into the mixing bowl.
Liquefy contents of the mixing bowl.
Pour contents of the mixing bowl into the baking dish.

Cooking time: time 40 minutes.

Serves 1.

The hardest part was doing the unit conversions on the recipe, and it really does make an absurd amount of brownies, even for a whole bunch of people. When run through a Chef interpreter, it outputs:

Hallo Welt

Or, "Hello World" in German. I'm not sure if "brownies" technically constitutes a language. If it does, it probably isn't Turing complete.