Some problem solving programming challenges, i have solved. Not all are here, but started adding them slowly.
This project is maintained by chankruze
You run a hovercraft factory. Your factory makes ten hovercrafts in a month. Given the number of customers you got that month, did you make a profit? It costs you 2,000,000 to build a hovercraft, and you are selling them for 3,000,000. You also pay 1,000,000 each month for insurance.
Determine whether or not you made a profit based on how many of the ten hovercrafts you were able to sell that month.
An integer that represents the sales that you made that month.
A string that says Profit, Loss, or Broke Even.
5
Loss
If you only sold 5 hovercrafts, you spent 21,000,000 to operate but only made 15,000,000.
Language | Solution |
---|---|
C | not available |
CPP | not available |
C# | not available |
Python | available |
Java | not available |
Ruby | not available |
Swift | not available |