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

[مخالف - طلب حل : ]ممكن مساعدة في حل هذا السؤال المعقد

مغلق
بدأه محمد123456 في 19 أبريل 2011 · 3 رد · 383 مشاهدة · في JavaSE
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

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

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

أرجو ذكر السبب

a-The following portion of program will not compile successfully. Find the errors in the

program and rewrite it in the correct way that can compile successfully.

import Java.Util.*;
public class Q2_A {
public static void main (String[] args){
integer myInt; 
char ch
string str;
myInt = 5.0;
ch = "M"; 
str = Ahmed; 
System.Out.Println("enter your name:");
scanner sc= scanner(System.in);
str=sc_next(); 
System.out.println("hello " , str ,"/n" , myInt ,"/n" ,ch);d                      
} 
}

ولدي هذا السؤال أرجو الإجابة عنه مع الشكر

c- The following is an English structure for a portion of a code; rewrite it in correct Java

Language Syntax.

1-If (the height is between 140cm and 230cm

Compute the weight as:(height -100 +age/10)*100

2-If NOT (both x and y are equal zero)

Display a message “You Win The Game”

هذا هو السؤال ولكن المنتدى لايسمح في جلب الكلام إلى مابعد

You Win The Game

وهذا السؤال أعرف إني أطلت عليكم ولكني أرجو مساعدتكم

e- Rewrite the following for statement using while statement

int i;
for (i=100; i>0; i=i-5)
System.out.println(i);

d- Rewrite the following nested if statements using switch statement
int selection=1;
String myColor=””;
if (selection==1)
myColor="Red";
else if (selection==2)
myColor="Green";
else if (selection==3)
myColor="Cyan";
else if (selection==4)
myColor="Blue";
else
myColor="Black";
System.out.println("Your lucky color is " + myColor);

,i, وهذا لا أعرف ماهو قصدو فيه

A- Write a complete Java program that asks the user to enter a number of lines using

Scanner class, then displays the following output using Standard Input/Output. It depends

on the number of lines that are entered by the user. Provide a screen shoot for the output

and name the class as Q3a_YourName

Enter number of lines: 6

*

**

***

****

*****

******

تم تعديل هذه المشاركة بواسطة .S.T.A.L.K.E.R في 19 أبريل 2011 في 20:38

#2

أخي العزيز أن تطلب حل واجب وهذا ممنوع في المنتدى

أقل شيء اعرض محاولاتك

إذا نظــرتَ نيـوب اللـّيـثِ بـارزةً         فـلا تظــنَنَ أَنَّ اللـّيـــثَ يبْتسـِـــمُ


 


 


رسم المخططات البيانية بواسطة الجافا


 


كتاب تحليل وتصميم نظم المعلومات


#3

شكرا على جهودك ولكني أنا حللة من هذه الأسئلة مائستطعت وهذه محاولتي لحل أول سؤال في إيجاد الخطاء

هذه إجابتي ولا أدري هل هي صحيحة أملا

import java.util.*;
public class Q2_A {
public static void main ( String[] args) {
Integer myInt;
char ch;
String str;
myInt = 5;
ch = 'M';
str =" Ahmed";
System.out.println("enter your name:");
Scanner sc= new Scanner(System.in);
str=sc.next();
System.out.println("hello");

}
}

the end

تم تعديل هذه المشاركة بواسطة .S.T.A.L.K.E.R في 19 أبريل 2011 في 20:38

#4

الأخ الكريم/الأخت الكريمة

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

مرحباً بكم في منتدى الفريق العربي للبرمجة

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

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

/index.php?showtopic=29343

شاكرين لكم حُسن تعاونكم

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

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

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

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

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

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