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

عزوز الرابغي

جامعي

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

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

Write a driver or a test program for the class that your design in assignment 4 . copy all the wind speed data into a file named windspeed.data. Use the scanner class to read in the wind speed data into your program. Declare and initialized an appropriate wind speed array to store all data.
After reading in the data, the driver program should offer the user a choice to print :
1- All wind speeds in knots
2- All wind speeds in beauford scale
3- All wind speeds that are considered as calm wind
4- All wind speeds that are considered as turbulent (wind storm)
5- The average wind speed in Km/h , knot and beauford
6- Quit the program
For console input , please include the necessary user prompts include deive headings or labels to identify output data.
The data for the wind speeds is provided as follows
30,101,1,1.5,5,150,135,12,75,110,3.0,121,1,1.5,5,1 90,13.5,
0.12,7.55
طبعا هيا بالترتيب من فوق لتحت والبداية من ال 30
والله يعطيك العافية وسامحنا تعبناك معانا

 

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