عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
  #1  
قديم 20-10-2011, 02:26 PM

طالب مرتاح طالب مرتاح غير متواجد حالياً

جامعي

 
تاريخ التسجيل: Apr 2011
نوع الدراسة: إنتظام
الجنس: ذكر
المشاركات: 34
افتراضي تكفوون ساعدوني في سؤالين cpcs202


السلام عليكم
تكفوون ساعدووني في السؤالين
السؤال الاول :
5. Write a class called TimeConvert, which when executed, prompts the user for to enter a Number of seconds, and then it prints out the equivalent number of days, hours, and minutes. You do not have to worry about excess seconds.
A sample run is given below.
Enter total number of Seconds:
84939
84939 second is equal to:
0 day
23 Hours
35 minutes
[Hint: Use the Scanner class to read input from the command console]

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

6. Write a program in Java to interchange values of two variables without using the third variable. If A=10 , B=20 after interchange A=20, B=10


رد مع اقتباس