Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program: Energy drink consumption A soft drink company recently surveyed

ID: 3620410 • Letter: W

Question

Write a program: Energy drink consumption

A 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; cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote