Need Help ?

Home / Expert Answers / Other / Description Cracked Egg Game: There are a dozen eggs in a basket; some are hard boiled and some are

Description Cracked Egg Game: There are a dozen eggs in a basket; some are hard boiled and some are ...


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.



Radioactive Tutors

Radio Active Tutors is a freelance academic writing assistance company. We provide our assistance to the numerous clients looking for a professional writing service.

NEED A CUSTOMIZE PAPER ON THE ABOVE DETAILS?
Order Now


OR

Get outline(Guide) for this assignment at only $10

Get Outline $10

**Outline takes 30 min - 2 hrs depending on the complexity and size of the task
Designed and developed by Brian Mubichi (mubix)
WhatsApp