Discover the answers you need at Westonci.ca, a dynamic Q&A platform where knowledge is shared freely by a community of experts. Our platform provides a seamless experience for finding reliable answers from a network of experienced professionals. Join our platform to connect with experts ready to provide precise answers to your questions in different areas.

1. Following is the specifications for simulating an automatic stamp vending machine (a) It should dispense 25, 15 and 10 rupees worth stamps (b) It should accept 50, 25, 10 and 5 rupees' coins. (c) It can accept not more than one coin for each transaction. (d) If more than one coin of the same denomination is to be returned as change after dispensing the stamp, the machine cannot do it. Instead the coin should be returned and a 'no change' signal turned on. (e) The machine should dispense the stamp and the right change and must indicate exceptional. cases such as 'insufficient amount tendered', 'no stamp available', 'no change available', etc. Write a program to simulate the machine. The input to the program would be: Amount tendered and the stamp requested (only one stamp). The output of the program should be whether stamp is dispensed or not, the value of the stamp dispensed, the denomination of the coins returned (if any), and no change signal if no change is returned and no stamp if the stamp is not available. The program should execute for a set of data until the user wants to quit. After each transaction the available quantity (i.e. how many) of stamps and coins should be displayed. writev c programme ​

Sagot :

Thank you for choosing our platform. We're dedicated to providing the best answers for all your questions. Visit us again. We hope you found what you were looking for. Feel free to revisit us for more answers and updated information. Stay curious and keep coming back to Westonci.ca for answers to all your burning questions.