Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: THEend8_
COMP 3007
Objective: Gain a greater understanding manipulating strings.
Instructions:
You will create a program that gets just the title, ingredient list, and directions from allrecipes.com
Your Choice:
You can either create this program as a text-based program or as a GUI-based program.
If you choose to do this as a text-based program do the following:
If you choose to do this as a GUI-based program do the following:
Example 1:
Robert Ball (displayed in the text-based version only)
Please enter the URL (displayed in the text-based version only.
I’m sorry, but that is not a valid allreciples.com URL. (This appears in the TextArea for the GUI version).
RUBRIC AND NEXT EXAMPLE ON NEXT PAGE.
Example 2:
Robert Ball (displayed in the text-based version only)
Please enter the URL. (displayed in the text-based version only. In the GUI version the user puts the
information into a TextField)
(the following is displayed in the TextArea in the GUI version)
Title:
Apple Pie by Grandma Ople Recipe – Allrecipes.com
Ingredients:
1 recipe pastry for a 9 inch double crust pie
1/2 cup unsalted butter
3 tablespoons all-purpose flour
1/4 cup water
1/2 cup white sugar
1/2 cup packed brown sugar
8 Granny Smith apples – peeled, cored and sliced
Directions:
Preheat oven to 425 degrees F (220 degrees C). Melt the butter in a saucepan. Stir in flour to form a paste. Add water, white sugar and brown sugar, and bring to a boil. Reduce temperature and let simmer.
Place the bottom crust in your pan. Fill with apples, mounded slightly. Cover with a lattice work crust.
Gently pour the sugar and butter liquid over the crust. Pour slowly so that it does not run off.
Bake 15 minutes in the preheated oven. Reduce the temperature to 350 degrees F (175 degrees C).
Continue baking for 35 to 45 minutes, until apples are soft.
Rubric: