الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

[مخالف - طلب حل : ]ارجوكم احتاج الحل ضروري قبل المغرب عندي Mid Exam

مغلق
بدأه طالبة جافا في 29 مارس 2008 · 3 رد · 1,028 مشاهدة · في JavaSE
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم

انا اول مررة اشارك في هذا المنتدى ارجو منكم ولمن يعرف الجافا يعطيني حل لهذا السؤال ضروري عندي اختبار واريد معرفة حلة وباسرع وقت

A. Define a student class that has the following members:

Variables:

Firstname Middlename Lastname

score on test 1 score on test 2.

Method:

Define Methods that read names and grades, print the initial names, the length, compute the average, and print student's information.

  • Constructor with no parameters, that gives initial value for each variable (Fname = “ “ , Mname = “ “,Lname = “ “ , test1 =0 , test2 = 0).
  • inputname : read student’s name .
  • inputGrades: read student's grades for test1 and test2. e.g., " Enter Joe's score for test1") .
  • Initial: return the initial string ( EX: A. M. F.)
  • get_length: return the length of the 3 names in total.
  • getAverage: compute and return the student's test average.
  • getName: returns the student's name .
  • toString: returns a String representing the name object (in capital form) and the scores.

B. At the main methods do the following:

  • Define two student’s object and read their information using the above methods (Inputname InputGrades).
  • Print the length of the second object ( as a full name)
  • Print the initial of the second object.
  • Calculate the tests' average for the first student.
  • Print the students’ information for both students.

ارجوكم بيضو وجهي واعطوني الحل باسرع وقت والله لادعيلة بصلاتي

#2

this is very basic program

i can give you one examlpe and you can apply it on the others

private void setStudentName(String s){

this.studentName=s;

}

then you make another getter method to get this enetered value

private String getStudentName(){

return this.studentName;

}

this is the main thing you want to solve your courswork the other things are shame to tell you about :D

#3

اقرأ مذكرات المادة إن لم تجدي شيئا عن السترز و الجترز

اذهبي إلى أي موقع ليبين لك أمثلة على السترز و الجترز

المشكلة أن أغلب المواد لاتعطي تصورا كافيا عن اللغة وهذا ما يجعل الطلبة يبحثون عن مدرسين خصوصين أو حلول جاهزة

#4

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

قواعد طرح المشاركات

/index.php?showtopic=29343

منقطع من حين لاخر

هذا الموضوع مغلق.

مواضيع مشابهة

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…