Ash_
❔ 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...
6 replies
troubles with a simple list...
Hey, i've created - or at least tried to create a list with entries but it only saves "Warenspeichersystem.Artikel"... here's the code: https://pastebin.com/rrQ34eLR , what did i do wrong?
8 replies
How do i create a external file containing previously entered strings?
My program (a gtin verifier) asks the user to enter a gtin, which it saves as a string. After that the Method returns a true or false, depending on if the code is valid or not. for efficiency's sake i want it to save every input of the user and the true/false result to a file so if someone enters a code that was already calculated it just reads the result from the file instead of having to acutally calculate it, i'll send the code in a bit
55 replies