Question: Please use C++ language USING C++ Using functions, write a program that rebuilds a robot over and over using a computer generated dice to choose
Please use C++ language

USING C++
Using functions, write a program that rebuilds a robot over and over using a computer generated dice to choose what pieces to add, then count the number of dice rolls needed.
Requirements:
A function that generates the correct dice roll, either with a return value or a reference parameter.
A function that determines if the robot is complete. To receive any credit, this function CANNOT use any global variables, all the information required must be passed as parameters and it must return a bool .
A function (not main()!) that completes one robot. This is where the variables are declared. This function must call the function that generates the random number and the function the determines if the robot is complete.
main() will call the function that completes one robot. It has to have a loop so I can make robot after robot as long as I want. "Enter 'y' to make another robot"
Output:
The program MUST report all the robot part counts and dice roll count after each dice roll. It can just scroll by if you want or you can ask that 'return' be pressed.
After a robot is built, it MUST pause and ask if the user wishes to build another robot. 'Y' will build another robot from the beginning, 'N' will exit the program.
if you already have You may add this partthis number of parts and no more than this amount. If the dice roll is: Foot A free Foot. The number of Feet is > the number of Legs Leg Torso 2 Legs Torso A free Arm. The number of Arms is > the number of Hands Hand Head Torso Sensor Torso
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
