Algorithms
Last updated
Last updated
You will need to plan out your main routine and then at least 2 subroutines using flowcharts and pseudocode. You do not need to represent all subroutines from your structure chart, but do need to include them all in your main routine.
BEGIN main()
choice = 0
WHILE choice is not 5
INPUT choice
IF choice is 1 THEN
AddRock
IF API Request Valid THEN
SearchRock
ELSE
DISPLAY 'Error'
ENDIF
ELSEIF choice is 2 THEN
ViewCollection
ELSEIF choice is 3 THEN
CompareRocks
ELIF choice is 4 THEN
RemoveRock
ELSE
DISPLAY 'Problem between chair and keyboard'
ENDIF
ENDWHILE
END main()