Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Plesse write c++ code, pseudo code and test cases: Ingredients Amounts cups sugar .5 cups dark brown sugar .75 tespoons salt 1 cups refined coconut
Plesse write c++ code, pseudo code and test cases:
Ingredients Amounts cups sugar .5 cups dark brown sugar .75 tespoons salt 1 cups refined coconut oil, melted .5 cups non-dairy milk .25 teaspoon vanilla extract 1 cups flour 1.5 teaspoon baking soda .5 oz vegan semi-sweet chocolate, chunks 4 oz vegan dark chocolate, chunks 4 minutes of confusion 30 minutes in the oven 14 minutes contemplating wheather to bake cookies 22 minutes to taste cookie dough 5 About - The file contains a list ingredients to bake vegan cookies and their amounts. The first text in the file is a string header. Each remaining text item is alternating between an ingredient and a numeric quantity of the ingredient. For example line 2 : cups sugar and line3: .5. As you work through the problem state any assumptions. File reading - read the data in. Store header in a string variable (will not be used) and rest of the data into a container of structs with ingredient and quantity required of that ingredient. Process/Calculations: - Add additional value in the struct with ingredients for double the recipe -- doubledQuantity (however, make sure you do not double the minutes) - Calculate the total time to it will take make the cookies and print out the result. Also, print out a shopping list. Creative component (if time permits) - create one cin and one cout for this problem. Make sure your code uses the cinStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started