Severity: Warning

Message: count(): Parameter must be an array or an object that implements Countable

Filename: controllers/calculator.php

Line Number: 37

- 1-800-665-6601
- info@tutorpace.com

Given the selling price of the article is $50.

The discount percentage on the article is 10%.

10% of the selling price $50 is equal to 50 * 10 /100 = 500/ 100 = $5.

This makes the selling price of the article as è $50 - $5 = $45.

Given the selling price of the book is $12.

The discount percentage on the article is 20%.

20% of the selling price $12 is equal to 12 * 20 /100 = 240 / 100 = $2.4.

This makes the selling price of the book as $12 - $2.4 = $9.6.