By combining data from a marketing platform with the results from personality tests that users have completed, we know that people with more than 500 friends are likely to be extroverts, otherwise they're more likely to be an introverts. Based on analysis of user-uploaded photos using computer-vision algorithms, we also know that people who are extroverts are more likely to have many photos of dogs, and introverts are more likely to have many photos of cats. Market research has shown that dog people are highly likely to be positively influenced by advertisements for any product that includes dogs, and similar for cat people and cats.
For an already initialized Int
variable friendsCount
,
if a user has more than 500 friends, print the message "Adopt a Dog Today!" and otherwise print
"Buy Cat Food At 20% Off".
If you'd like to find out more about targeted advertising, you may find these articles interesting:
Stuck? You may find these lessons helpful: