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

عضو جديد داخل عليكم ورامي عقاله ..

مغلق
بدأه Mo 9a7i في 27 أبريل 2007 · 8 رد · 1,539 مشاهدة · في JavaSE
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم ورحمة الله وبركاته

الصراحة يا إخوان ماسجلت بهالموقع إلا لما قرأت المواضيع اللي بهالقسم وعرفت إني أحتاجها وراح أحتاجها بالمستقبل ..

أول شي أعرفكم بنفسي ..

أنا طالب في جامعة الملك فهد للبترول والمعادن

وأحد المواد اللي معاي هذا الترم هي ICS102 - عنوان المادة Java programming

برمجة جافا تطبيقية.. كتابة برامج بصيغة .java .class

هذي الصيغ العادية

المهم ..

من كثر الضغط اللي اواجهه حاليا في دراستي ..

ماني لاقي غيركم أسأله المساعدة

محاظر مادة الإنقليزي يطالب ببحث 1800 كلمـة في موضوع معين خلال الـ 2 أيام القادمة

محاظر مادة مهارات الإتصال يطالب ب عرض بوربوينت وإلقاء محاظرة بعد 2 أيام ..

واجبات رياضيات وإختبارات خلال الـ5 ايام القادمـة

مادة البرمجة يطالبون أيضاً بكتابة ثلاث برامج ..

عالعموم

أنا بدأت في كتابة البرنامج الثاني .. ولكن واجهتني مشكلة ..

في المرفقات ملفين .. Tempreture و TestTempreture

الأول هو Class علشان أستخدمه في TestTempreture الـ Main class

المطلوب من البرنامج .. ان يكون في الكلاس Methods تقوم بحساب قيمة معطاااة من خلال برنامج التجربة .. وإن كانت بالدرجات المؤوية يحولها ل فهرنهايت ويحتفظ بالنتيجتين

وإن كانت فهرنهايت يحولها لمؤوية ويحتفظ بالنتيجتين ..

ويقوم بمقارنة بين مجموعة قيم مختلفة

ويقوم أيضا بإستخدام هذه الطرق set get toString equals

المهم ..

المرفقات هي تطبيق للسؤال الثاني ولكن فيها خطأ .. حيث تظهر بعض النتائج المتشابهة أحيانا .. الدرجة المؤوية = الدرجة بالفهرنهايت .. وأحيانا الدرجة المؤوية > الدرجة بالفهرنهايت وهذا غير معقول ..

المطلوب يا أهل الخير :)

سوف أقوم بإرفاق البرنامج الثاني اللي اشتغلت عليه ..

وسوف أقوم أيضاً بإرفاق الملف اللي سلموناه مدرسين المادة والمكتوب فيه المطلوب بالكامل ..

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

ف إذا كان فيكم احد يقدر يساعدني بهالبرامج :) أكون له من الشاكرين ..

مع الأخذ بالعلم إن هذا أول ترم لي في البرمجة وهذي بداية منهجنا .. ال Loops وال Classes بس .. أخذنا مسألة ال Scanner برضه أما غير كذا ما أخذناه

ف مانبي نسلمهم واجب من مبرمج محترف :P يدرون إني جايب العيد ههههههه

وفي حال ماستطعتوا .. سيكون الحل أمامي هو ان أنقل الواجب من أحد الطلاب الآخرين واعدل عليه شوي وأسلمه .. لكني أفضلكم أنتم وكلي امل فيكم :)

شكراً مقدماً على كل شي ..

---------------------------------

فكرت في مسألة المرفقات

وجدت إني لو أرفع الملفات كاملة مضغوطة أفضل ..

--------------------------------

هذاالرابط

http://www.mo9a7i.com/Assignment.zip

شكرا مرة أخرى :)

#2

اكتب هنا الاسئله كامله ، سواءاً انجليزي ولا فرنسي ( ايطالي كالشيو مانتقبل :lol: )

ولاترمي عقالك ياخوك تراك عزيز وغالي

#3

بدعاء مستقبل الناجح و المشرق لك يا أخي MO ,

كما قال أخ عيسى أكتب الأسئلة كاملة و سوف نحول المساعدة (h)

winter-main.jpg

6179.gif

#4

مشكورين حبايب قلبي عالردود

أوكي

راح أنسخ لكم الأسئلة

السؤال الأول

Q1. Define a class called Counter whose objects count things. An object of this class records a count that is a nonnegative integer. Include methods to set the counter to 0, to increase the count by 1, and to decrease the count by 1. Be sure that no method allows the value of the counter to become negative. Include an accessor method that returns the current count value and a method that outputs the count to the screen. There should be no input method or other mutator methods. The only method that can set the counter is the one that sets it to zero. Also, include a toString method and an equals method. Write a program (or programs) to test all the methods in your class definition.

السؤال الثاني

Q2. Write a Temperature class that has two instance variables: a temperature value (a floating-point number) and a character for the scale, either C for Celsius or F for Fahrenheit. The class should have four constructor methods: one for each instance variable (assume zero degrees if no value is specified and Celsius if no scale is specified), one with two parameters for the two instance variables, and a no-argument constructor (set to zero degrees Celsius). Include the following: (1) two accessor methods to return the temperature—one to return the degrees Celsius, the other to return the degrees Fahrenheit— use the following formulas to write the two methods, and round to the nearest tenth of a degree:

degreesC = 5(degreesF - 32)/9

degreesF = (9(degreesC)/5) + 32

(2) three mutator methods: one to set the value, one to set the scale (F or C), and one to set both; (3) three comparison methods: an equals method to test whether two temperatures are equal, one method to test whether one temperature is greater than another, and one method to test whether one temperature is less than another (note that a Celsius temperature can be equal to a Fahrenheit temperature as indicated by the above formulas); and (4) a suitable toString method. Then write a driver program (or programs) that tests all the methods. Be sure to use each of the constructors, to include at least one true and one false case for each of the comparison methods, and to test at least the following temperature equalities: 0.0 degrees C = 32.0 degrees F, -40.0 degrees C = -40.0 degrees F, and 100.0 degrees C = 212.0 degrees F.

وفي المرفقات .. تطبيقي على هذا السؤال

السؤال الثالث

Q3. Define a class whose objects are records on animal species. The class should have instance variables for the species name, population, and growth rate. The growth rate is a percentage that can be positive or negative and can exceed 100 percent. Include a suitable collection of constructors, mutator methods, and accessor methods. Include a toString method and an equals method. Include a boolean valued method named endangered that returns true when the growth rate is negative and returns false otherwise. Write a test program (or programs) that tests each method in your class definition.

ما أتوقع إنها صعبة عليكم

ولكن الرجاء مراعاة إن المستوى اللي وصلنا له هو ال Classes وال Loops وإدخال البيانات من المستخدم فقط .. تونا في البداية .. :)

أتمنى الرد بأسرع فرصة

بالنسبة للتطبيقات

Tempreture.txt

TestTempreture.txt

#5

لوووووول وين رحتوا ياشباب ؟؟ قلتوا لي اكتب الأسئلة وكتبناها :P ..

واللي يرحم والديكم شوفوا لي حل

#6
/*Q1. Define a class called Counter whose objects count things. 
 An object of this class records a count that is a nonnegative integer. 
 Include methods to set the counter to 0, to increase the count by 1, 
 and to decrease the count by 1. 
 Be sure that no method allows the value of the counter to become negative.
 Include an accessor method that returns the current count value and a method that outputs the count to the screen.
 There should be no input method or other mutator methods. 
 The only method that can set the counter is the one that sets it to zero. 
 Also, include a toString method and an equals method. 
 Write a program (or programs) to test all the methods in your class definition
 **/
class Counter {
	int count=0;
   public Counter(){
	   System.out.println("new Object from Counter class");
   }
	public int getCount() {
		return count;
	}

	public void setCount() {
	   count=0;
	}
	public void increment(){
		count++;

	}
	public void decrement(){
		if(count!=0)
		count--;


	}
	public void display(){
	 System.out.println(toString());
	}

	public String toString() {
	 return "counter is : "+count;
	}

	public boolean equals(Object obj) {
	   return this==obj;
	}


public static void main(String[] args){
	Counter c=new Counter();
	c.display();
	c.increment();
	c.display();
	c.decrement();
	c.display();

}
}

السؤال الثاني والثالث أكتب محاولتك هنا ووضح مشكلتك وين وابشر

#7

مشكووووووووووووووور يالغالي

طيب إذا ممكن أحد يراجع معاي الخطأ في البرنامج الثاني عندي .. اللي هو Tempreture حطيت الكود كامل بس فيه خطأ

#8

ممكن تضيفه على شكل كود هنا ؟

عشان يكون الكود واضح فقط ، انسخ كودك وحطه هنا ثم اضغط على زر الكود ،

#9

مشكور حبيب قلبي عيسى على تفاعلك ..

حليت المسائل كلهاااا لانه إنتهى وقت التسليم .. وسلمتها ..

إذا تبغون نسخ من البرامج .. تشوفونها وتقيمونها ..

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

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