Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Labview create the VI CHAPTER 2 Virtual Instruments D2.2 In this design problem you will create a VI that simulates a vending machine. The

Using Labview create the VI image text in transcribed
CHAPTER 2 Virtual Instruments D2.2 In this design problem you will create a VI that simulates a vending machine. The vending machine sells three items: 1. Candy bars for $0.80 each, 2. Potato chips for $0.60 a bag, and 3. Chewing gum for $0.40. The vending machine accepts only five dollar bills, one dollar bills, quarters, dimes, and nickels. Inputs on the front panel should include a numeric control for the user to enter the amount of money inserted into the vending machine and three more integer numeric controls that designate how many of each item the user wishes to purchase from the vending machine. Your VI should check to see if the amount of money input is greater than or equal to the total cost of the selected purchase. If there is not enough money, display a message notifying the customer that more money is needed to meet the total, using the Display Message to User Express VI. Then light an LED indicator on the front panel and display the amount needed on a numeric indicator. If enough money is inserted into the vending machine based on the user selection, output the change the user will receive, showing the quantity of dollar bills, quarters, dimes, and nickels to be dispensed by the vending machine. CHAPTER 2 Virtual Instruments D2.2 In this design problem you will create a VI that simulates a vending machine. The vending machine sells three items: 1. Candy bars for $0.80 each, 2. Potato chips for $0.60 a bag, and 3. Chewing gum for $0.40. The vending machine accepts only five dollar bills, one dollar bills, quarters, dimes, and nickels. Inputs on the front panel should include a numeric control for the user to enter the amount of money inserted into the vending machine and three more integer numeric controls that designate how many of each item the user wishes to purchase from the vending machine. Your VI should check to see if the amount of money input is greater than or equal to the total cost of the selected purchase. If there is not enough money, display a message notifying the customer that more money is needed to meet the total, using the Display Message to User Express VI. Then light an LED indicator on the front panel and display the amount needed on a numeric indicator. If enough money is inserted into the vending machine based on the user selection, output the change the user will receive, showing the quantity of dollar bills, quarters, dimes, and nickels to be dispensed by the vending machine

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

The Database Experts Guide To SQL

Authors: Frank Lusardi

1st Edition

0070390029, 978-0070390027

More Books

Students also viewed these Databases questions

Question

Describe the difference between passive and inline packet capture

Answered: 1 week ago

Question

LO1 Understand risk management and identify its components.

Answered: 1 week ago