Question: this is C++ the basics. thank you. Ask the user for the number of cookies per serving using the cin statement. Store this result in
this is C++ the basics. thank you. Ask the user for the number of cookies per serving using the cin statement. Store this result in a variable with an appropriate name. (2 points) Ask the user for the number of calories per serving using the cin statement. Store this result in a variable with an appropriate name. (2 points) Create an equation to divide the number of cookies per serving by the number of calories per serving. Save the result in a variable with an appropriate name. (2 points) Ask the user for the number of cookies that they ate using the cin statement. Store this result in a variable with an appropriate name. (2 points) Display the number of calories consumed using a cout statement. (2 points)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
