write an algorithm that tells me whether it is profitable for me to accept all the offers - it means you should always accept all offers and return the right answer: If I get profit and should accept all offers, let algorithm return 'A good day, the profit is n$.' and otherwise 'Nonprofit day.'
The variable 'money' is needed for this kata. If you can resolve it without this variable, you are welcome
done
write an algorithm that tells me whether it is profitable for me to accept all the offers
- it means you should always accept all offers and return the right answer:If I get profit and should accept all offers, let algorithm return 'A good day, the profit is n$.' and otherwise 'Nonprofit day.'