Nick Castillo wrote:Hey,
I am trying to print 300 random words, 8 characters long using a while statement but I dont think I currently have the knowledge to do it (I have an array of the alphabet so that may be useful). I would really appreciate any sort of help
D.J. Quavern wrote:Hello Ranchers,
I am doing a community project to teach programming. The club is for mums and their daughters, or any girl and woman, at beginner lebel.
I found Junilu's refactoring of my code quite inspiring, and realised I might teach fundamental concepts really wrongly!
So I wondered if some of you could share programmimg exercices that are at the same time really fun, engaging and done the right way, to ensure my pupils get solid basis?
We are at hello world and string concaténation right now so there is no urgency with TDD.
Liutauras Vilda wrote:To my understanding I got them right.
Mike Simmons wrote:
Tim Holloway wrote:Answering the original question. What a concept!
This may have been lost in the noise...
Mike Simmons wrote:For the original question, I can't imagine frequently needing to modify a polynomial like that. I'd probably just go with a double to represent a polynomial in most cases. The LinkedHashMap is good if the polynomial is sparsely filled though - i.e. relatively few few non-zero coefficients.
Ana Yo wrote: Just a curious question: is the linked list representation of a polynomial better than the array based representation?
fred rosenberger wrote:i'm probably going to ask the math teacher, too. I'm sure they hate parents like me.
It probably is a 100% contrived example meant to show the difference between (sin theta)^2 and sin (theta^2)...but it bugs me when I can't see why stuff doesn't work.
Campbell Ritchie wrote:Is she really supposed to evaluate sinθ²? Not sin²θ? Since sin(π ÷ 3) is √3 ÷ 2, it is really easy to work out its square: ¾.
Neither degrees nor radians have dimensions; does each even have a square at all?
Ryan McGuire wrote:In general, "You bet," means, "I will do exactly as you requested."
Linwood Hayes wrote:Last week, we planned a picnic with a few friends and families. I offered a ride/carpool to a friend saying "We can drive and if you want to go with us, let me know." Then I realized he was little hesitating, so I added "If you have other plan, feel free to go ahead with your plan..". He said "You bet." Can somebody tell me what does "you bet" mean here ? Does it mean he did have other plans or what ? You may ask why I didn't ask himself what it meant that time. Be honest, I just didn't want to make myself look dumb by letting people feel I couldn't grasp English..
Carey Brown wrote:You are comparing the references to "ab" and "ab " (note the extra space).
The '+' operator has a higher precedence than the '==' operator.
Obviously the while loop should stop when the returned node is none?
Piet Souris wrote:hi DJ,
long time no see! You seem to be very busy, but that is a good thing.
I had to read that assignment twice, but I think I got it. You are given N cities (vertices) and M lines of input indicating where a pilot can fly to and from (edges). So, it is an undirected Graph with N vertices and M edges. And the question is what the shortest path is between any two cities. Correct me if I'm wrong. Now, first thing what comes to mind is Dijkstra's algorithm: Dijkstra.
So, have a read and see if you agree with me!