Question: Exercise 2 : Identify & Fix the Error Analyze the code to your left. It contains three errors. Identify this type of error and fix

Exercise 2: Identify & Fix the Error
Analyze the code to your left. It contains three errors. Identify this type of error and fix the code. When running correctly, the program will determine the rate at which the user wants to save money. It will then calculate the amount meant for savings and what money is left over. If the user enters 200 for income and amount as a little, the program should print:
Savings Rate: 0.2
Amount Saved: $ 40.0
Left over: $ 160.0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!