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

How to make a Yahtzee game in C++? It\'s beginners stuff but i have no clue. It

ID: 3650052 • Letter: H

Question

How to make a Yahtzee game in C++? It's beginners stuff but i have no clue. It should out pute like this. john%>yahtzee Turn #1 Your first roll is: 1 1 5 4 1. (Type 'y' to re-roll or 'n' to stay) n n y y n Your second roll is: 1 1 3 2 1. (Type 'y' to re-roll or 'n' to stay) n n y y n Your third roll is: 1 1 1 2 1 Under what category would you like to record your score: 1 - Ones, 2 - Twos, 3 - Threes, 4 - Fours, 5 - Fives, 6 - Sixes, 7 - Three of a Kind, 8 - Four of a Kind, 9 - Full House, 10 - Small Straight, 11 - Large Straight, 12 - Yahtzee, 13 - Chance, 14 - Scratch Choice (1-14): 1 1 - Ones 4 2 - Twos 0 3 - Threes 0 4 - Fours 0 5 - Fives 0 6 - Sixes 0 7 - Three of Kind 0 8 - Four of Kind 0 9 - Full House 0 10 - Sm. Straight 0 11 - Lg. Straight 0 12 - Yahtzee 0 13 - Chance 0 Additional info: a. Your program should randomly seed the random number generator so it doesn

Explanation / Answer

#include #include #include using namespace std; int main() { int sum = 0; //sum of score int num[5]; //number of rolls int count[6]; //the possible cases from the die int score[13]; //marks the 13 possible scores cout =1) { score[7] = sum; } else if (count[i]/3 >=1 && count[i]/2 >=1) { score[8] = 25; } ((count[0]*count[1]*count[2]*count[3]) ==1 || (count[1]*count[2]*count[3]*count[4]) == 1 || (count[2]*count[3]*count[5]) ==1) { score[9] = 30; } ((count[0]*count[1]*count[2]*count[3]*count[4]) == 1 || (count[1]*count[2]*count[3]*count[4]*count[5]) ==1) { score[10] = 40; } (count[i]/5 >= 1) { score[11] = 50; } score[12] = sum; //end of 13 score { cout
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