
Write next_state, the transition function of a download state machine: it returns the state reached from current when e fires, and current unchanged when that pair has no entry in the table.
next_state(IDLE, START)IDLE -> RUNNINGnext_state(PAUSED, FINISH)PAUSED -> PAUSEDnext_state(DONE, START)DONE -> DONEnext_state x3 from IDLE: START, PAUSE, RESUMEIDLE -> RUNNING -> PAUSED -> RUNNINGenum_state.c
Run the tests to grade your code
Write next_state, the transition function of a download state machine: it returns the state reached from current when e fires, and current unchanged when that pair has no entry in the table.
next_state(IDLE, START)IDLE -> RUNNINGnext_state(PAUSED, FINISH)PAUSED -> PAUSEDnext_state(DONE, START)DONE -> DONEnext_state x3 from IDLE: START, PAUSE, RESUMEIDLE -> RUNNING -> PAUSED -> RUNNINGenum_state.c
Run the tests to grade your code
Memory will appear here