© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
5 replies
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...
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

I need help with cursor logic
C#CC# / help
2y ago
I need help with Deployment Logic
C#CC# / help
2y ago
Need help with GIT logic
C#CC# / help
2y ago
❔ Need some help with logic
C#CC# / help
4y ago