This David Papkin page is about Introduction to Python Programming
Project
Question1a
Assumptions
Employer CPF Contribution Rate = 17%
Employee CPF Contribution Rate = 20%
CPF OA Allocation = 23%
CPF SA Allocation = 6%
CPF MA Allocation = 8%
Bank Savings Account Interest Rate = 0%
Annual Salary Increment = 0%
AWS & Bonuses not considered in calculations
User input: ———–
Enter your name: xx
Enter your starting annual salary: $30000
Enter your current savings: $20000
Enter your CPF OA amount: $50000
Enter the percentage of salary to save (%): 20
Enter the cost of your dream hdb flat: $300000
For debugging only: ——————-
Outstanding amount: $230000.00
Cash per year: $6000.00
OA per year: $6900.00
Total savings per year: $12900.00
Number of years to save: 17.83
Computed output: —————-
Number of months: 214
Question1b
Sample output
User input: ———–
Enter your name: xx
Enter your starting annual salary: $30000
Enter your current savings: $20000
Enter your CPF OA amount: $50000
Enter the percentage of salary to save (%): 20
Enter the cost of your dream hdb flat: $300000
Enter the percentage of loan you are eligible (%): 40
For debugging only: ——————-
Loan amount: $120000.00
Outstanding amount: $110000.00
Cash per year: $6000.00
OA per year: $6900.00
Total savings per year: $12900.00
Number of years to save: 8.53
Computed output: —————-
Number of months: 102
Visual Studio Code
Useful Links
Python Standard Library
https://docs.python.org/3/library/
Third Party Packages
End of David Papkin page about Introduction to Python Programming