Challenge: Calculate Customer Acquisition Cost
Here is the formula to calculate CAC:
Task
Your task is to calculate CAC given the values for cost of sales, cost of marketing and the number of new customers acquired.
- Create an immutable variable
costOfSales
and assign1200
to it. - Create an immutable variable
costOfMarketing
and assign2460
to it. - Create an immutable variable
newCustomersAcquired
and assign20
to it. - Create an immutable variable
customerAcquisitionCost
. - Calculate the value of
customerAcquisitionCost
using the other variables according to the formula provided above.
Main.java
123456789object Main { def main(args: Array[String]): Unit = { ___ ___ = ___ // Initialize costOfSales ___ ___ = ___ // Initialize costOfMarketing ___ ___ = ___ // Initialize newCustomersAcquired ___ ___ = ___ // Calculate customerAcquisitionCost println(customerAcquisitionCost) } }
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 2. Capítulo 7
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Suggested prompts:
Pergunte-me perguntas sobre este assunto
Resumir este capítulo
Mostrar exemplos do mundo real
Awesome!
Completion rate improved to 2.86
Challenge: Calculate Customer Acquisition Cost
Deslize para mostrar o menu
Here is the formula to calculate CAC:
Task
Your task is to calculate CAC given the values for cost of sales, cost of marketing and the number of new customers acquired.
- Create an immutable variable
costOfSales
and assign1200
to it. - Create an immutable variable
costOfMarketing
and assign2460
to it. - Create an immutable variable
newCustomersAcquired
and assign20
to it. - Create an immutable variable
customerAcquisitionCost
. - Calculate the value of
customerAcquisitionCost
using the other variables according to the formula provided above.
Main.java
123456789object Main { def main(args: Array[String]): Unit = { ___ ___ = ___ // Initialize costOfSales ___ ___ = ___ // Initialize costOfMarketing ___ ___ = ___ // Initialize newCustomersAcquired ___ ___ = ___ // Calculate customerAcquisitionCost println(customerAcquisitionCost) } }
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 2. Capítulo 7