أميرة الوفاء
17-11-2007, 02:33 PM
السلام عليكم ورحمة الله وبركاته
عندي مسألة منغلقة شوي..:33:
هذي المسألة أتركها للأعضاء يعني :1zhelp: :1zhelp: :1zhelp:
وخصوصا ل
:biggthumpUUNUU
جزاه الله خيرا ما قصر فاللي قبله وفهمناه عدل:09:
نترككم للمسألة :biggthump
Write a C++ program which calls a function mneu_option() that displays the following program menu:
http://www3.0zz0.com/2007/11/17/12/99495487.jpg
- The function should return the user choice to the program.
-The program should keep displaying the menu until the user chooses to exit by selecting option 4.
Each menu item would correspond to on of the following functions :
(a) A void function prim_num(a,b), which lists all prime number between integers a,b (a prime number is the number that is divisible by 1 and by itself only).
(b) A double function pi(n), which returns the value of approximated to n terms, where
or :
(c) A void function rev_order(k), which reverses the order of the digits of an integer number. The main program should print the integer number in a reverse order (ex: 57249 ---à 94275).
(2) A void function Analysis(), which reads the contents of an input file and prints some analysis about the file contents in the following form :
Number of lines :
Number of capital letters :
Number of small letters :
Number of digits :
Other symbols :
(3) A bool function search(str), which gets some string from the program and searches this string for some word. The function should return true if the word is included in the string, false otherwise. If the searching was successful, the function should replace this word in the string with capital letters. The main program then prints the string after this replacement.
وسلامتكم .. هذي المسألة اهداء خاصة ل
UUNUU :biggthump
واللي يتكرم منكم الطيبين بعد ترانا نستقبل;)
سأعود للنقاش في المسألة معكم:31:
:flybye:
عندي مسألة منغلقة شوي..:33:
هذي المسألة أتركها للأعضاء يعني :1zhelp: :1zhelp: :1zhelp:
وخصوصا ل
:biggthumpUUNUU
جزاه الله خيرا ما قصر فاللي قبله وفهمناه عدل:09:
نترككم للمسألة :biggthump
Write a C++ program which calls a function mneu_option() that displays the following program menu:
http://www3.0zz0.com/2007/11/17/12/99495487.jpg
- The function should return the user choice to the program.
-The program should keep displaying the menu until the user chooses to exit by selecting option 4.
Each menu item would correspond to on of the following functions :
(a) A void function prim_num(a,b), which lists all prime number between integers a,b (a prime number is the number that is divisible by 1 and by itself only).
(b) A double function pi(n), which returns the value of approximated to n terms, where
or :
(c) A void function rev_order(k), which reverses the order of the digits of an integer number. The main program should print the integer number in a reverse order (ex: 57249 ---à 94275).
(2) A void function Analysis(), which reads the contents of an input file and prints some analysis about the file contents in the following form :
Number of lines :
Number of capital letters :
Number of small letters :
Number of digits :
Other symbols :
(3) A bool function search(str), which gets some string from the program and searches this string for some word. The function should return true if the word is included in the string, false otherwise. If the searching was successful, the function should replace this word in the string with capital letters. The main program then prints the string after this replacement.
وسلامتكم .. هذي المسألة اهداء خاصة ل
UUNUU :biggthump
واللي يتكرم منكم الطيبين بعد ترانا نستقبل;)
سأعود للنقاش في المسألة معكم:31:
:flybye: