smsm hamdy Admin
المساهمات : 428 تاريخ التسجيل : 19/10/2019
| موضوع: حل واجب M180** 00966562053739< > حلول,واجبات,الجامعة,العربية,المفتوحة #حل M180 00966562053739 واجبات M180الجامعة العربية المفتوحة M180: 00966562053739 حل واجب M180, واجبات الجامعة العربية المفتوحة M1801TMA Answers 00966562053739 حل واجب M180 حل , الثلاثاء أكتوبر 22, 2019 4:29 pm | |
| حل واجب M180** 00966562053739 < > حلول,واجبات,الجامعة,العربية,المفتوحة #حل M180ED633 00966562053739 واجبات M180الجامعة العربية المفتوحة M180: 00966562053739 واجب M180, واجبات الجامعة العربية المفتوحة M1801TMA Answers 00966562053739 حل واجب M180 حل , M180واجب , M180< Data Structure and Algorithms in Java حلول واجبات الجامعـة العربية المفتوحة حل واجب M180& 00966562053739 @ حلول واجبات الجامعة العربية المفتوحة حل واجب M180$ 00966562053739 واجب M180الجامعة العربية المفتوحة حل الواجب M180واجبات M180العربية المفتوحة ،، M180حلول واجبات الجامعه العربية المفتوحة حل واجب M180>>> 00966562053739 << > Data Structure and Algorithms in Java واجبات الجامعة العربية المفتوحة M180TMA حل واجبات M180العربية المفتوحة M180~ حل واجب M180** 00966562053739 ~ ~ Data Structure and Algorithms in Java حلول,واجبات,الجامعة,العربية,المفتوحة
M180: Data Structure and Algorithms in Java Tutor-Marked Assignment (Fall2019/2020) Cut-Off Date: TBA Total Marks: 40 Contents Warnings and Declaration...................................................................................1 Question 1................................................................................................................2 Question 2 ................................................................................................................2 Question 3 .................................................................................................................3 Question 4 .................................................................................................................3
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 tudent:...................................... Signature:................................................... Date:............................................................
2Question 1: (14marks) Write a complete Java programthat includes a Java method, reverseIt, to take a 1-d array of integer values, my_array, and reverse it without using any temporary array.
Example: my_array={1,2,3,4,5,6,7}. Then, the expected output should be: [7, 6, 5, 4, 3, 2, 1] You are also asked to include a screenshot after running the program that shows the output.
Question 2: (12marks) You are given a Stack class. The following functions are available for use: public class Stack { public boolean isEmpty(){}; public void push(int n){}; public int peek(){}; public int pop(){}; }
Write a method MinStackthat takes a (Stack S) of integers, as input and returns the smallestelement in the stack, and the stack should finally retain itsinitial state with the elements of the stack in the same order except removing the smallest element only. You are only allowed to use Stack object in your method
For example, if the stack has the following items Then, it returns 13and the stack should contain after calling the method 15 72 25 44 13 19 18 15 72 25 44 19 18 | |
|