Advertisement
Guest User

Untitled

a guest
Sep 19th, 2014
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. jharvard@appliance (~/Dropbox/pset1): make greedy1
  2. make: 'greedy1' is up to date.
  3. jharvard@appliance (~/Dropbox/pset1): ./greedy1
  4. Oh hai! How much change is owed?
  5. .15
  6. 2
  7. jharvard@appliance (~/Dropbox/pset1): ./greedy1
  8. Oh hai! How much change is owed?
  9. 1.6
  10. 7
  11. jharvard@appliance (~/Dropbox/pset1): ./greedy1
  12. Oh hai! How much change is owed?
  13. 23
  14. 92
  15. jharvard@appliance (~/Dropbox/pset1): ./greedy1
  16. Oh hai! How much change is owed?
  17. 4.2
  18. 18
  19. jharvard@appliance (~/Dropbox/pset1): check50 2014/x/pset1/greedy greedy.c
  20. :) greedy.c exists
  21. :) greedy.c compiles
  22. :) input of 0.41 yields output of 4
  23. :) input of 0.01 yields output of 1
  24. :( input of 0.15 yields output of 2
  25. expected output, but not "32769n"
  26. :( input of 1.6 yields output of 7
  27. expected output, but not "32774n"
  28. :( input of 23 yields output of 92
  29. expected output, but not "32859n"
  30. :( input of 4.2 yields output of 18
  31. expected output, but not "22n"
  32. :) rejects a negative input like -1
  33. :) rejects a non-numeric input of "foo"
  34. :) rejects a non-numeric input of ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement