Question: PLEASE SOLVE THEM IN C++ USING CODEBLOCKS OR ANY PROGRAM. 6. Total Calories In most countries, it is compulsory to display the total calories on

 PLEASE SOLVE THEM IN C++ USING CODEBLOCKS OR ANY PROGRAM. 6.

PLEASE SOLVE THEM IN C++ USING CODEBLOCKS OR ANY PROGRAM.

6. Total Calories In most countries, it is compulsory to display the total calories on the label of prepack- aged food. For strawberry jam this is very easy, because there are only three ingredients: strawberries, sugar, and lemon juice, and for every 100 g strawberries, there is 100 g of sugar and 5 g of lemon juice. Write a program that defines the following variables: strawberrieskcal This variable will hold the number of kilocalories per 100 of strawberries. Initialize the variable to 36. sugarKcal This variable will hold the number of kilocalories per 100 g of sugar. Initialize the variable to 40. lemonKcal This variable will hold the number of kilocalories per 100 g of lemon juice. Initialize the variable to 32. The program should calculate the total amount of jam produced by starting out with 400 g of strawberries. It should also calculate the total kilocalories present in this amount of jam. Display the total amount of jam and the total kilocalories on the screen

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!