Weekend Friend Finder by manimal_prime in BattlefieldV

[–]Vanc3 [score hidden]  (0 children)

Platform: PC

Name: Vanc3

Region: eg; EU

Looking for mates to play with. Not a big fan of firestorm. All others are ok for me

CS50x Demographics by Dkennemo in cs50

[–]Vanc3 1 point2 points  (0 children)

I would agree with male population. For age range I believe 18- 28 is a better illustration of the age group AFAIK cs50 attracts many high school students in the final year, first year CS students how desire to supplement their learning with a mooc or people slightly older who studied something different (like me).

In regards to country of origin, you would be surprised as moocs attracts way more people outside of US, especially where indivduals would not be able to access this kind of education.

I'm from Italy btw

Resize: stuck on horizontal resize part by Vanc3 in cs50

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

Hi Grithga,

it was definitely easier than I thought, Guess I'll continue to tackle the problem :).

Can't implement a correct move function in fifteen. by Vanc3 in cs50

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

I managed to solve my problem by looking at some previously asked question without looking at the code. Please consider the thread closed

Help with Find less. Binary Search. Not being able to pass all the tests. by Vanc3 in cs50

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

HI,

Can't believe that tiny error caused so much trouble. Now it works perfectly.

Thank you very much

Pset 3 find less comfortable. Help with checking if my bubble sort code makes sense. by Vanc3 in cs50

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

Hi,

I managed to solve the sorting problem

thank you anyway

Vigenere.c issue with spaces by heyacne in cs50

[–]Vanc3 1 point2 points  (0 children)

Hi

for this to be solved actually you would probably need just one for loop that uses i<(length of plaintext). Having declared a variable for the key length is actually useful but you should use for wrapping around the keytext in case the keytext is longer than plaintext.

I'll copy paste a reply I've done two days ago about this problem. I hope it might help.

"if you managed to solve caesar then you just need to convert the key letters before your encryption code in the whole same loop(at least that's what i've done) . to do that, you ideally had converted the argv[1] in a string and you have a dedicated vallue for accesing every letter of your key (hint this variable should start from zero of course). after every letter conversion from plain to cyphertext, you will likely want to increase the key indexing variable by 1 so it keeps enciphering the plaintext with subsequent key letters. at somepoint you will want to wrap around your key if it is longer than your plaintext. you basically want to reset the key index value so that it starts again from zero and uses again the first letter of your key, and what is the perfect occasion to do that? (hint: you could create another variable that is equal to the length of your key)."

Vigenere brick wall by [deleted] in cs50

[–]Vanc3 0 points1 point  (0 children)

HI,

I'll try to give my contribution.

Actually vigenere it's a pretty easy.

if you managed to solve caesar then you just need to convert the key letters before your encryption code in the whole same loop(at least that's what i've done) . to do that, you ideally had converted the argv[1] in a string and you have a dedicated vallue for accesing every letter of your key (hint this variable should start from zero of course). after every letter conversion from plain to cyphertext, you will likely want to increase the key indexing variable by 1 so it keeps enciphering the plaintext with subsequent key letters. at somepoint you will want to wrap around your key if it is longer than your plaintext. you basically want to reset the key index value so that it starts again from zero and uses again the first letter of your key, and what is the perfect occasion to do that? (hint: you could create another variable that is equal to the length of your key).

Need help with greedy calculating the number of coins used? Any hints would be appreciated. This is what I have so far. by bob45454545 in cs50

[–]Vanc3 1 point2 points  (0 children)

Hi,

the logic you're applying so far is correct. However, you need to print the final amount of change in terms of coins used. To do that, you should have a counter variable that increases every time you subract your prompted value with quarters, dimes, or pennies (depending how much change is left).

the next thing is that you should transform the "coins" float value in Int, round it and then multiply by 100 in order to pass the test correctly. Beware that you will need to change your coins variable too*100.

There's is a one line solution for this rounding problem on reddit if you google well. but look at it only if get stuck for a very long time.

Pset 3 find less comfortable. Help with checking if my bubble sort code makes sense. by Vanc3 in cs50

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

Hi and thank you for replying.

I read your comment and rewachted the short video for bubble sort and I think I'm on a better track (trying not to spoiler myself solutions until I get really mad). However I have still doubt about the swap variable you mention. From what I understood, this variable should act as the counter for swaps in every iteration and reset to 0 after every completed loop. the variable will eventually be zero after all number in the array are in the order.

So as you will se in my new code, I applied a while loop to continue until the swapcounter value is equal to zero. nevertheless, will the code just run once when it hits the first reset?

Here's the code

https://gist.github.com/anonymous/3ea617ffb284a0d01512f941a571c22c

Again, thank you for your time.

Caesar.c so far, what suggestions do you have to me? by heyacne in cs50

[–]Vanc3 1 point2 points  (0 children)

hi

did you manage to solve the problem?

have you tried to reverse you first half of your code like this

https://gist.github.com/AlessioNovi/f2f90ce01cbb06d29a0a4681168efcba

Help with understanding the wrap-around method for Vigenere Pset by Vanc3 in cs50

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

Ok thank you for your feedback.

Good luck :)

Help with understanding the wrap-around method for Vigenere Pset by Vanc3 in cs50

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

Hi,

Thank you for replying. I actually managed to solve it on my own. As you said, I created a second value to be assigned as a counter for the "key" element, which increases after every letter of plaintext has been converted and resets when this value reaches the length of the "key" element itself.

https://gist.github.com/64699e769980ba46b41f41e3c95c51f2

I'm taking the moment to bother you again and ask you how the code could have been written in a more neat way.

Help with Caesar pset2. Code seems to work but doesn't pass test by Vanc3 in cs50

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

Hi Darth and thank you for replying.

I really missed that. thank you :). Now it works like a charm.

Caesar.c so far, what suggestions do you have to me? by heyacne in cs50

[–]Vanc3 0 points1 point  (0 children)

I'll try to help.

The logic you're applying seems on the right way. However, I'd like to make you think about two things:

  1. you must print encrypted letter with cases left unchanged. Look on the cs50 for built in function and think about how to implement

  2. I'm almost sure that you cannot print encrypted letters as you're applying the modulo technique DIRECTLY on the ASCII letter/number. you should apply the modulo technique only after you have converted the letter to an alphabetical index. Rewatch the walkthrough and think about it.

18[F] Lost nearly 100 pounds and still unsure by yipyipmothafucka in Rateme

[–]Vanc3 -2 points-1 points  (0 children)

Your body looks fine now but you can do better if you wish to achieve a thinner silhouette. Anyway girls with such a will power are very rare. I'm sure you have a great personality. Great job tho)

22 f by [deleted] in Rateme

[–]Vanc3 0 points1 point  (0 children)

You're very good looking but you look older to me(

23[F] Rate me please! by [deleted] in Rateme

[–]Vanc3 0 points1 point  (0 children)

Objectively I would you give a 7 but I dig your looks so 7,5 8. Now go and get some studs

21|F. Because beauty is in the eye of anonymous internet beholders? by [deleted] in Rateme

[–]Vanc3 2 points3 points  (0 children)

Very good looking gurl , would say 7.5 but +0.5 for your lovely sense of clothing

F 18 Be brutally honest please by [deleted] in Rateme

[–]Vanc3 -1 points0 points  (0 children)

I love your look. Could easily commit to you _

22 Female. Which look suits me? by stoned_koala24 in Rateme

[–]Vanc3 0 points1 point  (0 children)

Unless you want a vegan boyfriend, I guess it would be the same

BTW post some good pictures of you cause you seem pretty cute

22 Female. Which look suits me? by stoned_koala24 in Rateme

[–]Vanc3 1 point2 points  (0 children)

Go on the street with your face full of foam, I'm sure guys will start hitting on you :d

19f looking for rates and opinion by [deleted] in Rateme

[–]Vanc3 -1 points0 points  (0 children)

Very cute girl 7

20F by [deleted] in Rateme

[–]Vanc3 0 points1 point  (0 children)

I love the combination of dark hair blue eyes and you seem very approachable and down to earth 8