Question: Please the main question is problem 2, writing a C code to verify that the code of example 5.11 is well written. the code of
Problem 2. Write C codes to automatically check or verify that the C codes for the "Craps" game in example 5.11 within the textbook are written correctly. Due to the modularity of the software architecture in GC codes, you should verify the function for "rolldice" to make sure it is working properly so that this function could be reused later on as a library function. Most important of all, you need to write C codes to verify that the rules implemented in the switch statement within the main function is written properly. Make sure you cover every case as the software in this example is generated randomly via the predefined "rand" and "srand" math library functions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
