Please help me with the app finance exercise. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please help me with the app finance exercise.

# Asks the user to enter the savings savings = input() # Convert the user input into a float value and update the variable savings = # Savings grow after 1 year at a 5% annual interest rate balance = savings * 1.05 # Convert the balance into a string and update the variable balance = # Concatenate the 2 strings to produce a message message = "Amount in 1 year: " balance # Display the message

21st Mar 2024, 7:01 PM
Aziz Mareini
Aziz Mareini - avatar
6 Answers
+ 5
Read the comments. Do what the comments say. What part is unclear to you? Describe the issue precisely.
21st Mar 2024, 7:11 PM
Lisa
Lisa - avatar
+ 2
I'm sorry but all the exercise is unclear. Maybe i will start from the beginning to get it
21st Mar 2024, 7:21 PM
Aziz Mareini
Aziz Mareini - avatar
+ 2
Aziz Mareini , By the time you get to that exercise, they've already covered conversions, concatenation, and how to print. If you don't know those things, maybe you should reread those lessons. You won't get XP for rereading lessons you've already finished, but you will get knowledge, which is way more important.
21st Mar 2024, 9:23 PM
Rain
Rain - avatar
+ 1
Azis, you exactly wrong. The requirements are already clearly stated. Just follow the steps mentioned. Btw, how do you exactly know that saving grow 5% in a year then you write the equation: saving = balance * 1.05; Also, actually in this case, no periodic saving after initial saving, so you can simplify that balance = saving itself. Then after 1 year, the nominal interest = 5% * balance itself. So balance in your account after a year period is balance = balance + 0.05*balance = (1+0.05)*balance = 1.05*balance.
23rd Mar 2024, 1:03 AM
Oliver Pasaribu
0
As addition, sometimes, there a time that not all requirements clearly stated, and it could be there are missing steps not explained. By the time, you will understand by yourself.
23rd Mar 2024, 1:05 AM
Oliver Pasaribu