Some problem solving programming challenges, i have solved. Not all are here, but started adding them slowly.
This project is maintained by chankruze
You are in a hat store in Argentina! The prices are listed in US Dollars and Argentinian Pesos. You have both, but you want to make sure you pay the lower price! Do you pay in Dollars or Pesos? The exchange rate is 2 cents for every Peso.
Create a program that takes two prices and tells you which one is lower after conversion.
Two integer values, the first one is the price in Pesos and the second one is the price in Dollars.
A string that says which currency you should make the purchase in (‘Dollars’ or ‘Pesos’).
4000
100
Pesos
You should use Pesos to buy the hat since 4000 pesos is equal to $80.
Language | Solution |
---|---|
C | not available |
CPP | not available |
C# | not available |
Python | available |
Java | not available |
Ruby | not available |
Swift | not available |