Write a program: Energy drink consumption A soft drink company recently surveyed
ID: 3620410 • Letter: W
Question
Write a program: Energy drink consumptionA soft drink company recently surveyed 12467 of its customers and found that approximately 14% of those surveyed purchase one or more energy drinks per week. Of those customers who purchase energy drinks, approximately 64% of them prefer citrus flavored energy drinks. Write a program that displays the following:
The approximate number of customers in the survey who purchase one or more energy drinks per week.
The approximate number of customers in the survey who prefer citrus flavored energy drinks.
Your program output should go to the terminal screen and look like the following:
********************************************
ENERGY DRINK CONSUMPTION
********************************************
Number of people surveyed: x
Number who purchase one or more energy drinks: y
Number who prefer citrus flavored energy drinks: z
Where x, y, and z are replaces with the actual numeric values your program calculates.
Explanation / Answer
#include using namespace std; main() {int x=12467; double many=.14,citrus=.64; double y,z; y=x*many; z=x*citrus; coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.