عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 23-01-2010, 02:09 AM   #6

عزوز الرابغي

جامعي

الصورة الرمزية عزوز الرابغي

 
تاريخ التسجيل: Feb 2009
التخصص: علمي
نوع الدراسة: تحضيري علمي حطة ب
المستوى: الأول
الجنس: ذكر
المشاركات: 26
افتراضي رد: طلاب البرمجه برابغ

وهذي الاسئلة >>>> الله لايهينك حاول انك تحلها في اقرب فرصة

وجزاك الله خير الجزاء عننا تفضل

Problem Statement:
Wind speed is often measured in kilometer per hours (km\h) or knots (nautical miles). Another unit if measurement is the Beaufort scale, which ranges from 1 to 12 on integer scale . ??
1 . Design and implement a Java class, for representing wind speeds.
2 . Implement a constructor to creat the wind speed class for a given velocity in kilometers per hour. The class must contain methods for getting the speed as knots or on the Beaufort scale .
3 . Include method for checking whether the wind is calm or turbulent windstorm . ?? For wind speeds less than 2 km\h, the wind is considered as calm, whilst wind speed of more than 120 km\h is considered as a windstorm .
Hint: A nautical mile is 1.852 Kilometer. The Beaufort scale is defind by
V = 3.01 * B3\2, with v as the wind velocity in km\h. The Beaufort value B is rounded to the nearest integer. There are no beaufort values larger than 12. You can calculate ab with Math. Pow (a,b).
Class Information :
Class WindSpeed
Public class windSpeed
Extends java . lang . Object
Constructor Detail

WindSpeed
Public WindSpeed (double kilometer per Hour)
Creates a new wind speed with the speed of the given kilometer per hour.
Methods Details
IsCalm
Puplic Boolean isclam()
Returen true if this wind speedis clam (less than 2 Km/h)
getKilometerPerHour
public double getKilometerPerHour ()
Returns the wind speed measured in Kilometer per hour (km/h)
getKnots
public double getKnots()
Returns the wind speed measured Knots (nautical miles). A nautical mile is 1.852 Kilometer in length.
getBeaufort
public in Beaufort()
Returns the wind speed measured in Beaufort scale (1-12)

هذا السؤال الاول >>> باقي السوال الثاني في الرد الثاني ::::: يتـــــــــبـــــــــــــع

 

عزوز الرابغي غير متواجد حالياً   رد مع اقتباس