This continues homework 3. It should be pretty easy!
You should hand in three files:
subtract.cpp, implementing only the overloaded subtraction operator for intervals (any other functions in this file should be static, in order to not be externally visible)
and.cpp, implementing only the overloaded bitwise-and operator
test.cpp, containing a main() and running your unit tests
Here are a few things that are different from HW3:
you must use the class defined in interval.h, do not modify it! all of its data is public so you can freely access its data from regular C++ functions
you must hand in 3 files in Canvas, please DO NOT hand in a link where I can get the files
the interval is now 6 bits wide instead of 5 -- don't forget to update your code!
I really want everyone to get this right, so I am making a one-time bonus offer to run your code against my test harness before the due date. To take advantage of this offer, hand in your and.cpp and subtract.cpp and send me a message saying that I should look for bugs in them. I will do this just once for each student! Also I'm traveling Fri, Sat, Sun, Mon so I may not get to this as quickly as I normally would. However I will check messages in the evenings while traveling (hopefully).
Can't change a rubric once you've started using it.