Challenge: Revenue Calculation
Tarefa
Swipe to start coding
Use variables to calculate projected revenue from a deposit with compound interest:
- With the variables
initial_money,interest_rate, andn_years, compute the value of the deposit after 4 years and store it in a variable namedrevenue; - Print the result in the format:
Accrued amount: number
The formula for revenue is:
initial_money * (1 + interest_rate / 100) ^ n_years
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 9
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Incrível!
Completion taxa melhorada para 2.27
Challenge: Revenue Calculation
Deslize para mostrar o menu
Tarefa
Swipe to start coding
Use variables to calculate projected revenue from a deposit with compound interest:
- With the variables
initial_money,interest_rate, andn_years, compute the value of the deposit after 4 years and store it in a variable namedrevenue; - Print the result in the format:
Accrued amount: number
The formula for revenue is:
initial_money * (1 + interest_rate / 100) ^ n_years
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 9
single