Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

THis is about c programming (CS50 HArvard course PSET 1 Hacker) The goal is to f

ID: 3583681 • Letter: T

Question

THis is about c programming (CS50 HArvard course PSET 1 Hacker)

The goal is to find if a credit card number is valid.

Complete Instructions Here:

https://cdn.cs50.net/2015/x/psets/1/hacker1/hacker1.html#bad_credit

Can I please know what makes my code fail?

(I dont get running errors)

My code: #include #include #include #include #include #include

int main(void) {

}

Output of test (on cs50 site):

$ check50 2015.fall.hacker1.credit credit.c

:) credit.c exists

:) credit.c compiles

:( identifies 378282246310005 as AMEX expected output, not a prompt for input

:( identifies 371449635398431 as AMEX expected output, not a prompt for input

:( identifies 5555555555554444 as MASTERCARD expected output, not a prompt for input

:( identifies 5105105105105100 as MASTERCARD expected output, not a prompt for input

:( identifies 4111111111111111 as VISA expected output, not a prompt for input

:( identifies 4012888888881881 as VISA expected output, not a prompt for input

:( identifies 1234567890 as INVALID expected output, not a prompt for input

:( rejects a non-numeric input of "foo" expected output, not a prompt for input

:( rejects a non-numeric input of "" expected output, not a prompt for input

Explanation / Answer

Answer: