Conduct a grammatical parse of the following user story and create a list of potential class operations: Citizens can log onto a website and report the location and severity of potholes. As potholes are reported they are logged within a "public works department repair system" and are assigned an identifying number, stored by street address, size (on a scale of 1 to 10), location (middle, curb, etc.), district (determined from street address), and repair priority (determined from the size of the pothole).
What will be an ideal response?
Look at the verbs in the user story. Operations can be divided into four broad categories:
(1) operations that manipulate data in some way (e.g., adding, deleting, reformatting, selecting)
(2) operations that perform a computation
(3) operations that inquire about the state of an object, and
(4) operations that monitor an object for the occurrence of a controlling event.
Computer Science & Information Technology
You might also like to view...
Which of the following is not a testing or debugging technique?
a) transparent testing b) bottom-up testing c) displaying function names d) trace of execution
Computer Science & Information Technology
Which of the following is NOT a class used in constructing a menu system?
A) JMenuItem B) JCheckBoxMenuItem C) JComboBoxMenuItem D) JRadioButtonMenuItem
Computer Science & Information Technology