TECHNOLOGICAL INSTITUTE OF THE PHILIPPINES
QUEZON CITY
COLLEGE OF COMPUTER STUDIES
ITE001- Computer Programming 1
NAME:Paolo Nicolai R. Soliman
PROGRAM/SECTION: BSIT/IT11S9
ASSESSMENT TASK: Iterative/Looping Control Structure using while, do while and for loop
The following question support the attainment of Course Intended Learning Outcomes (CILO): Design
computing-based solution using control structures, functions, array, and other statements
Create the following programs:
1] Banking Application
Let's have a banking application. Are you familiar with how the balance of a savings account is
completed as it earned interest? Write a program that outputs the interest earned and balance of a
savings account each year.
The program prompts for the following values:
initial balance 10%
interest rate on decimal
year deposited
year to be withdrawn
Example:
Input balance: 110000
Input Interest: 10
Enter Initial year: 2020
Enter Final Year: 2024
Year Interest Balance
2020 P 11,000.00 P 121,000.00
2021 12,100.00 133,100.00
2022 13,310.00 146,051.00
2023 14,641.00 161,051.00
2024 16,105.10 177,156.01
2] Output
1
12
123
1234
, ***SOURCE CODE:
While Loop:
QUEZON CITY
COLLEGE OF COMPUTER STUDIES
ITE001- Computer Programming 1
NAME:Paolo Nicolai R. Soliman
PROGRAM/SECTION: BSIT/IT11S9
ASSESSMENT TASK: Iterative/Looping Control Structure using while, do while and for loop
The following question support the attainment of Course Intended Learning Outcomes (CILO): Design
computing-based solution using control structures, functions, array, and other statements
Create the following programs:
1] Banking Application
Let's have a banking application. Are you familiar with how the balance of a savings account is
completed as it earned interest? Write a program that outputs the interest earned and balance of a
savings account each year.
The program prompts for the following values:
initial balance 10%
interest rate on decimal
year deposited
year to be withdrawn
Example:
Input balance: 110000
Input Interest: 10
Enter Initial year: 2020
Enter Final Year: 2024
Year Interest Balance
2020 P 11,000.00 P 121,000.00
2021 12,100.00 133,100.00
2022 13,310.00 146,051.00
2023 14,641.00 161,051.00
2024 16,105.10 177,156.01
2] Output
1
12
123
1234
, ***SOURCE CODE:
While Loop: