Question: c++ answer please Write a program that computes and display final assets with interest using given formula: Final assets = Start capital x (1.0+ rate
c++ answer please
Write a program that computes and display final assets with interest using given formula: Final assets = Start capital x (1.0+ rate / 100) run time Steps: (a) The program should contains TWO (2) functions: Function assets () has three arguments, which are the start capital, rate and run time. The function returns the formula to calculate the final assets. Function display() contains three by-reference arguments which are the final assets, name and ID. This function is to display the final assets, name and ID (b) Produce the function signatures. (c) In the main function, prompt user for start capital, rate and run time. (d) Call function assets () followed by function display() with appropriate arguments. (e) Display final assets in two decimal points. Sample output: Please enter start capital:23.4 Please enter rate: 43.2 Please enter runtime: 10 Please enter name:Eliza Please enter id: G2002 Name: Eliza id: G2002 Final Assets is: 848.49
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
