Question: Need help with this c++ program . i posted what needs to be done below. I also need to use srand and have if else

Need help with this c++ program . i posted what needs to be done below. I also need to use srand and have if else statements. I posted my code below just have problems getting the total of both players and tthe winner. if someone could help with maybe some steps thatll be awesome. go ahead and use my code as a template please and modify what i did wrong.

Need help with this c++ program . i posted what needs tobe done below. I also need to use srand and have if

Program: Dice Game Write a C++ program simpleDice.cpp for a simple, dice-based game involving two players. Use the seed concept to ensure truly random numbers. .Each player gets to throw the dice thrice, alternately Report the sum of numbers in the three throws for both players . Report the result. Who won, or if it is a tie. Sample output: This program runs a single dice game for two players Each player throws thrice. Total reported. Player 1, throw 1: 5 Player 2, throw 1: 1 Player 1, throw 2: 3 Player 2, throw 2: 4 Player 1, throw 3: 2 Player 2, throw 3: 5 Player 1 total: 10 Player 2 total: 10 Result: It is a tie! K] File: simpleDice.cpp CYUserstoorn.Downloads-/GRASP CSU (C++) File Edit View Build Project Settings Tools Window Help Files Sort By CUsenstcomDo Custom Office T Visual Studio 2017 sl roview.doex AC201 Accounts.txt Accounts1.tct AreaOf Triangle.java batman.cpp batman. batman2.epp batman2.exo batman2.o batman3.cpp batman3.exe CheckLeap.class classwork.class classwork Java Compile Messages jGRASP Messages Run VO Interactions Stop Clear Copy Browse Find Debug Col:1 Code:35 Top:t 4:53 PM O Type here to search 2/14/2019 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To create a simple dice game in C you need to ensure that each player rolls the die three times and their results are added up to determine a winner o... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!