Question: Lab 5.1 The Coin Changer Implement a program to control a coin changer. A coin changer is built to return change plus dispense a S.35

 Lab 5.1 The Coin Changer Implement a program to control a

Lab 5.1 The Coin Changer Implement a program to control a coin changer. A coin changer is built to return change plus dispense a S.35 candy bar. No more than three coins are to ever be used (There is no need to count the number of coins entered). Coins to be used are dimes and quarters. Write a program to accept or reject the sale based on the coins rendered. Coins rendered are checked by inputs on using push buttons or selector switches when the Request Candy Bar button is pushed. Assume dime 2 is not allowed until dime 1 is on. Assume dime 3 is not allowed until dime 2 is on. That is, dimes enter by filling the slot for dime 1, then dime 2 and finally dime 3 The same sequence is used for q Inputs are as follows: uarters. Dime 1 Quarter 1 Dime 2 Quarter 2 Fig. 5-45 Layout of IVO for Lab Dime 3 Request Candy Bar Outputs are as follows: Accept Change Reject Accept turns on with the Request Candy Bar input and enough money entered. Change tuns on with the Request Candy Bar input and an excess of money Reject turns on with the Request Candy Bar input when no money or not enough money is entered. Option 1: Change the price to S.45 for the candy bar Option 2: Change the price to S.55 for the candy bar. Here 4 coins may be used. (including 1 nickel) Lab 5.1 The Coin Changer Implement a program to control a coin changer. A coin changer is built to return change plus dispense a S.35 candy bar. No more than three coins are to ever be used (There is no need to count the number of coins entered). Coins to be used are dimes and quarters. Write a program to accept or reject the sale based on the coins rendered. Coins rendered are checked by inputs on using push buttons or selector switches when the Request Candy Bar button is pushed. Assume dime 2 is not allowed until dime 1 is on. Assume dime 3 is not allowed until dime 2 is on. That is, dimes enter by filling the slot for dime 1, then dime 2 and finally dime 3 The same sequence is used for q Inputs are as follows: uarters. Dime 1 Quarter 1 Dime 2 Quarter 2 Fig. 5-45 Layout of IVO for Lab Dime 3 Request Candy Bar Outputs are as follows: Accept Change Reject Accept turns on with the Request Candy Bar input and enough money entered. Change tuns on with the Request Candy Bar input and an excess of money Reject turns on with the Request Candy Bar input when no money or not enough money is entered. Option 1: Change the price to S.45 for the candy bar Option 2: Change the price to S.55 for the candy bar. Here 4 coins may be used. (including 1 nickel)

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!