Question
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
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