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

bookChallenge: Revenue Calculation

Opgave

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

Løsning

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 9
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

close

bookChallenge: Revenue Calculation

Stryg for at vise menuen

Opgave

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

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 9
single

single

some-alt