Draw a context diagram : The following is the initial requirements of a smart vending machine control system. The system enables customers to buy products from the machine by inserting money in the money detection hardware or using Bitcoins sent from a mobile app for the machine, then selecting a product. It also enables a maintenance operator to update the product database of the machine using the mobile app.

Draw a DFD0 showing the data processing functions and the control functions of the above system
Draw a STD to specify the C-Spec of the main control function S1 in DFD0 which captures the states of the above system.

2) The Figures below show of the ATM example discussed in class and the C-Spec of the main controller.

(12 points) Draw a structure chart showing the design of the ATM System. Label clearly all the modules as well as the data and control couples on the invocation lines.
(8 points)Show the M-Spec of the top level module in the design. (Hint: Show how the design script in the body of the M-Spec implements the C-spec of the main controller

Sample Solution

This question has been answered.

Get Answer