Skip to content

Need help #443

@claritzpatricia

Description

@claritzpatricia

I don’t know how to fix this coding issue for a continuous compound interest problem:

// Coded by Claritz Marte

$P = rand(1000,5000)
$r = rand(2,6)
$t = rand(1,5)

$A = $P * exp(($r/100) * $t)
$A = round($A + 1e-9, 2)

$answer = $A

$pick = rand(0,19)
$team=array("Nasir","Caleb","Amara","Mariela","Nuzrat","Wendy","Katerin","Palestina","Kaylee","Emily","Amayalee","Nina","Ilainy","Shirly","Madison","Kareline","Kimberly","Ashley","Sadmani","Aziza")
$name = $team[$pick]

Text:
$name invests $$P at an annual interest rate of $r% continuously compounded. How much money will $name have after $t years?

Round to the nearest 2 decimals

Answer: $$answerbox

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions