❔ I need help with logic
Hey, i want to create a little algorithm that is able to calculate - via multiple criteria - the cheapest way to create a network cable. The criteria are these: the plug has a price, a category and a variable that says if it needs an additional cover or not, the cover itself has a price and the actual cable also has a price and a category, also the cable can be either for installation work or general use... Somehow i'd need to program it to be able to take all of these into consideration. as of now i only have a number that consists of the pagage size (e.g. 10) and the price (e.g. 10 bucks) for the price per used thing, but i can't just sort them from this because usually the more/longer things you use, the cheaper it gets... say i need ten meters of cable, i'd need 10 meters of actual cable, two plugs and maybe some covers, depending on if the plugs need some or not...