Question: I am having trouble in this assignment can you all please help me out Assignment 3 (10 points): Calculating Calories Your goal is to take
I am having trouble in this assignment can you all please help me out
Assignment 3 (10 points): Calculating Calories
Your goal is to take in the number of cookies per serving, the number of calories per serving, and thenumber of cookies eaten to determine the total number of calories consumed.
Your program should have the following: 3 comment lines (description of the program, author, and date).
Ask the user for the number of cookies per serving using the cin statement. S
tore this resultin a variable with an appropriate name. (2 points)
Ask the user for the number of calories per serving using the cin statement.
Store this resultin a variable with an appropriate name. (2 points)
Create an equation to divide the number of cookies per serving by the number of caloriesper 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 thisresult 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
