Write a C++ program that computes the total anticipated future value of the investment at the end of the years allotted.

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Write a C++ program that computes the total anticipated future value of the investment at the end of the years allotted.

Post by answerhappygod »

Write a C++ program that computes the total anticipated futurevalue of the investment at the end of the years allotted. thefuture amount may be computed using the formula shown below.
The program prompts the user to enter :
Your program computes and displays the future value of theinvestment. Once you finished writing your program, compile and runthe program.
Here is an example run of the program:
Welcome to the investment helper! Enter principle amount of yourinvestment : $ 2500 Enter the interest rate: 6.5 Enter the numberof times interest is compounded per year: 12 Enter the number ofyears of this investment: 10 Your investment of $2500 will growinto $4780.44 at the end of 10 years.
Here is another example run of the program:
Welcome to the investment helper! Enter principle amount of yourinvestment : $ 3000 Enter the interest rate: 4.5 Enter the numberof times interest is compounded per year: 12 Enter the number ofyears of this investment: 20 Your investment of $3000 will growinto $7366.34 at the end of 20 years.
Submit the program:
1 #include <iostream>2 using namespace std;
3
4 int main() {
56 }
Documentation Comments have been added to each group oflogically related statements, including each:
• Decision statement
• Loop statement
• Group of logically related statement
• User defined function
Style Variable:
• Meaningful names are used unless specified by the programdescription
• Variable naming convention is followed
• No global variable is used
Constants:
• Defined when appropriate
• Defined in the global declaration section
• Constant naming convention is followed
User defined functions:
• Defined when appropriate
• No function should have more than 25 lines of code (excludewhite lines and lines only containing curly brackets)
• Function naming convention is followed Proper Indentation isused to make the program easier to read.
• All the decision statements are indented properly.
• All the loop statements are indented properly
Body of the functions are indented Blank lines are used in frontof each block of logically related statements
Blank lines are used in front of each block of logically relatedstatements
Correctness Program solves the assigned problem using methodsdescribed in program description.
Program compiles without errors.
Program executes without crashing.
Program produces the correct output when tested using differentuser input.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply