Description
Cracked Egg Game: There are a dozen eggs in a basket; some are hard boiled and some are raw. The object of this game is for the user to guess the number of hard-boiled eggs prior to playing the game. The computer then simulates cracking all 12 eggs, using a random number 0 or 1 to simulate raw or hard boiled. The number 0 should represent raw eggs and the number 1 should represent hard boiled. The computer must keep track of the number of hard-boiled eggs. At the conclusion of cracking all 12 eggs, the actual number of hard boiled is compared to the user’s guess, and whether the user won or lost is given as output.For this project, you will write code in Coral for the programming gameDetermine the variables and relevant data types of each variable. Consider the necessary variables required to implement the logic of your game, as well as the relevant data type (i.e., integer or float) of each variable.Initialize the variables using appropriate data values. Where necessary, assign an initial value to each variable.Set branches that use conditionals to define the logic of the game. This must meet the requirements of the program. You may use the following types of statements to accomplish this:IFIF-ELSEIF-ELSE-IFStatements must also use the appropriate relational operators, which are as follows:== (equals)!= (not equal)< (less than)> (greater than)<= (less than or equal)>= (greater than or equal)Create loops to define the logic, flow, and sequence of the game. Cracked Egg Game: This game will include looping 12 times. Determine what loop to use, then execute it based on program requirementsApply necessary arithmetic operations.