Posts

Showing posts from July, 2024

CST338 Week 5

For the Markov assignment I worked with Saria, Gary, and Rahim.    My strategy was to begin by creating the methods that had no dependencies on other methods (endsWithPunctuation(String), endsWithPunctuation(String), etc.) and then work my way down the dependency tree. This worked reasonably well and, once complete, I passed all the tests except badLine. I need to change my string split from a simple space to all white space. When I watched the CST 338: Running Markov video, Dr. C goes mentions this issue and where to look and if I had watched this at the beginning it would have saved me time troubleshooting.   Saria's method was to plan out the solution and create a UML diagram to visualize the relationships between methods. She felt her approach streamlined the coding process and significantly reduced her development time.     My team members felt my code did well following the style guide which was a relief as I paid extra attention to this on this assig...

CST Week 4

With whom did you work? I worked with my group of Saria, Gary, and Rahim.   What was your strategy for solving the assignments?  I started with the UML diagram and then moved to reading the whole prompt. Then I went and focused on one method at a time reading the prompt for that method in detail. I only started writing code once I had a general idea of what each method was meant to do.    What was THEIR strategy for solving the assignments  Their strategy was to begin by reviewing the prompt and analyzing the provided UML diagram. The diagram serves as a visual representation of the relationships between classes, fields, and methods. They then reread the class descriptions, paying attention to the purpose and data types of each field and method. With a clear understanding of the requirements, they started coding, using the prompt as a roadmap to guide me.    How would you change your strategy having worked on the assignment? I would change my strategy ...

CST 338 Week 3

Who did you work with?  I worked with Saria Kabbour, Gary Kuepper, and  Rahim Siddi. What improvements would you make to your code/what was suggested?  I would like to try and make my code more efficient. I went for a brute force approach and used nested for loops and I agree that it would be a nice challenge to try to avoid that when I have more time.   Which unit tests were the hardest to pass? I struggle the most with the display method. Getting the data wasn't that bad, but I got really hung up on the formatting. It took me an unreasonably long time to get that right. I tried to just go quick and manually append spaces before I just used .format and that was way easier and what I should have done from the start. How do the existing tests function and could they be improved?  The existing tests seems to function based on the known contents of the text files. The known values are entered as static numbers and then checked against the output of the progr...

CST338 Week 2

 This week was a histogram project. My code isn't very efficient, but it works. Surprisingly, the part that took me the longest was the formatting of the output. I tried to just do it manually with added spaces and printed bars, but it wasn't working. I then found out about format and was able to read through some guides on that. After that I think I got it pretty close to the output in the guide. I would eventually like to go back and try to find more efficient ways to run this program.