الموضوع: lab sheet 6
عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
  #1  
قديم 14-12-2011, 05:45 PM
الصورة الرمزية ميم 28

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

Amerah

 
تاريخ التسجيل: Sep 2010
نوع الدراسة: إنتظام
المستوى: الثالث
الجنس: أنثى
المشاركات: 192
افتراضي lab sheet 6


ياليت احد يفهمني حل الاسئلة دي في لاب شيت 6
1. Write a method that takes an integer as an argument and returns the remainder of that value divided by 7. Incorporate that method into an application that enables the user to enter values to test the method.


2. Write a Java application that uses random numbers to simulate 10 flips of a coin.


3. Write a method multiple that takes two integers as its arguments and returns true if the first integer is divisible evenly by the second one (i.e., there is no remainder after division); otherwise, the method should return false. Incorporate this method into an application that enables the user to enter values to test the method.

4. Write a method halve that takes one floating-point value of type double as its argument and returns the value of that number divided by 2. Incorporate this method into an application that enables the user to enter values to test the method.


5. Write a method diffDouble that takes two floating-point values of type double as arguments and computes and returns the difference between the first and second number. Incorporate this method into an application that enables the user to enter values to test the method.


6. Write a method area that computes and returns the area of a square. Incorporate this method into an application that allows the user to enter the length of one side of the square.

وربي ماعلرفت حل ولا سوال يدرسوا ويجيبوا شي ثاني استغفر الله

رد مع اقتباس