Question: Write a new program to create the game of EVEN or ODD. Two players randomly generate a number between 1 1 0 0 . If

Write a new program to create the game of EVEN or ODD. Two players randomly generate a number between 1100. If the sum of both numbers generated is EVEN, Player 1 wins. If the sum is ODD, Player 2 wins.
Step 1: (50 points)
Use a random number generator (random number in Labview randomly selects a rational number between 0 and 1) and scale it to represent a number from 1100, avoiding 0. Assign the number
generated by two random number generators as outcomes of each player. Create separate numerical indicators for Player 1 and Player 2s outcomes. Create an indicator for sum of the outcomes and also a string indicator for winner of the game. Write a code to determine the winner. Display the winner!
Step 2: (40 points)
Repeat this code in a loop for 10 times and whoever wins most of the games is declared the champion. Display this Champion in a string indicator as well. If it is a Draw, display DRAW in the Champion indicator. Write a code to determine the champion. Display the Champion!
Step 3: (5 points)
Put your name and date in a string constant on front panel.
Note - Attached, you can find the stage I am currently at. However, I got stuck trying to determine even and odd numbers and connecting the functions together. Your help and instructions for each of the steps would be greatly appreciated.
 Write a new program to create the game of EVEN or

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 Databases Questions!