Posts

Day 12 Create Task

1. What did you accomplish today?

Today I worked on my written code descriptions for answers 2a, 2b, and 2c. I made strong progress and I will continue to work on those descriptions over the next couple of days. 2. Explain any code written today. What does it do?
I did not write any code today as I am leaving my code as his for the moment so I can move onto my written descriptions. Once I have my descriptions written for the process I took to complete my code, my algorithms, and my abstraction, I may go back to try to finish the two error checks in my code.
3. What went wrong today? How did you solve it?
I did not have any big issues today, as I only began writing my required code descriptions. I did not code anything new and I also did not do my screen recording yet. I had some issues with the recording yesterday and I decided to focus on my written responses before doing my screen recording as I may make a few changes to my code before I am finalized with it. I do have some issues with w…

Day 11 Create Task

1. What did you accomplish today?
Today I tried to figure out how to code the error checking function aspect of my code, but had difficulty completely figuring it out. Since I already have what is required for collegeboard for the create task, I decided to move on to the written descriptions of my code and to come back to this after I have written my descriptions to clear my thoughts. I then tried to figure out how to use screencastify to screen record my code, had some more difficulty on that, but figured out what I am going to do tomorrow to do the screen recording. I then started to write my descriptions of my code to end the class.

2. Explain any code written today. What does it do?

While I did not write a lot of code today because my code is nearly finalized, I did add some cprint to color the text for a variety of appearance in my code. The main work I did today was that I identified
what my main algorithms are and what the two other algorithms are that that the main program calls…

Day 10 Create Task

1. What did you accomplish today?


Today I worked on the error checking in my code, which is a final modification I wanted to make the
scorecard golf hole program more realistic. Through teacher and peer advisement, I took several
approaches to try to figure out how to code this, but I still have had a lot of difficulty and I hope to
continue working through this last modification.
2. Explain any code written today. What does it do?

Today for the error checking code I adjusted some of my code in my function process_hole_choice.
Above my function analyze_hole, I set a new variable holes_chosen to equal an empty list. Within my
process function I created in if statement declaring that if the hole entered has already been entered
in hole_choice and thus stored in holes_chosen, then if they try to re-enter that same hole, a print
statement well tell the user to please select another hole. However, if the hole entered has not already
been stored in holes_chosen, then it will append that hole t…

Day 9 Create Task

1. What did you accomplish today?


Today was a very successful day! I can finally put my stress behind as I (with consultation with my
peers for assistance) was able to figure out a counter for the input hole scores entered by the user.
This had tripped me up at the last couple of days, and I am happy that I was able to get it to work.
This was one of the last additions I wanted to make to my code, and this sets me up in a good position
for my last few error checks and enhancements for my code. I also began to add a function for the
error checking for when you enter a score for a hole you have already entered a score for, and error
message will appear. Once I get that step down, I will be ready to keep moving forward with my
descriptions of my code. Right now, I am feeling confident with how my code runs and looks.
2. Explain any code written today. What does it do?

Today I finished the counter for my code. At the end of the process_hole_choice() main function, I
returned the proper varia…

Day 8 Create Task

1. What did you accomplish today?

Today I worked on trying to implement the counter into my program, in addition to returning a
variable to end the program once the user enters a certain number that indicates they are done
with their round of golf and would like to exit the program to see what their final score is. I did have
difficulty with this counter for the second straight day, but through consulting with my fellow peers
and through lesson advice from my teacher I was able to properly end the program when the user
inputs the given number that ends the program. I still need to figure out the counter to total the scores
entered for each hole.
2. Explain any code written today. What does it do?


Today I did not write a lot of code, but tried to understand the smaller, more specific details of some of
my existing code and trying to figure out a counter. Through my advice speaking with my teacher, I
realized that the program was not ending as I intended it to. When I asked the user to inp…

Day 7 Create Task

1. What did you accomplish today?
Today (while I faced a difficult coding day) I set myself a goal to begin working on implementing a counter into my golf scorecard code to store and create a "total_score" that processes and adds together the individual scores entered for each hole.


2. Explain any code written today. What does it do?
I began to type the counter in my code to total the scores entered for each golf hole. In my #main_program of my code I added "total_score = process_hole_choice(total_score)" to return the total score of the input hole scores added together. For the counter I also first set "total_score = 0," and then I added "total_score = total_score + hole_score" below where I ask for the user to input their score (the code will total each score added together by adding the newest score to the total of the individual scores added up before it).


3. What went wrong today? How did you solve it?
Today was definitely a mental game: Alec vs…

Day 6 Create Task

1. What did you accomplish today?

Today I made important progress on my golf scorecard code. I added cprint for color to my code in the function print_hole(g), where I accessed new color print for the hole descriptions I wrote. I also added to my code a variable to copy a list: temp_list: which I can use to store and access lifts to later give feedback on based on the certain numbers or words accessed from the list.
2. Explain any code written today. What does it do?


I created the variable temp_list, which uses the temp list to control other actions as I set it equal to "g" which is a part of my print_hole function. The print_hole function and temp_list allows me to access the information with the list stored for my variables hole_one to hole_nine. I edited my code below where I ask for input in the hole_choice variable, where the code prompts for the user to select a hole to access. Under the 9 hole choices the user could choose I added: temp_list = print_hole(hole_one) to t…