Extra CreditOptional. Not required for any homework drop.
We ship a new build every day. Build 1 worked and build 1000is broken. Somewhere in between, something broke, and testingone build takes ten minutes. Find the first broken buildwithout testing all thousand of them.Write your requirements list before you write any code. Input, calculate, output, and anything you had to decide for yourself.
bool IsBroken(int build) to stand in for a real test, returning build >= 734 — then never use the number 734 anywhere else. Your search only learns by calling the test.IsBroken is called, and say before you run it what the most could ever be.First broken build: 734 (tests run: 10)Ten tests to find one build in a thousand. Change 734 to 1, to 1000 and to 500, and check the count each time.
Your requirements list and your program file, named cc-first-bad-build.