+ 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

5th Sep 2025, 4:45 AM
Andrea Riveros
Andrea Riveros - avatar
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".
5th Sep 2025, 6:56 AM
Lisa
Lisa - avatar
+ 3
show your code
5th Sep 2025, 6:18 AM
Lisa
Lisa - avatar
+ 2
show your code give a complete task description tag the relevant programming language
5th Sep 2025, 6:11 AM
Lisa
Lisa - avatar
+ 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.
5th Sep 2025, 9:58 PM
Lisa
Lisa - avatar
+ 1
Python programming language, Working with data
5th Sep 2025, 6:14 AM
Andrea Riveros
Andrea Riveros - avatar
+ 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)
5th Sep 2025, 6:34 AM
Andrea Riveros
Andrea Riveros - avatar
+ 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.
5th Sep 2025, 12:26 PM
Bob_Li
Bob_Li - avatar
+ 1
I did it! You were right, thank you!
6th Sep 2025, 4:15 AM
Andrea Riveros
Andrea Riveros - avatar
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
5th Sep 2025, 9:02 PM
Andrea Riveros
Andrea Riveros - avatar