WhatsApp00963951432013 Admin
عدد المساهمات : 2429 نقاط : 183574 السٌّمعَة : 4 تاريخ التسجيل : 20/09/2008 العمر : 48 الموقع : www.aoua.123.st
 موضوع: ARAB OPEN UNIVERSITY Faculty of Computer Studies CS240, Introduction to computer graphics Fall 20152016 12122015 Note: This TMA comprises of five questions. The TMA is marked out of 60. All questions should be answered. TMA Marking As per AOU rules and الأربعاء ديسمبر 02, 2015 5:40 pm  
 ARAB OPEN UNIVERSITY Faculty of Computer Studies CS240, Introduction to computer graphics Fall 20152016 12122015 Note: This TMA comprises of five questions. The TMA is marked out of 60. All questions should be answered. TMA Marking As per AOU rules and regulations, all students are required to sit for MCQ exam or any assessment tool after the submission of their TMAs in order to prove that their TMAs are done by themselves. Plagiarism Warning As per AOU rules and regulations, all students are required to submit their own TMA work and avoid plagiarism. The AOU has implemented sophisticated techniques for plagiarism detection. You must provide all references in case you use and quote another person's work in your TMA. You will be penalized for any act of plagiarism as per the AOU's rules and regulations. Declaration of No Plagiarism by Student (to be signed and submitted by student with TMA work): I hereby declare that this submitted TMA work is a result of my own efforts and I have not plagiarized any other person's work. I have provided all references of information that I have used and quoted in my TMA work. ID and Name of Student Signature Date ……………………………………………………………………………… …………………………………………………………… ……………………………………… 2 Question one [4 marks] Computer graphics has two main tasks namely modelling and rendering, briefly define each. Question Two [4 marks] State the main steps for programming in JOGL Question Three [17 marks] a. Write down a Java 2D Program using Graphics method to plot the following shape [7 marks] b. Run the following code segment and print the output [10 Marks] public void paintComponent(Graphics g){ super.paintComponent(g); Graphics2D g2=(Graphics2D) g; Shape S1=new Ellipse2D.Double(0, 0, 200, 200); Shape S2=new Rectangle2D.Double(100, 100, 100, 100); Shape S3=new Rectangle2D.Double(0, 0, 100, 100); Area a1; Area a2; Area a3; a2= new Area(S2); a1= new Area(S1); a3=new Area(S3); a2.add(a3); a1.intersect(a2); } (10,8) (10,50) (60,50) (60,8) 3 Question Four [20 marks] a. Write a Java 2D code to develop the following parametric equation: Given that a=20 and b=20. [3 marks] b. Quadratic curves are commonly used to construct flexible graphical shapes. Mention how many points are required to draw a quadratic curve and mention the function used in Java2D to construct such curve discussing the function parameters. [4 marks] c. Determine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using even Determine (by shading) the interior of following shape using even Determine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using even Determine (by shading) the interior of following shape using even Determine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using even Determine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using even Determine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using even Determine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using even Determine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using even Determine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using even Determine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using even Determine (by shading) the interior of following shape using evenDetermine (by shading) the interior of following shape using evenodd ruleodd ruleodd ruleodd rule odd ruleodd ruleodd rule assuming the path point ordering is as specified on figure assuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figure assuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figure assuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figure assuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figure assuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figure assuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figure assuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figure assuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figure assuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figure assuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figureassuming the path point ordering is as specified on figure . [5 marks] d. Mention the meaning of each of the following lines [8 marks] a1.exclusiveOr(a2); g2.translate(180, 0); a1.subtract(a2) g2.fill(a1); given that a1,a2 are declared as Area and g2 is declared as Graphics Question Five [15 marks] a. What is meant by winding rule? Mention and differentiate between two of the winding rules used in Java2D. [5 marks] 4 b. Write a Java code to draw the following shape using constructive area geometry [10 marks] End of questions _________________ AOU حلول جميع الواجبات موبايل – واتس أب 00963951432013mustafaalbeda@hotmail.comحلول مضمونة لجميع الواجبات ومشاريع التخرج حلول الواجبات غير مكررة ونسبة التشابه أقل من 10% 
