+ 1
Somebody knows how to solve the problem finance app. Even my result is like it must be, but still I can't pass it
9 Antworten
+ 4
"input" is what the user enters, not necessarily "150".
write
saving = input()
without anything between the parentheses
use the value stored in "savings". convert "savings" to float, not "150". use the value stored in "savings" to calculate the "balance".
+ 3
show
your
code
+ 2
show your code
give a complete task description
tag the relevant programming language
+ 2
The input is what the user enters. The computer simulates a user when you submit the code.
You are not supposed to hard-code the value "150". You are supposed to make the code work for any other potentially used value.
+ 1
Python programming language, Working with data
+ 1
# Asks the user to enter the savings
savings = input(150)
# Convert the user input into a float value and update the variable
savings = float(150)
savings
# Savings grow after 1 year at a 5% annual interest rate
balance = 150.0 * 1.05
# Convert the balance into a string and update the variable
balance = str(150.0 * 1.05)
balance
# Concatenate the 2 strings to produce a message
message = ("Amount in 1 year: " + balance)
# Display the message
print(message)
+ 1
don't put i50 in input
savings = input()
savings = flloat(savings)
balance is savings multiplied by 1.05, not 150 *1.05, since savings is determined by the input.
+ 1
I did it! You were right, thank you!
0
The excersice is about to learn using input. If I don't put a number in input() the system gives me a message of error saying that the input is not provided.
Anyways, I proved my code in Python and it work, so there is something wrong in this app.
Thank you for your answers