You are on page 1of 3

CMPSC 11: Fundamentals of Programming

PROBLEM SET 2 (FINALS)


FIRST SEMESTER, SY 2010-2011
Problem 1. A bank wishes to develop a program that will calculate amount of money on
deposit at end of 10 years. Bank’s representative enters initial deposit amount and fixed
interest rate. Amount of money on deposit at end of each year is calculated and
displayed. Neither initial deposit amount nor interest accumulated can be withdrawn
before 10 years has elapsed.
Formula used to determine amount of money on deposit at the end of each year:
a = p(1+r)n
where:
p is original amount invested (principal)
r is annual interest rate
n is number of years
a is amount on deposit at end of nth year
A
A
 Use InputBox for deposit and interest.
 Output should be displayed in a message box as shown in .
 Display in the message box should be formatted using vbTab and vbCrLf.

Example:
msg = "Year" & vbTab & "Amount (in Php)" & vbCrLf
msg = msg & n & vbTab & Format(amount, "#####00.00") & vbCrLf
 Use For/Next statement to compute and display the amount each year.
Problem 2. Revise your program in #1 and use Do While / Loop.
Problem 3. Revise your program in #1 and use Do Until / Loop.
Problem 4. Revise
your program in #1
and use Do /
Loop Until.
What to
submit?
CMPSC 11: Fundamentals of Programming || Problem Set 2 Page 2

Sarang Ah Nae Ge Oh Gi Man Hae Lyrics

Sarang Ah Nae Ge Oh Gi Man Hae


Ashily
Para-nha-nuri nun-bushyo
Waen-ji gasumi apawa
Nado moruge nun kaye isul mae-thim-yon
Sangsangsogeso na-yege
Taga-ul komman gatun kudae-rul
Onjebuton-ga kidaryossotjyo

[Chorus]
Ajik sarangul mollaso ku-dael mollaso
Onje sarangi ulkka
Waiting for your love
Kudae chuguman do kakkayi
Ul sun omnayo
Nae saranga Baby my sweet heart

Nomuna manhun saramdul


Ottohke saranghanunji
Naman honja morugo sarannabwayo
Aju ttaduthan pogunhan
Ttae-ronun talkumhan saranguro
Hangsang chi-nha-ge nae-ge itdon kudae

[Chorus]

Saeng-gang-man hae-do nomuna


Haeng-bokhan norul bol-ttaem-yon
Haru-yedo su chonbon sarang-handan-mal
Onje ottohke sarangi
Naege uryona gidaryonnunde
Imi un-golyo ku-dae algo-buto

[Chorus]

Ku-dae-rul wihan chariga


Nae gasumsoge issoyo
Nanun kud-ael wi-hae-so tae-onan saram
Ku-dae nae-gero un-damyon hamkkehan sigan
I sun-gan boto
Kkum-chorom motjin naye saranga
Ooh naye saranga naege ogiman-hae

You might also like