AOU حل جميع الواجبات ومشاريع التخرج لجميع الفروع والتخصصات AOU
حلول مضمونة وغير مكررة لجميع الواجبات
 
مدرسين خصوصيين – ملخصات هامة مجانية لجميع المواد
خدماتنا لجميع فروع الجامعة ولجميع الأقسام الدراسية
 
واتس اب 00963957547725
mustafaalbeda@hotmail.com
AOU حل جميع الواجبات ومشاريع التخرج لجميع الفروع والتخصصات AOU
حلول مضمونة وغير مكررة لجميع الواجبات
 
مدرسين خصوصيين – ملخصات هامة مجانية لجميع المواد
خدماتنا لجميع فروع الجامعة ولجميع الأقسام الدراسية
 
واتس اب 00963957547725
mustafaalbeda@hotmail.com
AOU حل جميع الواجبات ومشاريع التخرج لجميع الفروع والتخصصات AOU
هل تريد التفاعل مع هذه المساهمة؟ كل ما عليك هو إنشاء حساب جديد ببضع خطوات أو تسجيل الدخول للمتابعة.

AOU حل جميع الواجبات ومشاريع التخرج لجميع الفروع والتخصصات AOU

AOU حلول مضمونة وغير مكررة لجميع الواجبات ومشاريع التخرج AOU
 
الرئيسيةالرئيسية  أحدث الصورأحدث الصور  التسجيلالتسجيل  دخولدخول  
واتس اب-موبايل 00963957547725 -mustafaalbeda@hotmail.com

Instagram


 

  Putting Java to WorkM257

اذهب الى الأسفل 
كاتب الموضوعرسالة
WhatsApp-00963951432013
Admin
WhatsApp-00963951432013


عدد المساهمات : 2429
نقاط : 291674
السٌّمعَة : 4
تاريخ التسجيل : 20/09/2008
العمر : 54
الموقع : www.aoua.123.st

 Putting Java to WorkM257 Empty
مُساهمةموضوع: Putting Java to WorkM257    Putting Java to WorkM257 I_icon_minitimeالسبت أكتوبر 29, 2016 11:32 am

Faculty of Computer Studies
Course Code: M257
Course Title: Putting Java to Work
Tutor Marked Assignment – Fall16-17
Cut-off Date: 6 /12 /2016
Total Marks:100 converted to be out of 20
Contents: Page Number
TMA Instructions 2
Part 1 3
Part 2 4
Part 3 5
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.
Name of Student:
Signature:
Date:
M257/TMA Page 2 2016/2017 Fall
TMA Instructions
This TMA assesses your work on Units 1-7 of M257. The marks allocated to each part of a question are indicated in the margin. The total marks for each question are shown at the beginning of each question.
For TMA questions that require coding, a number of marks may be awarded for the style of your Java code. This means that we expect you to be consistent and to follow good practice in the naming of identifiers and layout.
In this TMA, you should do the following:
1- You should develop the required classes on NetBeans IDE.
2- You are required to create a Word file named M257_TMA_Fall16_ID_Name. Then you are required to do the following:
 Copy and paste the codes of each part and the answers of the theoretical questions, and add snap-shots for the output as it is specified under each part.
The TMA for the course has been uploaded to the LMS. You should start working on it right away. Please note the following when working on the TMA:
 No group work is allowed for the TMA. Each student must submit his/her own solution individually.
 Copying the answers from any source other than your own work will be considered as plagiarism.
 Use your own words to answer essay questions.
 Read carefully the second page of the TMA for important instructions.
After you finish solving the TMA, You have 2 submission links: 1- The Regular Submission Link: you need to submit to the regular submission link a compressed file (e.g. zip file) which includes the following: your NetBeans project folder (in Windows 7, you can find this under Documents/NetBeansProjects), 2- The Turnitin submission Link: You need to submit a document Word file including your answers to all questions according to the guidelines on the cover page of the TMA.
Your TMA will not be marked if all the required files are not submitted on the 2 submissions’ links.
M257/TMA Page 3 2016/2017 Fall
Part 1
Part 1.1
In this part you are required to:
1) Review Chapters 1, 2, 3 from M257 Material
2) Specify the version of JDK and IDE that you will use to solve this TMA and create the TMA project. You are required to write the version of JDK and IDE that he/she used.
3) You are required to create a project with name M257_TMA_Fall16_ID, while you are required to write your student ID instead of ID in this package.
Part 1.2
You are required to create a class with name MyLibrary_ID, while you are required to write your student ID instead of ID in this package. It includes the following methods:
area(int): a class method which has one integer argument. It calculates and returns the area of the circle.
area(double): a class method which has one double argument. It calculates and returns the area of the circle.
area(int, int): a class method which has two integer arguments. It calculates and returns the area of the ellipse.
area(int, int): a class method which has two double arguments. It calculates and returns the area of the ellipse.
Part 1.3
You are required to create a class with name Part1_ID, while you are required to write your student ID instead of ID in this package. The class should display the following lines ================================== 1- Calculate the area of the Circle with integer Radius 2- Calculate the area of the Circle with double Radius 3- Calculate the area of the Ellipse with integer Radius 4- Calculate the area of the Ellipse with double Radius 5- Exit Enter your choice:
The class should implement the following scenario:
The user will enter the number of his choice. The class will calculate and print the area of the circle or the eclipse with corresponding type of the radiuses. The class should invoke the appropriate method from MyLibrary_ID library. The class should keep asking the user to enter his choice then calculate and print and then it should stop when the user enter 5 to exit.
Part 1.4
Explain and discuss the mechanism that Java Language is using to deal with duplicate name of the methods in the same class and how the compiler differentiate between the methods and decide which one should be invoked.
M257/TMA Page 4 2016/2017 Fall
Part 2
Part 2.1
In this part you are required to:
1) Review Chapters 3, 4, 5 from M257 Material
2) You are required to create a package with name Part2_ID, while you are required to write your student ID instead of ID in this package.
Part 2.2
Develop an Interface Usable to the following specifications:
1) It has a public method boolean isUsed() (). The method has no argument and returns, true if the object is used and false otherwise.
2) It has a public method void setAsUsed(). The method has no argument and does not return any value.
3) It has a public method void setAsNotUsed(). The method has no argument and does not return any value.
Part 2.3
You are required to model the Book object and you need to check the bibliography fields that are needed to reference the book. You are required to choose 7 fields ONLY.
Develop a public class Book to the following specifications:
 The class 7 private fields of the book from your choice as instance variables and you are required to declare their types according on their data type contents.
 The class has a private boolean instance variable status.
 The class has a multi-argument constructor that sets the value of its instance variables to given values.
 The class has a zero-argument constructor that sets the value of its instance variables to their default values. It should invoke its multi -argument constructor in the same class.
 The class has the getter and setter methods for its instance variables.
 The class has to override the Object’s toString() method in order to return a string representation of the Book instance variables.
 The class has to override Object’s equals() method in order to return true if the object as argument equal to the object who invoked the method and false otherwise. The method should compare all instance variables of the two objects.
 The Book class has to implement the Usable interface and join the interface methods with status instance variable either to set the status of the as used or to set the status of the as not used or to return the current value of used instance variable.
Part 2.4
Develop a public class ReadingList to the following specifications:
 The class has a private instance variable ArrayList of Book, which represents a collection of books of class Book.
 The class has a zero-argument constructor that creates and initializes the ArrayList instance object.
M257/TMA Page 5 2016/2017 Fall
 The class has a public method void addBook (Object) which adds an instance object of book of Book class into the collection.
 The class has a method String displayAll(). It returns either a string representation of the ArrayList collection contents of books with their index in the list or a string message that “NO Books are available”.
 The class has a method void saveIntoFile(String). It saves the contents of the ArrayList collection of books into a file. The file name is the argument of the method.
 The class has a method int getNumberOfBooks(). It returns the number of books in the list.
 The class has a method void removeBook(Book). It removes an object of Book from the list.
 The class has a method void removeBook(int). It removes an object of Book from the list by its index.
Part 2.5
Develop a public class TestBook to the following specifications:
1) You are required to declare and create as an instance object of class ReadingList.
2) You are required to fill the above collection with 5 books.
3) You are required to print the books in the collection on the screen.
4) You are required to display the size of the collection.
5) You are required to remove 2 books from the collection with different methods.
6) You are required to save the content of collection in a file.
The output could be as: 0 Book{title=Putting Java to Work, author=Martin Smith, publisher=Open University, year=2007} 1 Book{title=Computer Organization, author=Linda Null, publisher=Jones& Bartlett learning, year=2015} 2 Book{title=Java How to Program, author=Paul Deitel , Harvey Deitel , publisher=Prentice Hall, year=2014}
Part 3
Part 3.1
In this part you are required to:
1) Review Chapters 5,6,7 from M257 Material
2) You are required to create a package with name Part3_ID, while you are required to write your student ID instead of ID in this package.
Part 3.2
You are required to create a class with name BookFrame.
You are required to copy and paste the codes in the attached file with the TMA on this class.
You are required to check Figure 1 and to complete the missing sections in the code as follows:
Section_1: you are required to declare and create as an instance object of class ReadingList.
M257/TMA Page 6 2016/2017 Fall
Section_2: you are required to create all the fields of the book and add them to panel1. These fields are declared in the code.
Section_3: you are required to create the four buttons and add them to panel2.
Section_4: you are required to create the text area component and add them to panel3.
Section_5: you are required to add the three panels into the container
Section_6: you are required to register the buttons with the listener event object.
Section_7: you are required to add the code of the listener event object as follows:
 In Clear button: you are required to clear the contents of fields of the book on the frame.
 In Add button: you are required to collect the contents of fields of the book and then add the book to the ReadingList instance object by using an appropriate method.
 In Display button: you are required to display the contents of the ReadingList instance object by using an appropriate method on the text area.
 In Save in File button: you are required to save the contents of the ReadingList instance object in a file by using an appropriate method.
The output could be as:
Figure 1
“End of the Questions
الرجوع الى أعلى الصفحة اذهب الى الأسفل
http://www.aoua.123.st
 
Putting Java to WorkM257
الرجوع الى أعلى الصفحة 
صفحة 1 من اصل 1
 مواضيع مماثلة
-
» M257 Course Title: Putting Java to Work
» M256 Software Development with Java
» M180: Data Structure and Algorithms in Java
» M180: Data Structure and Algorithms in Java
»  1 M180: Data Structure and Algorithms in Java Tutor-Marked Assignment (Fall 2015/2016) Cut-Off Date: Total Marks: 40 Contents Warnings and Declaration………………………………………………………………………………..1 Question 1……………..……………………….………………………………………………………….2 Que

صلاحيات هذا المنتدى:لاتستطيع الرد على المواضيع في هذا المنتدى
AOU حل جميع الواجبات ومشاريع التخرج لجميع الفروع والتخصصات AOU :: واجبات 2017 الفصل الأول، يشاهده(473 زائر)-
انتقل الى: