Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Revenue Calculation | Section
Practice
Projects
Quizzes & Challenges
Questionários
Challenges
/
Essential R Programming for Absolute Beginners - 1768563985826

bookChallenge: Revenue Calculation

Tarefa

Swipe to start coding

Use variables to calculate projected revenue from a deposit with compound interest:

  1. With the variables initial_money, interest_rate, and n_years, compute the value of the deposit after 4 years and store it in a variable named revenue;
  2. 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?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 9
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

close

bookChallenge: Revenue Calculation

Deslize para mostrar o menu

Tarefa

Swipe to start coding

Use variables to calculate projected revenue from a deposit with compound interest:

  1. With the variables initial_money, interest_rate, and n_years, compute the value of the deposit after 4 years and store it in a variable named revenue;
  2. Print the result in the format:
    Accrued amount: number
    

The formula for revenue is:

initial_money * (1 + interest_rate / 100) ^ n_years

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 9
single

single

some-alt