Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A client purchased a 'long-term investment certificate from a bank. The client should receive the accumulated interest amount of the certificate after a specified number
A client purchased a 'long-term investment certificate from a bank. The client should receive the accumulated interest amount of the certificate after a specified number of years (i.e. certificate maturity). The banker inputs the purchased certificate value and its annual interest percentage, as well as the chosen certificate maturity (in the range from 5 till 15 years). The program should print a detailed statement of the accumulated interest amount to be received by the client throughout the chosen certificate maturity period, as shown below (note: calculated amounts should be printed as integers, without decimal points). The following formula is used to calculate the amounts according to the different number of years: Amount = Certificate Value x (1 + Interest Rate)year Tip: use the built-in PHP function pow(x,y) to get the power ie pow(10,5) = 105 Tip: use the built-in PHP function pow(x,y) to get the power i.e. pow(10,5) = 105 For example: Input Form x + Bank Statement COD localhost:8080/Prog 1-fin + Coloq Certificate Value 25000 Egyptian Pounds Annual Interest 15 % (percent) Certificate Maturity 10 Years Print Statement Years Amount 0 25000 1 28749 2 2 33062 3 38021 4 5 43725 50283 5 6 57826 66500 7 on 76475 9 87946 10 101138 Given: PHP Input Form (copy and paste it into your editor) Input Form
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started