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
costOfSalesand assign1200to it. - Create an immutable variable
costOfMarketingand assign2460to it. - Create an immutable variable
newCustomersAcquiredand assign20to it. - Create an immutable variable
customerAcquisitionCost. - Calculate the value of
customerAcquisitionCostusing 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) } }
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 2. Capitolo 7
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
Suggested prompts:
Mi faccia domande su questo argomento
Riassuma questo capitolo
Mostri esempi dal mondo reale
Fantastico!
Completion tasso migliorato a 2.86
Challenge: Calculate Customer Acquisition Cost
Scorri per mostrare il 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
costOfSalesand assign1200to it. - Create an immutable variable
costOfMarketingand assign2460to it. - Create an immutable variable
newCustomersAcquiredand assign20to it. - Create an immutable variable
customerAcquisitionCost. - Calculate the value of
customerAcquisitionCostusing 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) } }
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 2. Capitolo 7