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

A soft drink company recently surveyed 12,467 of its customers and found that ap

ID: 3669744 • Letter: A

Question

A soft drink company recently surveyed 12,467 of its customers and found that approximately 14 percent of those surveyed purchase one or more energy drinks per week. Of those customers who purchase energy drinks, approximately 64 percent 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.

Submit only your .cpp file

A soft drink company recently surveyed 12,467 of its customers and found that approximately 14 percent of those surveyed purchase one or more energy drinks per week. Of those customers who purchase energy drinks, approximately 64 percent 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.

Submit only your .cpp file AS a LINK

Explanation / Answer

#include <iostream>

using namespace std;

int main(){
   float surveyed = 12467, purchPerWeek = surveyed * .14,
   prefCitrus = purchPerWeek * .64;

   cout << " Customers surveyed who purchase per week: "
       << purchPerWeek
       << " Customers surveyed that prefer citrus: "
       << prefCitrus << endl;


   return 0;
}

output

Customers surveyed who purchase per week: 1745.38                                                                                                           
Customers surveyed that prefer citrus: 1117.04                                                                                                              

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