Question: I need to know how to input the following code into the complier for C++ code. It is for Chapter 9 in the PLD book
I need to know how to input the following code into the complier for C++ code. It is for Chapter 9 in the PLD book question #3.
// Start
// Declarations
// num amount
// num newAmount
// num interestRate
// output "Please enter the dollar amount. "
// input amount
// output "Please enter the interest rate(e.g., nine percet should be entered as 9.0). "
// input interestRate
// newAmount = FutureValue(amount,interestRate)
// output "The new dollar amount is ", newAmount
// Stop
//
//
//
// num FutureValue(num initialAmount, num interestRate)
// Declarations
// num finalAmount
// finalAmount = (1 + interestRate/100) * initialAmount
// return finalAmount
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
