際際滷
Submit Search
De thic++ --th
Download as DOC, PDF
0 likes
153 views
H畛 L畛i
Follow
1 of 2
Download now
Download to read offline
More Related Content
De thic++ --th
1.
Question 1 (10
marks) Hi畛n th畛 mn h狸nh theo m担 t畉 d動畛i 但y: 7 marks * * Please select the number for appropriate tasks * * 1. Quit program * * 2. Question 2 * * 3. Question 3 * * Khi nh畉n ph鱈m s畛, c担ng vi畛c t動董ng 畛ng s畉 動畛c th畛c thi, theo y棚u c畉u sau: Ph鱈m s畛 1: tho叩t ch動董ng tr狸nh 1 marks Ph鱈m s畛 2: th畛c thi Question 2 1 marks Ph鱈m s畛 3: th畛c thi Question 3 1 marks Question 2 (15 marks) Nh畉p vo 3 gi叩 tr畛 : 揃 S畛 ti畛n v畛n ban 畉u (Capital, l s畛 float, d動董ng). 揃 T畛 l畛 l達i su畉t t鱈nh theo ph畉n trm (Interest_rate, l s畛 float) 揃 S畛 nm c畉n t鱈nh (Years, s畛 nguy棚n d動董ng). a. T鱈nh to叩n gi叩 tr畛 t畛ng ti畛n v畛i l達i k辿p c畛ng th棚m theo th畛i gian 達 cho, trong 坦: L達i su畉t t畛ng nm 動畛c t鱈nh theo c担ng th畛c : interest = capital * interest_rate / 100; V 動畛c c畛ng th棚m vo v畛n theo c担ng th畛c : capital += interest; b. H達y in k畉t qu畉 t畛ng nm, tr狸nh by theo d畉ng b畉ng nh動 trong v鱈 d畛 sau: (Gi畉 s畛 v畛n ban 畉u: 30000.00 l達i su畉t 12.5 %, th畛i gian 10 nm) Year Interest Sum ----+---------+--------- 1 3750.00 33750.00 2 4218.75 37968.75 3 4746.09 42714.84 4 5339.35 48054.19 5 6006.77 54060.96
2.
6 6757.62 60818.58 7
7602.32 68420.90 8 8552.61 76973.51
Download