Question: You are applying for a position as a software developer for a company that develops educational games for children. For part of the application process,

You are applying for a position as a software developer for a company that develops educational games for children. For part of the application process, the company has given you three different possible programming problems, from which you are responsible for selecting one to solve.
The three possible programming problems are as follows:
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 users guess, and whether the user won or lost is given as output.
Spaceship Race: There are two spaceships racing across the galaxies toward a distant star. The spaceships make progress by getting a "boost," or a value between 0 and 10. The first spaceship to reach the distant star wins. The distance of the star the spaceships are racing toward is provided as input by the user (a value between 25 and 100). The boost value is determined from the computer generating a random number between 0 and 10. The object is to have the spaceships race, and then as soon as one spaceship reaches the destination, which spaceship won or if there was a tie is provided as output.
Rock-Paper-Scissors: This is a game of chance normally played between two people. Similar to flipping a coin or drawing straws, it can be used as a method for determining a random winner. The rules of the game require that each player forms one of three shapes with their hand at the same time. The shapes are as follows: Rock, which is represented by a closed fist, will beat scissors because rock can crush scissors. Paper, which is represented by a flat hand, will beat rock because paper can cover rocks. Scissors, which are represented by the index and middle fingers forming a V, will beat paper because scissors can cut through paper. In the computer version of this game, the user will play against the computer. The human user will choose rock, paper, or scissors, and the computer will also randomly choose rock, paper, or scissors. Use the integer values 1 to represent rock, 2 to represent paper, and 3 to represent scissors. The human user will input either 1,2, or 3. The computer will then choose a random number between 1 and 3. Based on the rules of the game, the computer will give output to show whether the user or the computer wins the game, or if it is a tie. The user will play 10 games and, at the conclusion of those 10 games, the computer will output the number of times the user won, the number of times the computer won, as well as the number of tied games.
Prior to developing the Coral program for the programming problem you choose, the company would first like to see your flowchart design. This will be used to later guide your work on the pseudocode and code, but for now you will not be creating either. Your focus should be only on walking through the logic of one of these programs, using a flowchart.
each flowchart, you should have approximately between 15 and 20 steps. Be sure to carefully read through the description of your selected game prior to developing your flowchart. Specifically, you must address the following rubric criteria: Determine the appropriate inputs and outputs for the situation. Determine what the game you have selected will require the user to enter as an input. Think about where the user needs to make a choice and where the computer will choose by random selection. Design branches to establish the logic of the solution. The direction should be readable and each path should have an outcome that makes sense with the logic of the solution. Design appropriate loops to establish the logic of the solution. The Cracked Egg and Rock-Paper-Scissors games will use a FOR loop since both games will run a specified number of times (12 and 10 respectively.) The Spaceship Race game will use a WHILE loop since the body of the loop will run as long as neither spaceship reaches the user input destination (a value between 25-100). Apply correct symbols to convey the logic in the flowchart. Use oval, diamond, rectangle, Parallelogram, arrows

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Programming Questions!