Assume that there are n tyres that could be used by car, tricycle and bicycle. Write a program to accept n tyres and generate all the combinations (i.e. the number) of car(s), tricycle(s) and bicycle(s) that could exhaust the n tyres. Ensure that all the objects have fair share where possible

Member Avatar
Member Avatar
+0 forum 4

Hi, is it possible to combine Stored Procedure and Text Command Type in Select Statement? I have a stored procedure that compute available items, it quite a bit long select statement, now i need to call this statement in another select statement which is in text command type, how will i do it? something like `Select Barcode, ItemCode, Get_itemCount From Product` where Get_itemCount is my storedProc Im using vb.net and Sql server 2008 R2 thanks in advance

Member Avatar
Member Avatar
+0 forum 14

I have the numbers 0-8 so I can represent a state as 012345678 012345687 .... 876543201 876543210 This gives me 40320 ways to represent a state so I have a HashMap of size 40320 and I need a good way to make sure each state only corresponds to 1 key 1-40320 I'm not really sure how to even come close to making sure there are no possible collisions. Any help would be greatly appreciated

Member Avatar
Member Avatar
+0 forum 2

guys, how to make a simple program that can combine basic C++,array,function and pointer altogether.can anyone help me please? thank you! :)

Member Avatar
Member Avatar
+0 forum 2

I’m making a program that will be like a search engine, similar to a map program. There will be a text box for the user to search for a location. The thing I don’t know is that the user has 4 different combinations that they may enter. For example: **N229** OR **n229** OR **N 229** OR **n 229**. I want the program to respond the same to all 4 possible combinations to show the same thing. Is it possible in any way to make this real?

Member Avatar
Member Avatar
+0 forum 2

0 down vote favorite I am trying to write a script that will return the latest values for a unique documentid-physician-patient triplet. I need the script to act similar to a group by statement, except group by only works with one column at a time. I need to date and status information for only the most recent unique triplet. Please let me know what you will need to see from me to help. Here is the current, very bare, statement: SELECT TransmissionSend.CreateTimestamp, TransmissionSendItem.Status, TransmissionSendItem.PhysicianId, TransmissionSendItem.DocumentIdDisplay, Utility.SqlFunctions_NdnListToAccountList(TransmissionSendItem.NdocNum) AS AccountNum FROM Interface_SFAX.TransmissionSend, Interface_SFAX.TransmissionSendItem WHERE TransmissionSend.ID = TransmissionSendItem.childsub --I don't know exactly what …

Member Avatar
Member Avatar
+0 forum 1

hello :) i'm looking for some good Combination Optimization Algorithm, which is easy to code aswell... (combination optimization algorithms like "Hungarian Algorithm", etc.) thanks :)

Member Avatar
Member Avatar
+0 forum 2

hello :) i'm looking for an algo to find out all possible combinations of a 2d array entries, wich are (Tasks x Processors). i.e, i have to find out all possible schedules to schedule tasks against processors. numbers of tasks and processors are variable. Suppose : ............P1.......P2.......P3 .................................... T1........3 ........6..........4 T2........5.........1..........7 T3........6.........5..........4 T4........2.........4..........5 (where T=Task and P=Processor) in above example, obviously, the optimum schedule will be: T1 -> p1 T2 -> p2 T3 -> p3 T4 -> p1 (where " -> " means, 'should be assigned to') but i need to find all the possibilities of scheduling. (all possible combinations). …

Member Avatar
Member Avatar
+0 forum 4

pls help me with this the user enters a number n.consider the sequence from 1 through n in ascending order.insert either '+' or'-' between each of the digits so that the resultant sum is zero. for eg: input=7 output= 1+2-3+4-5-6+7=0 1+2-3-4+5+6-7=0 1-2+3+4-5+6-7=0 1-2-3-4-5+6+7=0 however when i programmed it i only got the first two outputs.the ones where + is the first operator..but the code didn't print the next two...pls help or find an error in the following code(it's happened with other inputs too) [CODE]import java.io.*; public class zerocombination { public String toBin(int x)// this function converts a given number to …

Member Avatar
Member Avatar
+0 forum 2

I want to list helpful instructions on my website for customers, specifically designed for them. I'd like for one of 16 images to appear below the 3 dropdown boxes, dependent on the values selected. The process can be instant or initiated with a submit button, but I'd like for the image space below to either be blank or defaulted as one image until all 3 options are selected. Is this possible? Any help would be great. Thanks! [CODE] <table border=3><tr><td> <table width=500><tr><td align="center"> I am <select name="players"> <option value="0">- select an entity -</option> <option value="1">a coach or team representative</option> <option …

Member Avatar
+0 forum 0

the following program is to print all possible sum combinations of a number for example 6=1+5,2+4,3+3,1+1+4,1+2+3 12=3+9,4+8,5+7,.......,1+1+2+3+5 but i m not getting any output...maybe there's a problem with proper ending of loops pls help[CODE]import java.io.*; public class sumpermutations { public void main()throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); int input,i,j,d=0,s=0,num=0,d1=0; System.out.println("ENTER NUMBER"); input=Integer.parseInt(br.readLine()); for(i=1;i<=99999;i++)//for loop till the highest 5 digit number { while(i!=0)//to find the sum of digits of each number { num=i; d=i%10; s+=d; i/=10; } if(s==input)//checks if the sum is equal to the input number { if(istrue(num))//function to check if the digits of num are in ascending order …

Member Avatar
Member Avatar
+0 forum 11

Hallo, Can somebody help me how to find combination between code´s. i have 30+ codes like this 7zv7pj. xjdcsa, efzlfl, xkaadt etd but i dont know any program or something what can i help me get more combination or understand how codes work. Ty for help

Member Avatar
Member Avatar
+0 forum 6

I have 10 words. How can I get all possible combinations of 5 words (n=10, k=5). The order does not matter. For example: "A", "B", "C", if k=2 (n=3 in this case), it would like AB, BC and AC. Maybe you know some usefull code or example. P.S. Sorry if I'm not right enough cause I don't know English very good.

Member Avatar
Member Avatar
+0 forum 2

Hi there, I have two tables. The first one holds information about cities: Locations: [code] locID | locationID | locationName | countryCode | 1 | 2922239 | Berlin | de | 2 | 291074 | Paris | fr | 3 | 295522 | Orlando | us | 3 | 292345 | Tokyo | jp | [/code] There is a second table, which holds alternative names for locations. There might be NO alternative name for a location in the Locations table: AlternateNames: [code] altNameID | locationID | alternateName | 1 | 2922239 | Berlino | 2 | 2922239 | Berlina | …

Member Avatar
Member Avatar
+0 forum 4

Dear all, any one knows how to print string out based on combination using php. the string a b c d will print a b c d ab ac ad bc bd cd abc abd acd bcd abcd Thanks in advance....

Member Avatar
Member Avatar
+0 forum 2

The End.