Challenge: Revenue Calculation
Compito
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
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 1. Capitolo 9
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
Fantastico!
Completion tasso migliorato a 2.27
Challenge: Revenue Calculation
Scorri per mostrare il menu
Compito
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
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 1. Capitolo 9
single