قديم منذ /27-02-2016, 11:05 PM   #1

طالب جديد

فاطمية غير متواجد حالياً

 

مواضيعي | ردودي

 رقم العضوية : 6991
 تاريخ الإنتساب : Oct 2013
 المشاركات : 60
 الجنس : أنثى
 مستوى التقييم : فاطمية is on a distinguished road
النقاط : 39

شكراً: 6
تم شكره 26 مرة في 10 مشاركة
افتراضي الواجب التاني جافا 2


الهمة الهمة الفزعة الفزعة الحقونا اسعفونا جزاكم الله خيرا

والله العظيم نذاكر ولا نحل لا حول ولا قوة الا بالله وحسبنا الله ونعم الوكيل








الملفات المرفقة
نوع الملف: pdf CS141-Assignment2 Q 2016.pdf‏ (103.5 كيلوبايت, المشاهدات 175)
  رد مع اقتباس
الأعضاء الذين قالوا شكراً لـ فاطمية على المشاركة المفيدة:

قديم منذ /28-02-2016, 11:00 AM   #2

طالب جديد

turkisaad غير متواجد حالياً

 

مواضيعي | ردودي

 رقم العضوية : 9799
 تاريخ الإنتساب : Jun 2014
 المشاركات : 86
 الجنس : ذكر
 مستوى التقييم : turkisaad is on a distinguished road
النقاط : 36

شكراً: 3
تم شكره 12 مرة في 5 مشاركة
افتراضي


الله يعين على الجافا بس هانت ان شاء الله








  رد مع اقتباس
قديم منذ /28-02-2016, 02:50 PM   #3

طالب جديد

ahmedsh88 غير متواجد حالياً

 

مواضيعي | ردودي

 رقم العضوية : 13123
 تاريخ الإنتساب : Jan 2015
 المشاركات : 45
 الجنس : ذكر
 مستوى التقييم : ahmedsh88 is on a distinguished road
النقاط : 0

شكراً: 42
تم شكره 3 مرة في 2 مشاركة
افتراضي


ياليت اللي يعرف طريقة حل هذا السؤال يقول لنا الطريقة والله يوفقنا بالاختبار

Q2. (0.5 points) Calculate the Big Oh performance for the following:

Given that an Array of size n=10 takes 3 seconds to search, how long does it take a search Array of
size n=100? (a)Linear Search of an array of size n=100 Given O(n)


(b) Merge Sort performance of an array is O(nlog(n)), given that an Array of size n=10 takes 3
seconds to sort,
how long does it take to sort an Array of size n=100?







  رد مع اقتباس
قديم منذ /28-02-2016, 10:12 PM   #4

طالب جديد

abo mohamed غير متواجد حالياً

 

مواضيعي | ردودي

 رقم العضوية : 10002
 تاريخ الإنتساب : Jul 2014
 مقر الإقامة : الدمام
 فرع الجامعة : فرع الدمام
 التخصص : بكالوريوس تقنية معلومات
 المستوى : غير منتسب
 المشاركات : 92
 الجنس : ذكر
 مستوى التقييم : abo mohamed is on a distinguished road
النقاط : 36

شكراً: 2
تم شكره 3 مرة في 3 مشاركة
افتراضي


السلام عليكم

هالجامعه ما ينعرف لها ..مثل هالمقرر المفروض يدرس لطلاب البرمجه او على الاقل لطلبة كلية الحاسب ..وش دخل الاقسام الثانيه في البرمجه

تعقيد








  رد مع اقتباس
قديم منذ /28-02-2016, 11:47 PM   #5

 
الصورة الرمزية Saimon
طالب نشيط

Saimon غير متواجد حالياً

 

مواضيعي | ردودي

 رقم العضوية : 10491
 تاريخ الإنتساب : Jul 2014
 مقر الإقامة : الرياض
 فرع الجامعة : الفرع الرئيسي بالرياض
 التخصص : بكالوريوس تقنية معلومات
 المستوى : المستوى السادس
 المشاركات : 212
 الجنس : ذكر
 مستوى التقييم : Saimon has a spectacular aura aboutSaimon has a spectacular aura aboutSaimon has a spectacular aura about
النقاط : 38

شكراً: 24
تم شكره 154 مرة في 21 مشاركة
افتراضي


اقتباس:
المشاركة الأصلية كتبت بواسطة ahmedsh88 مشاهدة المشاركة
ياليت اللي يعرف طريقة حل هذا السؤال يقول لنا الطريقة والله يوفقنا بالاختبار
q2. (0.5 points) calculate the big oh performance for the following:

Given that an array of size n=10 takes 3 seconds to search, how long does it take a search array of
size n=100? (a)linear search of an array of size n=100 given o(n)


(b) merge sort performance of an array is o(nlog(n)), given that an array of size n=10 takes 3
seconds to sort,
how long does it take to sort an array of size n=100?

هذا الحل ,,, بالتوفيق







الصور المرفقة
نوع الملف: png sol.png‏ (6.2 كيلوبايت, المشاهدات 479)
التوقيع
( ينبغي أن نبسط كل شيء بقدر الإمكان، ولكن دون أن نفرط في تبسيطه )
  رد مع اقتباس
قديم منذ /29-02-2016, 12:08 AM   #6

طالب جديد

ahmedsh88 غير متواجد حالياً

 

مواضيعي | ردودي

 رقم العضوية : 13123
 تاريخ الإنتساب : Jan 2015
 المشاركات : 45
 الجنس : ذكر
 مستوى التقييم : ahmedsh88 is on a distinguished road
النقاط : 0

شكراً: 42
تم شكره 3 مرة في 2 مشاركة
افتراضي


اقتباس:
المشاركة الأصلية كتبت بواسطة saimon مشاهدة المشاركة
هذا الحل ,,, بالتوفيق
جزاك الله خير اهم شي عرفت الطريقة لان احتمال كبير هذا السؤال يجي في المدتيرم







  رد مع اقتباس
قديم منذ /29-02-2016, 12:20 AM   #7

طالب جديد

abo mohamed غير متواجد حالياً

 

مواضيعي | ردودي

 رقم العضوية : 10002
 تاريخ الإنتساب : Jul 2014
 مقر الإقامة : الدمام
 فرع الجامعة : فرع الدمام
 التخصص : بكالوريوس تقنية معلومات
 المستوى : غير منتسب
 المشاركات : 92
 الجنس : ذكر
 مستوى التقييم : abo mohamed is on a distinguished road
النقاط : 36

شكراً: 2
تم شكره 3 مرة في 3 مشاركة
افتراضي


"> Q4. (2 points) Write a program where you use Selection Sort to sort the following array in ascending order.
24,2,45,20,56,75,2,56,99,53,12 a) Declare an array of integers called unsortedarr and load it with the integers above. Notice we have 11 numbers, and the number 2 is repeated which is fine. Display the array as it is by printing it before the sort. b) Sort the array using the insertion sort technique and display the array after you sort it. Here is the beginning of the code, complete it, run it, test it, submit it.
import java.util.*;
public class MySelectSort **
public static void main(String[] args) **
int arr[] = **24,2,45,20,56,75,2,56,99,53,12**;
System.out.println("--------------------------
- unsorted");
System.out.println(arr);
// continue … write your code

طيب وهذا من يتكرم ويشرحه لنا








  رد مع اقتباس
قديم منذ /01-03-2016, 05:10 PM   #8

طالب جديد

turkisaad غير متواجد حالياً

 

مواضيعي | ردودي

 رقم العضوية : 9799
 تاريخ الإنتساب : Jun 2014
 المشاركات : 86
 الجنس : ذكر
 مستوى التقييم : turkisaad is on a distinguished road
النقاط : 36

شكراً: 3
تم شكره 12 مرة في 5 مشاركة
افتراضي حل السؤال الأخير


هذا حل الكود الأخير بس ياليت يتم تغيير أسماء المتغيرات عشان الكل ياخذ درجة السؤال كامله
وبالتوفيق للجميع ....

الحل بالمرفقات








الملفات المرفقة
نوع الملف: docx Answer of Q4.docx‏ (15.5 كيلوبايت, المشاهدات 344)
  رد مع اقتباس
قديم منذ /11-03-2016, 09:28 PM   #9

طالب جديد

توج غير متواجد حالياً

 

مواضيعي | ردودي

 رقم العضوية : 20886
 تاريخ الإنتساب : Mar 2016
 المشاركات : 1
 الجنس : أنثى
 مستوى التقييم : توج is on a distinguished road
النقاط : 0

شكراً: 0
تم شكره 0 مرة في 0 مشاركة
افتراضي


اقتباس:
المشاركة الأصلية كتبت بواسطة turkisaad مشاهدة المشاركة
هذا حل الكود الأخير بس ياليت يتم تغيير أسماء المتغيرات عشان الكل ياخذ درجة السؤال كامله
وبالتوفيق للجميع ....

الحل بالمرفقات
شكراااااااااااااا
طيب ممكن تحل لي هالسؤال ؟؟؟

1- Create two classes; The first called: StudentData, and the second called: CSStudents )
2- The classes are created to provide the structure for three objects of students st1, st2, and st2.
3- Class StudentData defines :
• Four of private attributes called (studentID, studentName, courseMark, numberOfHoursInCourse). These attributes have no initialization.
• Two of public attributes called (courseGradeNumberOfFive, courseGradeLetterOfFive). These attributes have no initialization.
• One Behavior called ( calculateGPA ): To calculate the point of the GPA of 5 for a provided course.
3- Class CSStudents defines :
• Three private attributes called (courseName, numberOfHoursInCourse, courseMark).
• Two public attributes called (courseGradeLetterOfFour, courseGradeNumberOfFour ).
• One Behavior called ( calculateGPA) To calculate the point of the GPA of 4 for a provided course, also it implements the function to calculate the Grade for the point of 5 and the point of 4 as well.
4- Show the ability of the constructor for overloading by using two constructors:
• One to initialize studentID, studentName.
• One to initialize studentID, studentName, courseName, courseMark, numberOfHoursInCourse

6- Show the advantage of the overriding in providing its specific implementation of calculateGPA method in class CSStudents , that is already provided by class StudentData.
7- Implement the three objects from the second class.
8- Display the structure for three objects from the main class to get as same as output below.
9- You may need more instance methods to complete your homework.
10- You may need more Overriding methods to complete your homework.
11- Provide your code and the implementation in Java code.







  رد مع اقتباس
قديم منذ /12-03-2016, 04:46 AM   #10

طالب جديد

KaLeeMaT_2 غير متواجد حالياً

 

مواضيعي | ردودي

 رقم العضوية : 6193
 تاريخ الإنتساب : Sep 2013
 المشاركات : 26
 الجنس : أنثى
 مستوى التقييم : KaLeeMaT_2 is on a distinguished road
النقاط : 0

شكراً: 14
تم شكره مرة واحدة في مشاركة واحدة
افتراضي


Q1. (0.5 point) (a)Write the java code for doing a Linear Search on the array given below. Write your code in the space below, (no need to submit .java file)

(b) What would your search method return if we asked to search for the number 2 and return it’s index position?

[24][2][45][20]56][75][2][56][99][53][12]

الي عنده الحل او طريقة الحل الله لايهينه ينزله
التسليم اليوم بيقفل







  رد مع اقتباس
إضافة رد

مواقع النشر (المفضلة)

أدوات الموضوع
انواع عرض الموضوع

تعليمات المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة
Trackbacks are متاحة
Pingbacks are متاحة
Refbacks are متاحة