بتاريخ: 2 أبريل 200917 سنة comment_152739 السلام عليكم اخواني كيف الحال اخواني انا عندي assignment واريد مساعده منكم الـassignment عباره عن كتابة برنامج javaواذا هوه assignment 1) Creating an application and a set of objectsWrite a Java application (driver class) "MyProg" to create a set of objects emp1,emp2,emp3 of the class Employees. Foreach 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 output2) 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 thenumber 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 بالسبت تم تعديل 2 أبريل 200917 سنة بواسطة خنفش تقديم بلاغ
بتاريخ: 2 أبريل 200917 سنة comment_152748 طيب ايه المشكلة الامثلة كافية وانت ممكن جدا لو ركزت فى فهمها هتوصل للمطلوب تقديم بلاغ
بتاريخ: 3 أبريل 200917 سنة comment_152789 1 : كريت الكلاس 2 : اختار ال member fields وحدد ال access modifier3 : ابنى الconstructor function (ممكن تكون واحدة فقط او اكثر من constructor)4 : اختار ال member methods المطلوبة منكاخيـــــــــــــــــــراً : 5 : قم بتجربة الكلاس بعمل object منهبالنسبة للجزئية الخاصة بتكوين emp1,emp2,emp3 اذا كنت تعرضت لدرس ال collection فربما تحتاج ان تضيف كل object تقوم بعمله (emp1,emp2,emp3) الى هذا ال collection اما اذا كنت لم تتعرض لموضوع ال collection فالامر لا يحتاج الى كل ذلك فقط تنفذ الخطوات من 1 الى 5 تم تعديل 3 أبريل 200917 سنة بواسطة rmoplusx تقديم بلاغ
بتاريخ: 3 أبريل 200917 سنة كاتب الموضوع comment_152790 تسلم اخوي ع المساعده بس شو المقصود بهاذا Read information as input using Scanner class and print formatted results تقديم بلاغ
بتاريخ: 3 أبريل 200917 سنة comment_152791 تسلم اخوي ع المساعده بس شو المقصود بهاذا Read information as input using Scanner class and print formatted results المقصود بايه مش فاهم تقديم بلاغ
بتاريخ: 3 أبريل 200917 سنة كاتب الموضوع comment_152792 قصدي كيف اقدر اعمل Scanner للـ information as input تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.