C++ flowchart | Computer Science homework help

 
Flow chart the Craps please make the flowchart
can i get pdf file or anything i can open on the computer and edit if i want to 
code
//System Libraries#include //Input – Output Library#include //Time for rand#include //Srand to set the seed#include //File I/O#include //Format the output#include //Strings#include //Math functionsusing namespace std; //Name-space under which system libraries exist
//User Libraries
//Global Constantsconst float PERCENT=100.0f;//Conversion to Percent
//Function Prototypeschar rollDie(int); //Roll the Dicevoid fileDsp(ofstream &,int [],int [],int,int,int,int); //File Displayvoid scrnDsp(int [],int [],int,int,int,int); //Screen Displayvoid crpGame(int [],int [],int,int &,int &,int &); //Play Craps
//Execution begins hereint main(int argc, char** argv) {//Set the random number seedsrand(static_cast(time(0))); 
//Declare file and game variablesifstream in; //Input Fileofstream out; //Output Fileint nGames; //Number of games, wins/lossesint mxThrw=0,numThrw=0,lmGames=100000000;//Game limiter and Throw statisticsconst int SIZE=13; //Size of our Arraysint wins[SIZE]={}; //Initializing the win arrayint losses[SIZE]={}; //Initializing the loss array 
//Initialize variablesstring inName=”GameInfo.dat”; //String Namechar outName[]=”GameStats.dat”; //Character Array Namein.open(inName.c_str()); //Open the Input fileout.open(outName); //Open the Output filewhile(in>>nGames);//Last value in file becomes the number of gamesnGames=nGames>lmGames?lmGames:nGames;//Limit games if to high 
//Play the game the prescribed number of times.int beg=time(0);//Time the game playcrpGame(wins,losses,SIZE,nGames,numThrw,mxThrw);int end=time(0);//End time of Game play 
//Output the game statistics to the screenout<<“Total time to play these Games in integer seconds = “<(sWins)/nGames*PERCENT<<“%”<(sLosses)/nGames*PERCENT<<“%”<(numThrw)/nGames<(sWins)/nGames*PERCENT<<“%”<(sLosses)/nGames*PERCENT<<“%”<(numThrw)/nGames<

Open chat
%d bloggers like this: