Assignment Description rite a C program called \"pop\" which simulates the opera
ID: 3848200 • Letter: A
Question
Assignment Description rite a C program called "pop" which simulates the operation of a soft drink vending machine. Your program should meet the following requirements. The user running the program will simulate both service and customer actions Service/Maintenance Requirements set the selling price range 30 to $1.05) from a command line argument cents only provide a specific message (as in sample below for the following error cases and return to the operating system o command line argument is missing o prices out of range o price not a multiple of 5 with a valid selling price, put machine in-service for continual sales (See Customer Requirements as a maintenance action hidden from menu), allow service person to shutdown exit the program altogether at the coin prompt by pressing E or e; refund any pending amountExplanation / Answer
Hi,
I have hevily commented the code for deeper understanding. Leave a comment if you find any difficulties. Also give a thumbs up if the answer helped you.
//Code starts here
//Code ends here
Output is same as the test case provided in the question
Hope it helps!
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.