check50

cs50/labs/2023/x/half


:) half.c exists

Log
checking that half.c exists...

:) half.c compiles

Log
running clang half.c -o half -std=c11 -ggdb -lm -lcs50...

:( Bill of $50, with 10% tax and 20% tip, creates output of $33.00

Cause
expected "33.00", not "33.00"

Log
running ./half...
sending input 50...
sending input 10...
sending input 20...
checking for output "33.00"...

Expected Output:
33.00
Actual Output:
33.00

:( Bill of $50, with 12.5% tax and 20% tip, creates output of $33.75

Cause
expected "33.75", not "33.75"

Log
running ./half...
sending input 50...
sending input 12.5...
sending input 20...
checking for output "33.75"...

Expected Output:
33.75
Actual Output:
33.75

:( Bill of $100, with 12.5% tax and 15% tip, creates output of $64.69

Cause
expected "64.69", not "64.69"

Log
running ./half...
sending input 100...
sending input 12.5...
sending input 15...
checking for output "64.69"...

Expected Output:
64.69
Actual Output:
64.69

:( Bill of $96.40, with 13% tax and 14% tip, creates output of $62.09

Cause
expected "62.09", not "62.09"

Log
running ./half...
sending input 96.40...
sending input 13...
sending input 14...
checking for output "62.09"...

Expected Output:
62.09
Actual Output:
62.09