Some problem solving programming challenges, i have solved. Not all are here, but started adding them slowly.
This project is maintained by chankruze
You sell souvenir kaleidoscopes at a gift shop, and if a customer buys more than one, they get a 10% discount on all of them!
Given the total number of kaleidoscopes that a customer buys, let them know what their total will be. Tax is 7%. All of your kaleidoscopes cost the same amount, 5.00.
Take the number of kaleidoscopes that a customer buys and output their total cost including tax and any discounts.
An integer value that represents the number of kaleidoscopes that a customer orders.
A number that represents the total purchase price to two decimal places.
4
19.26
A purchase of 4 kaleidoscopes would give the customer a 10% discount, then with tax the total is 19.26.
| Language | Solution |
|---|---|
| C | not available |
| CPP | not available |
| C# | not available |
| Python | available |
| Java | not available |
| Ruby | not available |
| Swift | not available |