Challenge: Revenue Calculation
Task
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
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 9
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Suggested prompts:
Can you explain this in simpler terms?
What are the main takeaways from this?
Can you give me a real-world example?
Awesome!
Completion rate improved to 2.27
Challenge: Revenue Calculation
Swipe to show menu
Task
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
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 9
single