Question: Using the pseudocode below, / / Start / / Declarations / / num amount / / num newAmount / / num interestRate / / output

Using the pseudocode below,
// 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
What C++ data type should be returned from the function/method?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!