الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

اريد مساعده في كتابة Class

Featured Replies

بتاريخ:

السلام عليكم اخواني


كيف الحال
اخواني انا عندي assignment واريد مساعده منكم
الـassignment عباره عن كتابة برنامج java

واذا هوه assignment







1) Creating an application and a set of objects
Write a Java application (driver class) "MyProg" to create a set of objects emp1,emp2,emp3 of the class Employees. For
each object, define initial values for name ,and salary through the class constructor. Call the various methods of class
Employees on these objects of the class . Compile and run the program to verify the output





2) Implementing a student class

Implementing a student. For the purpose of this exercise , a student has a neme and a total quiz score . Supply an appropriate constructor and
methods getName() , addQuiz (int score) , getTotalScore(), and getAverageScore().To compute the average score , you also need to store the
number of quizzes that the student took. Read information as input using Scanner class and print formatted results






هاذا مثال على البرنامج الي اريد زيه

public class vendingMachin
{

private int numCans;
private int token;
public vendingMachin( )
{
numCans=10;
token=0;
}
public vendingMachin( int cans )
{
numCans=10;
token=0;
}
public void insertToken()
{
numCans=numCans-1;
token=token+1;
}
public void fillUp (int cans)
{
numCans=numCans+cans;
}
public int getCans()
{
return numCans;
}
public int getToken()
{
return token;
}

}




وهاذا لفحص البرنامج

public class vendingMachinTester
{
public static void main(string[] args)
{
vendingMachine Machine = new vendingMachine();
Machine.fillUp(10); // fill up withten cans
Machine.insertToken();
Machine.insertToken();
system.out.print("Token cont = ");
system.out.println(Machine.getTokenCount() );
system.out.print("Can count = " );
system.out.println(Machine.getCanCount() );
}
}




ارجو الرد على بسرعه
لانه مضطر اسلم assignment بالسبت

تم تعديل بواسطة خنفش

بتاريخ:

طيب ايه المشكلة الامثلة كافية وانت ممكن جدا لو ركزت فى فهمها هتوصل للمطلوب

بتاريخ:
  • كاتب الموضوع

ممكن تفهمني عليها كيف اعملها

بتاريخ:

1 : كريت الكلاس
2 : اختار ال member fields وحدد ال access modifier
3 : ابنى الconstructor function (ممكن تكون واحدة فقط او اكثر من constructor)
4 : اختار ال member methods المطلوبة منك
اخيـــــــــــــــــــراً :
5 : قم بتجربة الكلاس بعمل object منه

بالنسبة للجزئية الخاصة بتكوين emp1,emp2,emp3 اذا كنت تعرضت لدرس ال collection فربما تحتاج ان تضيف كل object تقوم بعمله (emp1,emp2,emp3) الى هذا ال collection اما اذا كنت لم تتعرض لموضوع ال collection فالامر لا يحتاج الى كل ذلك فقط تنفذ الخطوات من 1 الى 5

تم تعديل بواسطة rmoplusx

بتاريخ:
  • كاتب الموضوع

تسلم اخوي ع المساعده
بس شو المقصود بهاذا

Read information as input using Scanner class and print formatted results

بتاريخ:
تسلم اخوي ع المساعده
بس شو المقصود بهاذا

Read information as input using Scanner class and print formatted results



المقصود بايه مش فاهم
بتاريخ:
  • كاتب الموضوع

قصدي كيف اقدر اعمل Scanner للـ information as input

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.