Challenge: Revenue Calculation
Tehtävä
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
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 9
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Mahtavaa!
Completion arvosana parantunut arvoon 2.27
Challenge: Revenue Calculation
Pyyhkäise näyttääksesi valikon
Tehtävä
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
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 9
single