عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 06-04-2010, 10:23 PM   #3

Mr.Ahmad

عضو هيئة تدريس

الصورة الرمزية Mr.Ahmad

 
تاريخ التسجيل: Jul 2008
كلية: كلية الحاسبات وتقنية المعلومات
التخصص: IT
نوع الدراسة: عضو هيئة تدريس
المستوى: متخرج
البلد: جــــدة
الجنس: ذكر
المشاركات: 2,477
افتراضي رد: :-( بليز ساعدوني انا مو عارف احل

كود:
 
Q3: A palindrome is a number or a phrase that reads the same backwards as 
forwards. For example, each of the following five-digit integers is a palindrome: 
12321, 55555, 45554 and 11611. Write a program that reads in a five-digit integer 
and determines whether it is a palindrome.
الحل بلغة الـ C :


الحل بلغة الـ C++ :




كود:
Q4: Write a program that reads three nonzero integers and determines and prints 
whether they could be the sides of a right triangle.
الحل بلغة الـ C :


الحل بلغة الـ C++ مع تعديل القيم المدخلة إلى double بدل integer لإختلاف السؤال عند البنات :




كود:
6-Write and run a program that print the following table: 
Monthly Sales Income 
-------------------------------------------------------------------------------------------------------------------- 
Greater than or equal to $50,000 $375 plus 16% of sales 
Less than $50,000 but greater than or equal to $40,000 $350 plus 14% of sales 
Less than $40,000 but greater than or equal to $30,000 $325 plus 12% of sales 
Less than $30,000 but greater than or equal to $20,000 $300 plus 9% of sales 
Less than $20,000 but greater than or equal to $10,000 $250 plus 5% of sales 
Less than $10,000 $200 plus 3% of sales 
 
Then calculates the monthly income of a computer salesperson using the following 
commission schedule: 
 
Monthly Sales Income 
-------------------------------------------------------------------------------------------------------------------- 
Enter the value of monthly sales: 36243.89 
The income is $4674.27
الحل بلغة الـ C :


الحل بلغة الـ C++ :



دعوة صالحة في ظهر الغيب .
بالتوفيق .

 

توقيع Mr.Ahmad  

 

سبحان الله وبحمد ,,, سبحان الله العظيم
الحمد لله كما ينبغي لجلال وجهه وعظيم سلطانه .
اللهم صل على محمد وعلى آل محمد كما صليت على إبراهيم وعلى آل إبراهيم إنك حميد مجيد . اللهم بارك على محمد وعلى آل محمد كما باركت على إبراهيم وعلى آل إبراهيم إنك حميد مجيد.

 

Mr.Ahmad غير متواجد حالياً   رد مع اقتباس