Mar 10 2012

chicken parmigiana in pseudo-code format

Luthi

During my first class (C++ 1), I made a recipe book for a coder who is a disaster in the kitchen. It was his birthday and I wanted to do something cheeky. I thought it was quite nice and clever at the time.

I got the idea when the professor was explaining things based on recipes. Ingredients go first (variables and function prototypes) and then the instructions. That comment stuck with me.

I could have written it more accurate in the code part, but it was more of a cheeky and silly project. As in the instructions could have been the actual functions instead of the prototype + comments, but I wanted to keep it simple and under a page long.

//Chicken Parmigiana
 
int main()
{
	int eggs (2);
	int chicken (1), shredded_mozzarella (1), marinara (1), 
        grated_parmesan (1); //packages
	int dry_bread_crumbs;
	int crisco;
 
	void prep(int crisco);
	//preheat oven to 350 degrees
	//lightly grease baking sheet
 
	void chicken_prep(int& chicken, int eggs, 
        int dry_bread_crumbs);
	//cut chicken into smaller strips
	//place eggs into a bowl
	//put bread crumbs into another bowl
	//dip chicken into egg, then crumbs, and put on baking sheet
	//bake 40 mins.
 
	void combine(int& chicken, int sauce, int shredded_mozzarella,
        int grated_parmesan);
	//pour 1/2 the sauce into a baking dish
	//place chicken over sauce
	//cover with sauce
	//sprinkle with cheese
 
	void cook(int& chicken);
	//start pasta now
	//cook chicken for another 20mins
 
	return 0;
}