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

[مخالف - طلب حل : ]بحاجه الى مساعده

مغلق
بدأه BlueFairy في 22 أبريل 2009 · 1 رد · 354 مشاهدة · في ارشيف قسم C/C++
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

ارجو من خبراء السي مساعدتي في حل هذا التمرين

واشكر جهودكم سلفا

write aprogram that performs the following:
a. count characters. change text numbers to integers and converts capital character to small.
b. cos(x),sin(x)
c.count perfects,count digits and prime number
d.binary and decimal
e.exit


if user presses a or A ,the following sub menu should be displayed
1-count characters
(program should read s set of characters from the keyboard until q is pressed.the program should count the occurrence of each of these characters (a,e and r))

2-change text number to integer:
(program reads a text containing mixed text and number,your program prints the numbers only as integers)

3-capital to small:
(program reads any character and converts it to small)

4-return to the main menu

if user presses b or B , the following sub menu should be displayed:
1-sin(x)
(sin(x)=(x-x^3\3!+x^5\5!-x^7\7!.....x^n!)
cos(x)
cos(x)=1-x-x^2\2!-x^4\4!-x^6/6!.....x^n!)
3- return the main menu

if user presses c or C the following sub menu should be displayed :
count perfects,
(program should counts the perfect numbers from 1 to 500)
2-count digits:
(program should counts the digits of any integer as : following:x=123digits=3)
sum of prime:finds the sum of primes from 1 to 100)
4-return to the main menu

if user presses d  or D , the following sub menu should be displayed:
1- binary to decimal
(program should  reads a binary number and convert it to decimal)

2- decimal to binary
(program reads a decimal number and convert it to binary)

3-return to the main menu

to Exit press e or E

تم تعديل هذه المشاركة بواسطة BlueFairy في 22 أبريل 2009 في 19:43

#2

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

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

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

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

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

/index.php?showtopic=29343

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

llback.jpg

اشهد ان لا إله إلا الله وان محمدا ً رسول الله

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

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

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

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

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

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