Hello, I have a Python Practical coming up this week and the
following was supplied as an example to practice for it. Can you
please create the program and append useful comments to your lines
of code, explaining what they do. Thank you very much.
Loan Calculator A bank offers loans at Simple Interest (for needy customers) and at Compound Interest (for commercial customers). If P is the Principal borrowed at an annual interest rate of R% for N years, then Amount A due at Simple Interest is A = P (1 + RN), and Amount A due at Compound Interest is A = P (1 + R)^N Design a Loan Calculator to determine the amount A due either at Simple or Compound Interest, after the input of the Principal, P, the Annual Interest Rate, R %, and the Number of Years, N. Incorporate suitable input prompts to choose between the Simple Interest and Compound Interest options. Design your Python program so that it is modular by using functions. Ensure that you have your name and the date at the top and that you add comments to key parts of your program. Marking Scheme: Student name and date at the top Good interface (clear layout, clear prompts) Variables well named Comments added Functionality (all calculations performed correctly) Input validation Code efficiency (good code structure, no unnecessary code) Program allows user to repeat another calculation 1 1 1 1 7 3 3 3 20 Total
Hello, I have a Python Practical coming up this week and the following was supplied as an example to practice for it. Ca
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Hello, I have a Python Practical coming up this week and the following was supplied as an example to practice for it. Ca
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!