InstagramTwitterSnapChat


 
وصف

العودة   منتديات سكاو > الكليات الجامعية > منتدى كلية الحاسبات وتقنية المعلومات > المنتدى العام لكلية الحاسبات وتقنية المعلومات
التسجيل مشاركات اليوم البحث
   
   


المنتدى العام لكلية الحاسبات وتقنية المعلومات قسم خاص بالمواد العامة و الطلاب غير المتخصصين بكلية الحاسبات وتقنية المعلومات

إلى من يريد شرح الجافا بليز بسرعه

المنتدى العام لكلية الحاسبات وتقنية المعلومات

 
 
أدوات الموضوع إبحث في الموضوع انواع عرض الموضوع
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
  #1  
قديم 22-03-2010, 04:23 PM
الصورة الرمزية عاصي دوغان

عاصي دوغان عاصي دوغان غير متواجد حالياً

جامعي

 
تاريخ التسجيل: Feb 2010
التخصص: نظم معلومات
نوع الدراسة: إنتظام
المستوى: السابع
الجنس: أنثى
المشاركات: 26
افتراضي إلى من يريد شرح الجافا بليز بسرعه


السلام عليكم انا وضعت من اول برنامج جافا وطلبت حله مع شرحه بليز اللي يعرف يحله ويشرحه والبرنامج هو
Write a program that prompts the user to input his full name and then generates a secure and unrepeatable new account user name that consists of three parts separated by an underscore for any system:

The first part contains the first letters of each part of the user full Name.
The second part contains the date of today with no spaces or symbols like "20112009".
The last part is generated through the following steps.
Generate a random integer number from 1 to 5
Generate a random float number from 0 to 1.0
Raise the float number to the power of the integer number and then print it in a form of two digits only after the decimal point.
Using math methods, bring the absolute of the resulted value and round it to the nearest number less than or equal to it.
Using wrapper methods, convert the integer part of the rounded number to a hexadecimal number. Integer.toHexString(n)
Finally, Concatenate all parts and print the whole Generated User Name.



وايضا للمساعده

Needed Library
java.util.*
java..*
Needed Classes and Methods
Random
nextInt(rang)
nextFloat()
Math
pow(a,b)
abs(a)
round()
String
indexOf( string)
substring(index,length)
Date
format(date_object)
DecimalFormat("0.00")
Scanner  System.in
nextLine()
System.out Println()
Integer toHexString(i)




رد مع اقتباس

 

 


تعليمات المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة

الانتقال السريع

 


الساعة الآن 08:17 PM


Powered by vBulletin® Version 3.8.9 Beta 3
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Ads Organizer 3.0.3 by Analytics - Distance Education

أن كل ما ينشر في المنتدى لا يمثل رأي الإدارة وانما يمثل رأي أصحابها

جميع الحقوق محفوظة لشبكة سكاو

2003-2025