← all problems

canAfford 🌶️

Write a method that takes two double parameters, price and budget, and returns true if the price is within budget (price is less than or equal to budget), and false otherwise.