by BugZeroCodes | May 18, 2021 | Blog
Today I completed the “Will you make it?” kata on Codewars!
The code called for a function that took the miles away from a gas pump, a car’s miles/gal, and how many gallons of fuel are left. Based on this data, it should return true if the car would make it to the pump and false if otherwise. So I went into the code, wrote the function, and it worked!
by BugZeroCodes | May 12, 2021 | Blog
Today I completed the “The highest profit wins!” kata on Codewars!
I had to make an array that returns the largest and smallest numbers from a provided array. Not knowing how to do this, I looked up suggestions and found Math.min.apply and Math.max.apply. Using these two, I wrote a simple return statement and it worked!
When you don’t know how to do something, look up a guide to help you!
by BugZeroCodes | May 5, 2021 | Blog
Today I completed the Stay Hydrated! kata on Codewars!
Looking at the code, it was easy to see what I had to do: multiply 0.5 by the provided hours and return the rounded result. Thus, I wrote the code to do this, and it worked!
Remember: stay hydrated!
by BugZeroCodes | Apr 25, 2021 | Blog
Eugene has learned how Java is a key programming language. Eugene learned about databases and how to use them, conditionals and control flow, arrays and array lists, and so much more! Java can be used for software development, mobile applications, and large systems development.
by BugZeroCodes | Apr 12, 2021 | Blog
Today I completed the “Paul’s Misery” kata on Codewars!
When I looked at the code, it looked familiar: add the scores depending on what was in the list, and if the scores were less than one number but greater than(or equal to) another, say something. Knowing this, I coded the script and it worked!
This was my first kata done in Java!
by BugZeroCodes | Apr 6, 2021 | Blog
As a basketball player, I work hard to be the best kind of player that I can be. Obviously, it would be great to win a state championship, but my goal every day is to be better at basketball than I was yesterday. We should apply this to everything else we do. Not many people have been successful on their first try. We should be working by taking small steps to reach our goals. If we have trust in the fact that every day our work was not vain or a waste of time, we can achieve anything we want to.
Recent Comments