Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgContentJComments has a deprecated constructor in /var/www/astarmathsandphysics/plugins/content/jcomments/jcomments.php on line 25 Call Stack: 0.0001 360656 1. {main}() /var/www/astarmathsandphysics/index.php:0 0.0709 1209256 2. Joomla\CMS\Application\SiteApplication->execute() /var/www/astarmathsandphysics/index.php:49 0.0709 1209256 3. Joomla\CMS\Application\SiteApplication->doExecute() /var/www/astarmathsandphysics/libraries/src/Application/CMSApplication.php:267 0.2975 4124160 4. Joomla\CMS\Application\SiteApplication->dispatch() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:233 0.2988 4151664 5. Joomla\CMS\Component\ComponentHelper::renderComponent() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:194 0.2996 4169376 6. Joomla\CMS\Component\ComponentHelper::executeComponent() /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:356 0.2997 4199896 7. require_once('/var/www/astarmathsandphysics/components/com_content/content.php') /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:381 0.3008 4222616 8. ContentController->execute() /var/www/astarmathsandphysics/components/com_content/content.php:42 0.3008 4222616 9. ContentController->display() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:710 0.3462 4900272 10. ContentController->display() /var/www/astarmathsandphysics/components/com_content/controller.php:113 0.3498 5092424 11. Joomla\CMS\Cache\Controller\ViewController->get() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:663 0.3504 5113352 12. ContentViewArticle->display() /var/www/astarmathsandphysics/libraries/src/Cache/Controller/ViewController.php:102 0.3611 5310096 13. Joomla\CMS\Plugin\PluginHelper::importPlugin() /var/www/astarmathsandphysics/components/com_content/views/article/view.html.php:189 0.3611 5310352 14. Joomla\CMS\Plugin\PluginHelper::import() /var/www/astarmathsandphysics/libraries/src/Plugin/PluginHelper.php:182

Trace Tables

A trace table shows the value of each variable at each step of an algorithm. The algorithm below calculates monthly simple interest on a principle P over a period of years T. It then calculates a monthly allowance which spend the result over a year.

1 Input P

2 Input R

3 Input T

4 Let I = (P * R * T)/100

5 Let A = P + I

6 Let M = A/(12 * T)

7 Print M

8Stop

The variables are the principal P, the simple interest rate R and the time period T. The trace table shows one column for each variable.

Line

P

R

T

I

A

M

1

500

         

2

500

6

       

3

500

6

4

     

4

500

6

4

120

   

5

500

6

4

120

620

 

6

500

6

4

120

620

51.67

7

500

6

4

120

620

51.67

8

500

6

4

120

620

51.67

Add comment

Security code
Refresh