Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CST 1 1 0 1 - EXAM - 2 0 0 - Energy Drink Consumption A soft drink company recently surveyed 1 2 , 4
CSTEXAM
Energy Drink Consumption
A soft drink company recently surveyed of its customers and found that approximately percent of those surveyed purchase one or more energy drinks per week. Of those customers who purchase energy drinks, approximately 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
Agproxinate Num Or Customers Who Purchased or More Energy Drinks Per Week Is:
Approximate Num Or Customes Who Preler Citus Favored Energy Driks is: Mas
Word Game
Write a program that plays a word game with the user. The program should ask the
user to enter the following:
His or her name His or her age The name of a city The name of a college
A profession A type of animal A pet's name
After the user has entered these items, the program should display the following story, inserting the user's input into the appropriate locations:
There once was a person named NAME who lived in CITY. At the age of
AGE, NAME went to college at COLLEGE. NAME graduated and went to work
as a PROFESSION. Then, NAME adopted an ANIMAL named PETNAME They
both lived happily ever after!
There once was a person named Goku who lived in Brooklyn. At the age of Goku went to college at City Tech. Goku graduated and went to work as a Dragon Ball Z fighter. Then, Goku adopted a dog named Vegete. They both lived happily ever after?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started