salvin francis wrote:Hi soneand,
I just browsed through this entire thread and I see that you haven't posted any code. Most of your posts are complaining about x did not work and y did not work, but there is actually no code posted.
Again ... No python code posted. Please post that so that we can help check that.
soneand pap wrote:I solved this exercise in Python.
Why do you want to do that ? Your requirements hardly span 10 lines of code.
soneand pap wrote: Is there a way to convert Python to Java?
Jay Rex wrote:The video I linked to also explains what a broadcast mac address looks like.
The requirement is easier now. So now you have one extra condition to deal with.
Take each step I wrote above and write one line of code that tackles that step.
Then ask a specific question about what you don't understand.
This is a good task, and you will learn much.
Jay Rex wrote:
You definitely can do this
Jay Rex wrote:I am a beginner like yourself. I'm six months into my journey with Java.
I experienced exactly the same thing you did. The first few tasks were a breeze and then they asked us to write a program that takes any number from 0.00 to 9999.99 and print out the English word equivalent of what that number is.
I raged for two solid weeks on this one task, but eventually I solved it.
What I can say is that I learnt more from that one task than any other task to date.
System.out.println(whatYouWantToSee) is your best friend right now.
You need to be able to see what your code does. When it shows the right result, then you know you are on the right track. Then write one more line of code and do the same thing again.
Try and try and try again. You can do this
Campbell Ritchie wrote:I still disagree. Complete this exercise, and then quit. That way you can tell whomever you ask for a job or course that you passed but weren't happy with the course.
And if you followed my hints, you could have yout program print 18 in a few minutes.
Campbell Ritchie wrote:You were so near but so far here, yesterday. Did you actually run your code? You would have got an output of "18:FA:05:11". I referred you to String#split() where it showed you a regex to split "boo:and:foo" and yu copied it incorrectly; Carey told you what the error is. If you correct that, you can have that bit of code working in two minutes.
But we cannot show you the complete working code otherwise that would constitute doing your work for you.
Campbell Ritchie wrote:You can do it in two hours if you find all the hints I gave you.
soneand pap wrote:i have 2 more days to solve this exercise..
i have all the hints you gave me (i think) but i can't put them together!Its frustrating!