Answered step by step
Verified Expert Solution
Link Copied!

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

CST1101-EXAM-2
00- Energy Drink Consumption
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
Agproxinate Num Or Customers Who Purchased 1 or More Energy Drinks Per Week Is: 1745.38
Approximate Num Or Customes Who Preler Citus Favored Energy Driks is: 1117 Mas2
01- 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 a(n) ANIMAL named PETNAME They
both lived happily ever after!
There once was a person named Goku who lived in Brooklyn. At the age of 100, Goku went to college at City Tech. Goku graduated and went to work as a Dragon Ball Z fighter. Then, Goku adopted a (n) dog named Vegete. They both lived happily ever after?
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

Students also viewed these Databases questions

Question

Summarize the economic impact of safety.

Answered: 1 week ago

Question

How is the NDAA used to shape defense policies indirectly?

Answered: 1 week ago

Question

2. What are the different types of networks?

Answered: 1 week ago