Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribedimage text in transcribed

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
Certificate Value Egyptian Pounds
Yearly Interest Rate % (percent)
Certificate Maturity Years

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions

Question

Question What integration level should an employer choose?

Answered: 1 week ago