2) Consider the vending machine controller digital system designed in class. Ass
ID: 3603806 • Letter: 2
Question
2) Consider the vending machine controller digital system designed in class. Assume that it is modified so that it accepts quarters: 14 Amount Inputs Outputs Q: Quarter is inputAmount : Value of gum and chips (35 cents) or the D Dime is input N : Nickel is input G : Gum is selected C: Chips is selected RetDime: Return 10 cents DG coin input so far shown on two 7-segment displays DG: Deliver Gum DC : Deliver chips DC RetDime RetNickel: Return 5 cents RetNickel Textual Input/Output Relationship After receiving the necessary amount (35 cents to 50 cents) and the selection is made deliver a gum or chips and return 5 or 10 cents if necessary clock Modify the following in order to accept quarters i) The operation diagram. ii) The high-level state diagram.Explanation / Answer
extern "C" { int ProcC_CallWithParameterList(int, int); int ProcC_CallWithStackFrame(int, int); int __stdcall ProcSTD_CallWithParameterList(int, int); int __stdcall ProcSTD_CallWithStackFrame(int, int); } int main() { coutRelated 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.