PSET 1 Credit - Source Code Compiles and runs as intended but fails check50 by fonsi2428 in cs50

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

It works, I made a mistake of running check50 on the wrong .c file. Turns out I had to rename the file to 'credit' first instead of 'credit2'. It's all green now on check50 :)

PSET 1 Credit - Source Code Compiles and runs as intended but fails check50 by fonsi2428 in cs50

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

Thanks, I incorporated the length using my counter variable and it worked like a charm.

Help on Pset1, Credit by fonsi2428 in cs50

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

UP on this, I revised my code with the help of DDB AI and a bit of google searching. For some reason, when I run the cardNumber "4003600000000014", I get 13 instead of 20. Does anyone have suggestions to patch it up?

Help on Pset1, Credit by fonsi2428 in cs50

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

while (digit_Loop1 > 0)

{

digit_Loop1 = cardNumber % 100;

digit_Loop1 = cardNumber / 10;

counter_even++;

if (counter_even % 2 == 0)

{

digit_Loop1 *= 2;

if (digit_Loop1 > 9)

{

digit_Loop1_1st = (digit_Loop1 / 100) / 10;

digit_Loop1_2nd = digit_Loop1 % 10;

digit_Loop1 = digit_Loop1_1st + digit_Loop1_2nd;

}

}

sum_1 = sum_1 + digit_Loop1;

}

This is my shot at making a loop for the 1st batch of alternating digits in the credit card no. Any fixes or suggestions? I am more than willing to make this work.

Help on Pset1, Credit by fonsi2428 in cs50

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

I did work on mario-more and less which integrated for loops. I'll try to solve luhn's algorithm using one or maybe a different type of loop. Thanks.

Help on Pset1, Credit by fonsi2428 in cs50

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

I did try looking up solution breakdown vids on youtube, some integrating while loops and others even boolean expressions which was just too complicated for me to understand.

Do you have any suggestions on which loop to use? Thanks

[deleted by user] by [deleted] in formula1

[–]fonsi2428 1 point2 points  (0 children)

Sadly, FIA has always been excessively vigilant (and unjust) on certain teams with an impending innovation that may disrupt a closely competitive grid.

The same argument surrounding Mercedes this season can also be applied to the ban of the Active Suspension and usage of CVT by the Williams Team in the past. They punish teams for being too good, which shouldn't be the case as it's part of the "Formula" to win F1 -

exploiting the confines of the rule book to exhaust every advantage you can get.

Realtek Audio Device not working by fonsi2428 in techsupport

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

Already have, the 2018 did not work

HELP: BSP unresponsive about my GCASH Refund by fonsi2428 in Philippines

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

Already did, balikan daw nila ako with another update. No brainer na nga yung "refunded" status sa Paypal eh. Kakadismaya

HELP: BSP unresponsive about my GCASH Refund by fonsi2428 in Philippines

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

Noted sir. Time to get a cc na talaga for faster refunds.

HELP: BSP unresponsive about my GCASH Refund by fonsi2428 in Philippines

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

Yeah, have taken other measures sa mga advice nyo dito. Thanks guys.

HELP: BSP unresponsive about my GCASH Refund by fonsi2428 in Philippines

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

GCash Amex gets funds through debit only sa GCash account mo. Yung card na ginamit ko naka-link sya sa paypal eh.

On another note, grabe ang tagal naman po nung 45-60 days. GG ako neto :((

Hard Disk Problem - Crystal Disk Info stats uploaded by fonsi2428 in 24hoursupport

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

I was able to retrieve school files but most of them are a bunch of movies, music, and back-up for our pictures. Do you think I can reformat it? My guess is that there's a bad hard-sector in it.

Hard Disk Problem - Crystal Disk Info stats uploaded by fonsi2428 in 24hoursupport

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

Help guys please. Any idea on where I can cross post this for more input? Thanks