Advertisement
akosiraff

Download Project7

Dec 18th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.19 KB | None | 0 0
  1.  
  2. Download: https://solutionzip.com/downloads/project7/
  3. ## Background Information:
  4. ### Project overview:
  5. Create an interactive graphical application using input files and mouse event handling.
  6. Your application shall read the given input file and create a visual application that provides output to a user based on mouse clicks.
  7. See the example GIF below for reference while review the [Project Requirements](#project-requirements) below.
  8. ![Sample run of applciation](demo.gif)
  9. ### Project Requirements:
  10. Your application must function as described below:
  11. 1. Upon starting your application, the user shall be prompted with a file chooser to select the input file.
  12. 2. After selecting the file (format given below [Input File Format](#input-file-format)), the user should see a graphical display of the rectangles given in the input file selected.
  13. 3. The user shall then be able to click inside any of the colored boxes shown and a message box should show the string given in the file for the box clicked.
  14. 1. Clicking within the frame, but outside of any boxes, should display an error message.
  15. 4. To end the application, the user will click the close button in the top left (Windows) or top right (Mac) of the frame.
  16. ### Input File Format
  17. All fields will be given as integers, with the exception of the STRING_TO_DISPLAY fields.
  18. “`
  19. FRAME_WIDTH FRAME_HEIGHT
  20. X_OFFSET_1 Y_OFFSET_1 WIDTH_1 HEIGHT_1 RED_1 GREEN_1 BLUE_1 STRING_TO_DISPLAY_1
  21. X_OFFSET_2 Y_OFFSET_2 WIDTH_2 HEIGHT_2 RED_2 GREEN_2 BLUE_2 STRING_TO_DISPLAY_2
  22. “`
  23. #### Sample data
  24. “`
  25. 720 520
  26. 10 10 100 150 192 251 30 ADM Grace Hopper
  27. 110 10 300 100 249 61 27 Alan Turing
  28. 510 10 100 50 156 109 95 Edsger Dijkstra
  29. 210 110 500 50 187 151 59 Floyd Warshall
  30. 10 160 200 150 10 84 134 Joseph O’Rourke
  31. 210 210 200 100 253 104 4 Jin Akiyama
  32. 510 210 100 250 134 231 143 Vašek Chvátal
  33. 10 310 100 50 15 183 101 Erik Demaine
  34. 310 310 200 150 60 110 90 Bjarne Stroustrup
  35. 10 360 300 150 147 200 7 Walter Savich
  36. “`
  37. ### Implementation Notes:
  38. 1. Create a project that is object oriented, therefore there should be several classes.
  39. 2. You can assume that the file will match the exact format given above.
  40. 3. All rectangles defined in the input data can be assumed to be non-overlapping, so your app should show one message per click.
  41. 4. UML
  42. 1. The class diagrams should be created in at multiple iterations.
  43. 1. The first iteration should be done before you code and should provide a design that the code follows.
  44. 2. The second iteration should be completed after the code is complete and should reflex the *exact* class structure of you final program.
  45. 3. The class diagrams should include
  46. 1. Access specifier (- or +).
  47. 2. All instance fields with types.
  48. 3. All methods with return type and parameter types.
  49. 4. Associations, generalization (inheritance), aggregation and multiplicity .
  50. 5. Stereotyping – interface or abstract classes.
  51. 4. Create a word document explaining the differences and the rationale behind the differences between the final result of the two series of iterations.
  52. A difference is expected as it is extremely difficult to anticipate every design characteristic prior to coding.
  53.  
  54. Download: https://solutionzip.com/downloads/project7/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement