منتدى مصر التقني
هل تريد التفاعل مع هذه المساهمة؟ كل ما عليك هو إنشاء حساب جديد ببضع خطوات أو تسجيل الدخول للمتابعة.

احتاج الى مساعده بالجافا

اذهب الى الأسفل

احتاج الى مساعده بالجافا  Empty احتاج الى مساعده بالجافا

مُساهمة من طرف العريقي١ الجمعة مايو 21, 2021 3:23 am

عندي اختبار صباح اليوم الساعه ٨ 
واحتاج لبعض المساعده 
الاختبار سيكون مثل هذا الذي بالصوره
احتاج الى مساعده بالجافا  Screen12


عندي اختبار صباح اليوم الساعه 8 واحتاج لبعض المساعده والتوضيح الاختبار سيكون كما بالصوره هذه عينه لطريق الاختبار
العريقي١
العريقي١
..
..

تاريخ التسجيل : 21/05/2021
المساهمات : 12
النقاط : 22
التقيم : 0
الدولة : اليمن
الجنس : أخرى / أرفض التصريح

الرجوع الى أعلى الصفحة اذهب الى الأسفل

احتاج الى مساعده بالجافا  Empty احتاج الى مساعده بالجافا

مُساهمة من طرف العريقي١ الجمعة مايو 21, 2021 3:23 am

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

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

صفحه ١
Sample ExamII CSCI300 - Fall 2020
Part I: Implement the following classes
Consider the following UML diagram for an application that manages spheres in the 3D space.
Question 1:
Create the class Point
 Implement the no-arg and all-arg constructors.
 Implement the calculateDistance method that returns the distance between
two points.
 Implement the isEqual method that returns true if all coordinates are equal in both
points and false otherwise.
 Implement the toString() method. If x=2.0, y=3.5, and z=4.0, then the method
returns a string in the form: (2.0, 3.5, 4.0)
Question 2:
Create the class Sphere
 Implement the two constructors.
 The no-arg constructor should initialize the color to “black”, the radius to 1.0,
and the center to (0.0, 0.0, 0.0).
 Implement the getCenter method that returns the center of the sphere. Don’t
implement the rest of getters and setters.
 Implement the method calculateVolume() that returns the volume of the
sphere.
Sphere
-radius: double
-center: Point
-color: String
+Sphere( )
+Sphere (radius: double, center: Point,
color: String)
+getCenter( ):Point
+calculateVolume(): double
+isEqual(sphere:Shpere):boolean
+toString(): String
Point
-x: double
-y: double
-z: double
+Point( )
+Point(x: double, y: double, z: double)
+calculateDistance(point :Point) :double
+isEqual(point : Point) :boolean
+toString(): String



صفحه ٢
푉표푚푢푛푓 =
4
3
× 휋 × 푠푎푒푖푢푡3
 Implement the isEqual method that returns true if both spheres have the same
center and radius and false otherwise.
 Override the toString() method. The method returns a string in the form:
Sphere{Radius:2.0, Center:(1.0, 2.0, 3.0), Color:RD, Volume:33.49333}. Note that
you should only display the first and last letters of the color capitalized.
Part II: Write an application (driver program) for the classes in Part I
Complete the application (driver class) TestSphere as requested below.
Write code to perform the following operations:
a) Create an array of 3 spheres.
b) Ask the user to enter the radius, color, and center coordinates for these spheres:
 Create them.
 Store them inside the array.
c) Print the information of all spheres (using the toString() method)
d) Print the number of spheres with volume greater than 50.
e) Print whether or not the first and last spheres are equal.
f) Print the distance between the centers of the second and last spheres.
العريقي١
العريقي١
..
..

تاريخ التسجيل : 21/05/2021
المساهمات : 12
النقاط : 22
التقيم : 0
الدولة : اليمن
الجنس : أخرى / أرفض التصريح

الرجوع الى أعلى الصفحة اذهب الى الأسفل

الرجوع الى أعلى الصفحة

ََ

مواضيع ذات صلة


 
صلاحيات هذا المنتدى:
لاتستطيع الرد على المواضيع في هذا المنتدى