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
6 Antworten
+ 5
Read the comments. Do what the comments say.
What part is unclear to you? Describe the issue precisely.
+ 4
Aziz Mareini please use the search bar before asking as this question has been asked and answered several times.
savings = input()
#change savings from a string to a float
savings = float(savings) ....
balance = ....
balance = str(balance) ....
https://www.sololearn.com/discuss/3227921/?ref=app
https://www.sololearn.com/discuss/3245329/?ref=app
https://www.sololearn.com/discuss/3237648/?ref=app
https://www.sololearn.com/discuss/3215123/?ref=app
https://www.sololearn.com/discuss/3241155/?ref=app
https://www.sololearn.com/discuss/3228629/?ref=app
https://www.sololearn.com/discuss/3240676/?ref=app
https://www.sololearn.com/discuss/3250955/?ref=app
https://www.sololearn.com/discuss/3228700/?ref=app
https://www.sololearn.com/discuss/3232028/?ref=app
+ 2
I'm sorry but all the exercise is unclear. Maybe i will start from the beginning to get it
+ 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.
+ 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.
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.