Challenge: Revenue Calculation
Aufgabe
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
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 9
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Großartig!
Completion Rate verbessert auf 2.27
Challenge: Revenue Calculation
Swipe um das Menü anzuzeigen
Aufgabe
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
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 9
single