Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

16] Create a library, complete with source file dice.cpp [2], header dice.h [2],

ID: 3790824 • Letter: 1

Question

16] Create a library, complete with source file dice.cpp [2], header dice.h [2], makefile Makefile [2], and a main code main.cpp [2]. The library should contain functions: [2] void di::seed(), which seeds the random number generator. [2] int di::random(int a, int b), which obtains a random number in range [a, b]. [4] int di::dice(int A, int X, int B) which obtains a random number by rolling the dice AdX+B. See the following article on dice notation for precisely what this means. Note that you must generate random numbers for all X dice. https://en.wikipedia.org/wiki/Dice_notation MUST BE IN C++ AND MUST BE THE ACTUAL CODE

Explanation / Answer

// gcc -std=c99 -o go go.c neuron.c -lm #include #include #include #include "neuron.h" int main(int argc, char *argv[]) { int ncells = 100; // # cells to process char fnum[4], fname[128]; // filename strings double celldirs[40], cellspks[40]; // data for each cell double PD[ncells], plate_out[9]; // store cell PDs // loop to process each cell int i; for (i=1; i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote