You are on page 1of 1

QUIZ # 3

ENGR 1412 SEC 002 FALL 2011


50 PTS, 15 MINS
Name: _______________________________________
FEATURES POINTS GRADE
1. GPP 10
2. Array, Variable Use, Excel I/O 10
3. For Loop 10
4. External File I/O 10
5. Program works and Command Button 10
Total 50

Future value is the value of an asset or cash at a specified date in the future that is equivalent in
value to a specified sum today. It can be calculated by following formula


Where F= Future Value, P= Principal amount, i= Simple interest rate per year, n= Number of
years
Write a VBA program to determine future value of a list of principal amounts after a specified
period of time.
STEPS:
1. Create an excel spreadsheet that contains interest rate, number of years and principals.


2. Use sub program, for loop and above formula to calculate the future value after specified
period of time.
3. Print the result onto Excel and also on an external text file as shown
4. Create a command button to run the Sub-program
NOTES:
You may use MS-Excel and/or VBA Help files during the quiz (always)
Be sure to include Header/Comment information in your program
Use good programming practice (GPP) in your finished program.
REMEMBER - DO ONE THING AT A TIME.

You might also like