Posts

Showing posts from March, 2024

CST 338 Week 4 Journal

 Week 4 Learning Journal Wk04: Learning Journal Markov     Here is a link to a Google Document containing my answers for the Wk04: Learning Journal Markov assignment. Wk04: Learning Journal Markov

CST 338 Week 2 Journal

 CST 338 Week 2 Journal HW 01: Jotto     The Jotto assignment was challenging and fun. I don't recall any unit tests that were challenging to pass. I focused mainly on creating the Jotto program so that it would mimic the demo given to us in the prompt. Doing this meant that the unit tests passed after I fixed some formatting issues. I formatted it based on how I would have preferred the text to be spaced out, but that caused some issues with the unit tests. Debugging those formatting issues was as simple as seeing which test was failing, checking which line in particular wasn't passing, and then changing my code slightly so that it would pass. The getLetterCount method was the most challenging but satisfying to complete. It was challenging because I chose to create the method so that it could account for multiple characters in a string. I did this by creating an ArrayList of Strings. This list would then hold the substrings of 1 character each from the original string. I found

CST 338 Week 1 Journal

 CST 338 Week 1 Journal Homework 2: CodingBat (String 2, Map 1, Functional 1)     When given a prompt, I thought of what tools I had at my disposal. If nothing came up that seemed useful, then I would go over the functions and methods at my disposal. For example, with strings I would create an example string in IntelliJ . Then I would look at all of the methods I had to choose from to see if anything could be useful for solving the problem. After finding a promising method, I would search how to use it. Then I practiced using that method in IntelliJ. Once I felt that I had a good grasp on the method I would use it in solving the problem.     Another thing I would often do is break the problem down into parts . I would solve these parts in IntelliJ using print commands to the terminal to check my progress as I created the solutions. I had to do this once I created a solution in CodingBat, but it didn't work 100%. In order to debug, I had to break the problem down and work on it par