Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A cookie recipe calls for the following ingredients 1.5 cups of granulated sugar 1 cup of butter or margarine 2.75 cups of flour The recipe

image text in transcribed
A cookie recipe calls for the following ingredients 1.5 cups of granulated sugar 1 cup of butter or margarine 2.75 cups of flour The recipe produces 48 cookies with this amount of ingredients. Write a C++ program that will prompt the user for the number of cookies he or she wishes to make and then determines and displays the number of cups of each ingredient that should be used to bake the specified number of cookies. Your program should include the following documentation, at a minimum A brief description of the program Your name as the programmer The date of last update Also include any other comments that you feel are appropriate The purpose of this project is to make sure you know how to enter, compile, and execute a C++ program. The required details have been / will be discussed and demonstrated in class. You may use the sample program discussed in class as a model for your program If you have not already done so, download and install the most recent version of either the Code::Blocks IDE (Integrated Development Environment) or the Bloodshed/Orwell Dev-C++ IDE Attempt to follow the steps of the Software Development Life Cycle as your create and test your program. Please save your source code file with the name recipe. cpp After creating the source code file, build (compile and link) your program to create an executable (.EXE) file. Make sure this file is stored along with your source code file (this should be done automatically). Test the program thoroughly. Please let me know if you receive compiler or linker errors you don't know how to resolve; but check your notes, the textbook, and perhaps the internet for answers first. Use 48 as the input for one of your tests. For another test, use 80 as the input. The output for this test should be: For 80 cookies, you need to use: 2.50000 cups of granulated sugar 1.66667 cup of butter or margarine 4.58333 cups of flour Turn in your project by sending the source code file via Blackboard Course Messages. Please send the .cpp file only (NOT the .exe file) Note: You must discuss each submitted project with me, in my office, in order to receive a grade for the project. This holds for all projects during the semester

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

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books

Students also viewed these Databases questions