₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,324,999 members, 8,419,863 topics. Date: Thursday, 04 June 2026 at 04:28 AM

Toggle theme

Java Programmer Help Me Out With This Problem - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingJava Programmer Help Me Out With This Problem (900 Views)

1 Reply (Go Down)

Java Programmer Help Me Out With This Problem by saemmanuel(op): 9:45am On Jan 04, 2014
Assuming i have:
Skill Level 1 that earn $100 and work for 2hrs
SKill Level 2 that earn $200 and work for 1 hr
Skill level 3 that earn $300 and work for 0.5hr
Now i need a code to predict the best combination of skill worker that can work together to perform a task at a lesser time with a specific amount of money e.g asumming the budget money is $800, the best combination will be 2 skill level 3 and 1 skill level 2 which will work for 2 hrs

Please help out with a code.. thanks
Re: Java Programmer Help Me Out With This Problem by codeaddict(m): 3:16pm On Jan 04, 2014
Re: Java Programmer Help Me Out With This Problem by saemmanuel(op): 9:06pm On Jan 04, 2014
tanks so much
Re: Java Programmer Help Me Out With This Problem by naijaswag1: 12:13am On Jan 05, 2014
Solution
Re: Java Programmer Help Me Out With This Problem by kambo(m): 12:57am On Jan 05, 2014
@codeaddict

directly invoking run= bad style.

"new SkillCost(800).run()" -
Re: Java Programmer Help Me Out With This Problem by dsypha(m): 10:40am On Jan 05, 2014
--
Re: Java Programmer Help Me Out With This Problem by dsypha(m): 10:41am On Jan 05, 2014
@codeaddict, Kambo is right. U shud had used an instance of the thread class or better still an executor. Good work bro, U tried.
Re: Java Programmer Help Me Out With This Problem by codeaddict(m): 11:11am On Jan 05, 2014
dsypha: @codeaddict, Kambo is right. U shud had used an instance of the thread class or better still an executor. Good work bro, U tried.
Guys, cut me some slack. I only use cached thread pools when I'll be running more than one thread, or there's a risk that thread won't complete.
Re: Java Programmer Help Me Out With This Problem by sakalisis(m): 12:22pm On Jan 09, 2014
codeaddict: http://pastebin.com/VSRSdx5c
code eater please i need your email or whatsapp, i will surelly like to learn from you
1 Reply

Php Programmer Help Me Out !Need A Java Programmer To Put Be Through On A JAVA ASSIGNMENTFunctional Programming For Java Programmer Scala Or Clojure?234

Starting A Software CompanyProject: Cyber Secuirty, I Need IdeasIs Barchelor In Computer Application A Good Course