Java代写 | AP/ITEC 2610-M&N: Object-Oriented Programming


AP/ITEC 2610-M&N: Object-Oriented Programming

Winter 2020

 Assignment #1


In this assignment you will create a simple program to display a drawing of your choice, subject to the conditions below. You cannot use any of the examples in Chapter 3 or elsewhere in the textbook. Doing so will result in a grade of 0.

Your Task


Create 3 classes following the model shown in Lesson 2 (Chapter 3). Assuming your drawing is called X (though I expect better names), you need to provide the following classes:

  1. X, responsible for drawing your chosen graphic
  2. XComponent, responsible for displaying your drawing
  3. XViewer, your main program responsible for creating the frame for your drawing


Your drawing must meet the following content requirements:

  1. It must contain lines, rectangles and ellipses
  2. It must contain at least 10 components of the three kinds above
  3. It must use at least three colors
  4. It must include a descriptive text, also displayed as a graphic


In addition, your programs must meet the following style requirements:

  1. Use standard Javadoc documentation
  2. Include other comments as needed
  3. Use standard and significant naming conventions
  4. Follow coding standards as described in but as a minimum:
    1. Declare variables one to a line, at the beginning of relevant blocks (except loop variables)
    2. Initialize all variables
    3. Indent correctly using 4 space indentation
    4. Align closing braces to opening braces (if you place opening braces on a separate line) or to the beginning of the statement starting the block
    5. Use constants where appropriate
    6. One statement per line


Marking scheme:

  • 4 marks for the content of the drawing; 0.5 marks will be subtracted for every requirement that was not met; E.g.;
    • A drawing with only 8 components will lose 1 mark
    • A drawing without ellipses (or circles) will lose 0.5 marks
    • A drawing without a text will lose 0.5 marks
    • A drawing with a single color will lose 1 mark
  • 2 marks for correct compilation of the program
  • 1 mark for correct running of the program
  • There are no marks for style components in this assignment, but you are strongly encouraged to follow them. Comments as to poor styling will be provided. Assignment #2 will include marks for coding style, so this will be a preparation effort for the next assignment.


In other words:

  • A program that does not compile can score a maximum of 4 marks
  • A program that does not run can score a maximum of 6 marks (partial marks can be obtained for a program that runs incorrectly)


Important note:

If 2 or more programs are evidently copied from each other, ALL assignments involved will get 0 marks.



Remember: When in doubt, ASK!!




本网站支持淘宝 支付宝 微信支付  paypal等等交易。如果不放心可以用淘宝交易!

E-mail: [email protected]  微信:itcsdx