Question
(a) Create a VB.NET program that will give change as given by a vending machine. Allow the user to enter cost of the item to be purchased, amount given by the user to acquire the item. When button 'BUY' is clicked, show in a nicely formatted way following pieces of information -
The total quantity of change to be returned
The number of quarters
The number of dimes
The number of nickels
The focus must return to the first textbox in the GUI.
(b) What changes have to be made to accept $ and cents.
(c) What modification must be completed if the vending machine runs out of dimes?
(d) Same as (c), except run out of nickels.