Answered step by step
Verified Expert Solution
Link Copied!

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:

image text in transcribed

image text in transcribed

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 cin

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions

Question

What were the issues and solutions proposed by each team?

Answered: 1 week ago

Question

3. Who would the members be?

Answered: 1 week ago