Question: The instructions are broad because you can use any data you deem necessary. This is in C. This is a template that you can use.
The instructions are broad because you can use any data you deem necessary. This is in C.
This is a template that you can use.


Instructions:



A programming template/outline just for your reference. It is by no means a complete program or defines all the necessary variables. You do not have to follow it. /* project header */ #include #include include typedet struct person int ID int mask: 1/0: not wear Eace maski 1: Year face masks int vaccine: 1/0: not vaccinated: 1: vaccinated: int status: 1/0: healthy: 1: Infected: 2: recovered; 3: quarantined int days Infected: // will recover after 14 days int days_quarantined: 1/ quarantine will be over after 14 days Personi #define POPULATION 50000 // define global variables // define function prototypes with documentation void Initialization (...) // document this function void simulation (...); // document this function int main(int arge, char. argv[ 1) 117 declare variables that you need to keep information // use comments to document these variables int days - 0 // number of days to run the simulation, provided // by the user from command line (as number of weeks) float p_infections 11 probability of getting infected without protection FILE IN, OUT; // FILE pointers for the two files int i, j, ki 11 temporary variables such as loop variables Person A POPULATION); // an array of people for the population // check command line argument and input/output files, terminate on error; // getting values of the parameters from the command line and input file: days - 7atoi (argv[1]); // value from the command line Iscanf (IN, 41", 6p_infection); // value from Input file Initialization (OUT, AP infection, ...); // add other necessary parameters for the function call // initialize the population based on the obtained value // these information will be printed to the output file for (10; i #include include typedet struct person int ID int mask: 1/0: not wear Eace maski 1: Year face masks int vaccine: 1/0: not vaccinated: 1: vaccinated: int status: 1/0: healthy: 1: Infected: 2: recovered; 3: quarantined int days Infected: // will recover after 14 days int days_quarantined: 1/ quarantine will be over after 14 days Personi #define POPULATION 50000 // define global variables // define function prototypes with documentation void Initialization (...) // document this function void simulation (...); // document this function int main(int arge, char. argv[ 1) 117 declare variables that you need to keep information // use comments to document these variables int days - 0 // number of days to run the simulation, provided // by the user from command line (as number of weeks) float p_infections 11 probability of getting infected without protection FILE IN, OUT; // FILE pointers for the two files int i, j, ki 11 temporary variables such as loop variables Person A POPULATION); // an array of people for the population // check command line argument and input/output files, terminate on error; // getting values of the parameters from the command line and input file: days - 7atoi (argv[1]); // value from the command line Iscanf (IN, 41", 6p_infection); // value from Input file Initialization (OUT, AP infection, ...); // add other necessary parameters for the function call // initialize the population based on the obtained value // these information will be printed to the output file for (10; i