Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a new program in LABVIEW to create the game of EVEN or ODD. wo players randomly generate a number between 1 1 0 0

Write a new program in LABVIEW to create the game of EVEN or ODD. wo 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 in a string constant on front panel.
Note - I don't have much experience on LabView, so I would greatly appreciate your help/instructions through all the steps on this assignment. Thank you.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems A Practical Approach To Design Implementation And Management

Authors: THOMAS CONNOLLY

6th Edition

9353438918, 978-9353438913

More Books

Students also viewed these Databases questions

Question

How effective have these groups been in the past?

Answered: 1 week ago

Question

What are their reputations?

Answered: 1 week ago

Question

How serious a response is warranted to this situation?

Answered: 1 week ago