Professional Documents
Culture Documents
SOFTWARE DEVELOPMENT -
ACTIVITY 03
Content
s
Introduction......................................................................................................................................3
Design..............................................................................................................................................4
Coding..............................................................................................................................................5
Output..............................................................................................................................................6
Testing.............................................................................................................................................7
References........................................................................................................................................8
Figures
Figure 1: Successfully calculate future investment value................................................................6
Start
Month = Year x 12
Applying formula
monthRateofInterest= yearRateofInterest / 12 / 100
fValue = CalFValue (AmountInvested, monthRateofInterest, Month)
print "Accumlated Value $", fValue
calculating
Num CalFValue (num mInvestment, num monthRateofInterest, num Month)
Num fValue = 0
Num mcount=0
start while
while mcount < Month
fValue = (fValue + mInvestment) x (1 + monthRateofInterest)
mcount = mcount + 1
end while
return fValue
Hence, this produces the abstract coding problem which should be solved by doing this in IDE as
java code.
Coding
import java.text.*;
import java.util.Scanner;
System.out.println ("Please enter the year: "); // take input of the years
double futureinvestvalue=investAmo*Math.pow(1+monthlyrateinterest,yea*12);
//calculate //interest value for future
}}
Output
The output which should be displayed for successful calculation of the value of future investment
term by the given set of the equation:
2. Provide the wrong format in the year as input then, it generates the following output: -