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 "You will owe $..."

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

Expected Output:
33.00
Actual Output:
You will owe $32.50 each!

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

Cause
expected "33.75", not "You will owe $..."

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

Expected Output:
33.75
Actual Output:
You will owe $33.13 each!

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

Cause
expected "64.69", not "You will owe $..."

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

Expected Output:
64.69
Actual Output:
You will owe $63.75 each!

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

Cause
expected "62.09", not "You will owe $..."

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

Expected Output:
62.09
Actual Output:
You will owe $61.21 each!