Ask Question

You are writing a line of code that should ask the user to input the balance of their bank account in dollars and cents. The program will then perform a multiplication problem to tell the user how much interest they can earn. Identify three errors in your line of input code and explain why they are incorrect. Include the corrected line of code in your answer. Here is the code:

1num = input (What is your balance?)

+1
Answers (1)
  1. 17 April, 02:51
    0
    1. Variable names should not start with a number

    2. Opening quote missing

    3. Closing quote missing

    corrected line:

    num = input ("What is your balance?")
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “You are writing a line of code that should ask the user to input the balance of their bank account in dollars and cents. The program will ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers