Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Scenario : You work for the advertising department of a company that sells condiments. Unfortunately, all of the market research explaining which people should be

Scenario: You work for the advertising department of a company that sells condiments. Unfortunately, all of the market research explaining which people should be shown which condiments in their ads has been lost in a sharknado. (It was terrifying, by the way.) The programmers are out sick (someone brought a bad spinach dip to Billys going-away party) and your boss needs some mustard and ketchup ads to get posted immediately. Your boss doesnt really care about who sees which condiment, only that roughly the same amount of people see each condiment.

Since you know a little Python, you figure that youre up for the task. Your boss wants to see how good you are at crafting advertisement text, so youll need to write one ketchup ad and one mustard ad.

Task: Write a function that prints your ad text numAds times. Because you need to show the mustard and ketchup ads roughly the same number of times, you should alternate the printing of the ads, starting with the ketchup ad. The only requirement on the ad text is that the ketchup ad must start with

"Ketchup Ad: "

followed by your ketchup ad text and the mustard ad must start with

"Mustard Ad: "

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_2

Step: 3

blur-text-image_3

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

Transactions On Large Scale Data And Knowledge Centered Systems Iv Special Issue On Database Systems For Biomedical Applications Lncs 6990

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Christian Bohm ,Johann Eder ,Claudia Plant

2011th Edition

3642237398, 978-3642237393

More Books

Students also viewed these Databases questions

Question

Presentation Aids Practicing Your Speech?

Answered: 1 week ago