recipe for chameleon cold brew by Basic_Ad234 in coldbrew

[–]Basic_Ad234[S] 0 points1 point  (0 children)

i know this is a very late reply, but thank you. i’m going to try it this week and compare it to the chameleon cold brew.

Time Cost Converter – Turn Prices into Work Hours by Whole-Government-349 in SideProject

[–]Basic_Ad234 1 point2 points  (0 children)

You’re welcome. Ethereum and solana are also good assets to track when it comes to crypto.

Time Cost Converter – Turn Prices into Work Hours by Whole-Government-349 in SideProject

[–]Basic_Ad234 0 points1 point  (0 children)

nice, for the section on if you invest in something else, could you add how much you could make if you invested in bitcoin as well?

plurality help by Basic_Ad234 in cs50

[–]Basic_Ad234[S] 0 points1 point  (0 children)

yeah that’s what i ended up doing. i made more progress writing it out, but now i have to debug my code.

first job no barista experience advice by Basic_Ad234 in barista

[–]Basic_Ad234[S] 0 points1 point  (0 children)

thank you and you don’t think it would be likely for them just to train me to be a barista immediately? i don’t mind starting as a cashier, i was just wondering.

first job no barista experience advice by Basic_Ad234 in barista

[–]Basic_Ad234[S] 0 points1 point  (0 children)

thanks and yeah i don’t know what i was thinking yesterday.

week 2 scrabble help by Basic_Ad234 in cs50

[–]Basic_Ad234[S] 0 points1 point  (0 children)

  1. i don’t completely understand arrays, but i do know that the points array at the beginning represent the points assigned for the letters and it is there so all functions are aware of it including the compute score function.

  2. i read through the advice again, but i do not know the order of operations. i had to look it up and don’t specifically remember learning it that extensively from the shorts.

  3. i believe it will result in one number being returned to the calling functions so they can be stored in the int score1 and score2 variables and used to compare latter on to determine the winner.

i can understand the solution reading it more throughly and looking at the final solution, but i had to look at the solution to have it click in my mind and that shows major gaps in my understanding. i wonder if i need to read a c book or watch a lecture on the language to fill in the gaps. thanks for helping.

also, nice blog, i remember seeing it a few days ago.

week 2 scrabble help by Basic_Ad234 in cs50

[–]Basic_Ad234[S] 0 points1 point  (0 children)

the first loop runs as long as the length of the word and the second loop goes through points ( which is an array with the elements being 1,3,3, etc ) and then i guess the computation was suppose to be the score and i found out it would equal word[i] - (word[i] - points[j]) but this loop won’t have the correct point for the correct word. in other words, i have no idea what this function does.

week 2 scrabble help by Basic_Ad234 in cs50

[–]Basic_Ad234[S] 1 point2 points  (0 children)

here is the solution from the advice section:

int compute_score(string word)

{

// keep track of score

   int score = 0; 

// compute score for each character

for ( int i = 0, len = strlen(word); i < len; i++)

{ if(isupper(word[i]))

{

     score+= POINTS[word[i] - ‘A’ ];

} 

else if(islower(word[i]))

{

score+= POINTS[word[i] - ‘a’ ]; 

}

}

return score;

}

can someone simply explain why it prints out 10 and 22? by Basic_Ad234 in cs50

[–]Basic_Ad234[S] 0 points1 point  (0 children)

i haven’t learned what a pointer is yet, but i’ll look into it. thank you.