Week4 LAB- for CIS170 at devry university PDF

Title Week4 LAB- for CIS170 at devry university
Author Anthony Cossio
Course Programming
Institution DeVry University
Pages 4
File Size 177.3 KB
File Type PDF
Total Downloads 41
Total Views 139

Summary

class assignment for the above referenced title at devry university . good luck follow the steps and you will be alright....


Description

CIS170C Lab Report Template

Rubric

Point distribution for this activity: Lab Activity Document

Points possible Total points

Points received

40

(1) Code Copy and paste the code for the labs. If there are multiple parts to the lab, please label each part. For each program you write ensure you have proper commenting including a comment block (example below) Example comment block: // --------------------------------------------------------------// Programming Assignment: LAB 4 // Developer: // Date Written: // Purpose: // ---------------------------------------------------------------

(2) Screenshot Copy and paste a screenshot of the program working. If there are multiple parts to the lab, please label each part. The screenshot should show the entirety of the program.

// // // // // //

--------------------------------------------------------------Programming Assignment: LAB4 Developer: Anthony Cossio Date Written: May 25th, 2021 Purpose: Coin Toss and Dice Roll ---------------------------------------------------------------

#include #include #include using namespace std; //Protoype Functions int flipCoin(void); int rollDice(int); //Main Function int main() { //Declare Variables int toss, numSides; char choice; unsigned seed = time(0); srand(seed);//Seed the random number generator choice = 'C'; cout choice; } if (choice == 'C') {//Generator solves for coin flip cout > toss; for (int i = 0; i < toss; i++) { if (flipCoin() == 1) {//Determines tails cout...


Similar Free PDFs