Prog6_TAK

ATTACHED FILE(S)
This milestone will help prepare you forProject Two. You will begin your work with the following scenario in mind:
Congratulations! Your flowchart and pseudocode design have been accepted! You are applying for a position as a software developer, and the company would now like you to move to the next round of code design. Remember, the company gave you three different possible programming challenges:
1.
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.
1.
Spaceship Race Game
: 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.
1.
Rock-Paper-Scissors Game
: 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 value 1 to represent rock, 2 to represent paper, and 3 to represent scissors. The human user will input 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 computer won, as well as the number of tied games.
You will now begin to write a Coral program to demonstrate your programming skills. Use the flowchart and pseudocode you designed in Project One as a basis for the code you will create. This will reflect the logic you will implement in your program.
Prompt
The goal of this milestone is to use Coral to program one of the loops you will need for your finalized program in Project Two. This will help you define the logic, flow, and sequence of the game.
For this work, you will write code in Coral for your selected programming game by accessing the activity in the zyBook. Note that links for each are provided in the Scenario section. The work you complete will be based on your flowchart and pseudocode designs from Project One. Be sure to refer to any feedback you received for Project One prior to beginning coding in Coral.
Specifically, you must address the following rubric criteria:
· Determine thevariablesand 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 (e.g., integer or float) of each variable. Consider your inputs and outputs for the program as you work.
· Initializethe variables using appropriate data values. Where necessary, assign an initial value to each variable. Note that variables that obtain an initial value from user input do not require initializing. For example, before you start simulating any of the games, there should be zero wins and losses.
· Set abranchthat uses conditionals to define the logic of the game. This must meet the requirements of the program. This includes using the following:
· IF
· IF-ELSE
· IF-ELSE-IF
Statements 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 oneloopto define the logic, flow, and sequence of the game. This must meet the requirements of the program. Reference the Brief Tutorial on Coral, linked in this week’s Resources section, for a reminder of how to create loops in Coral. Use a WHILE or FOR loop and the appropriate relational operators (==, !=, <, >, <=, and >=). Avoid infinite loops by ensuring the loop has an exit condition using the appropriate relational operator.
· Cracked Egg Game: Write code that will determine if one egg is hard boiled or raw.
· Spaceship Race: Write code that will apply a “boost” value to one spaceship in the race toward the distant star.
· Rock-Paper-Scissors: Write code that will play the game once.
· Apply necessaryarithmetic operations. Note that mathematical operators include +, -, *, /, and % (modulo). This must meet the requirements of the program. For example, in each of the games, you will want to keep track of wins and losses.
· Cracked Egg Game: Keep track of whether the hard-boiled egg or raw egg was chosen.
· Spaceship Race: Keep track of the distance traveled in the first round.
· Rock-Paper-Scissors: Keep track of the player who won the first round in the Rock-Paper-Scissors game.
· Write code usingbest practicesincluding appropriate syntax and commenting. This includes the following:
· Using descriptive names for your variables
· Using the correct formatting structure with appropriate indentations
· Using appropriate comments relating to your code
Guidelines for Submission
Once you have completed the TXT file, submit it for grading.
This study source was downloaded by 100000804431834 from CourseHero.com on 06-03-2022 08:26:44 GMT -05:00
https://www.coursehero.com/file/119631451/IT-423-project-one-RMcQueendocx/
This study source was downloaded by 100000804431834 from CourseHero.com on 06-03-2022 08:26:44 GMT -05:00
https://www.coursehero.com/file/119631451/IT-423-project-one-RMcQueendocx/

Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more