You can open any file in the project explorer by double clicking on it. Or create a new PyDev module i.e. File > New > PyDev Module. Notice the syntax highlighting. Different kinds of elements in the Python source are rendered in unique colors. Examples of Python source elements that are rendered differently are:
Multiple lines '''...''' comments
inline # comments
Keywords and String
In the Package Explorer view, find tester and double-click it to open it in the editor.
Select the programe which will make use of arguments as input i.e quadratic.py, select Run Configuration... under Run Menu
As an example, consider a $300 loan at 12% annual (i.e., 1% monthly) interest, which is being paid off at $100 per month.
After the first month, the balance is $200, but after interest, it increases to $202.
After the second month, the balance is $102, but after interest, it increases to $103.02.
After the third month, the balance is 3.02, which after interest increases to $3.05.
The remainder is paid off in the fourth month.
Write a Python program that prompts for the three parameters and conveys this information in a nice table. You can assume the loan will be paid off in less than five months. For example:
The loan amount is : 300 The annual interest rate is: 12 The monthly payment is: 100 Starting Middle Ending Month Balance Payment Balance Interest Balance ------------------------------------------------------- 1. 300.00 100.00 200.00 2.00 202.00 2. 202.00 100.00 102.00 1.02 103.02 3. 103.02 100.00 3.02 0.03 3.05 4. 3.05 3.05 0.00 0.00 0.00Run your program with the following 3 sets of sample data:
1)300 12 100
2)1000 15 350
3)12345 33.25 3888.88
Example input: Fred Chan_213 Yuen Long Avenue_D_41.03 Sue Wong_9102 Kowloon Circle_D_10.00 Fred Chan_213 Yuen Long Avenue_C_0.01 Baba Li_2000 E. 21st Street_D_450.00 Sue Wong_9102 Kowloon Circle_C_5.50 Jay Law_9103 Problem Area_C_25.00 Fred Chan_213 Yuen Long Avenue_C_41.02 Example output: Name Address Balance ---- ------- ------ Baba Li 2000 E. 21st Street 450.00 Jay Law 9103 Problem Area -25.00 Sue Wong 9102 Kowloon Circle 4.50
| Name | Address | Balance |
|---|---|---|
| Baba Li | 2000 E. 21st Street | 450.00 |
| Jay Law | 9103 Problem Area | -25.00 |
| Sue Wong | 9102 Kowloon Circle | 4.50 |