Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Revenue Calculation | Section
Essential R Programming for Absolute Beginners - 1768563985826

bookChallenge: Revenue Calculation

Tâche

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

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 9
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

close

bookChallenge: Revenue Calculation

Glissez pour afficher le menu

Tâche

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

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 9
single

single

some-alt