السلام عليكم ورحمة الله وبركاته
كيف حالكم جميعا ......؟؟؟؟؟
جايبة معي اليوم مجموعة برامج ابغى احد يحلها لي
هي خفيفة
والله يجزاه الفردوس الاعلى ويوفقه اللي يحلها .......
هذه هي الاسئلة ::::::
Problem 1:
Write a program that display menu for the user like below. According to the user selection, program will print Triangle and Diamond in shape of asterisks ‘*’ or will exit the program. Your program should validate user input to be positive more than 0. Program should display the menu until user chooses to quit.
-------------------------------------------------
Welcome to my program
--------------------------------------------------
Main Menu
1- Print Triangle
2- Print Diamond
3- Quit
Enter your choice:
Problem 2:
A palindrome is a number or text 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.
Problem 3:
Write a program that uses a for structure to sum a sequence of integers. Assume that the first integer read specifies the number of values remaining to be entered. Your program should read only the value per input statement. A typical input sequence might be
5 100 200 300 400 500
where the 5 indicates that the subsequence 5 values are to be summed.
Problem 4:
Write a program that prints a table of the decimal, octal and hexadecimal equivalent of the decimal numbers in the range 1 through 265. Make your program test data. Leading 0 for octal, leading 0X for hexadecimal and non for decimal. (Hint: use output stream manipulators)
Problem 5:
Write a program that prints the value 100.453627 rounded to the nearest digit, tenth, hundredth, thousandth and ten thousandth using only techniques you have learned.
Problem 6:
Write a C program to read and convert temperatures from degree Celsius to degrees Fahrenheit using the flowing formula:
F = (9/5) C + 32
Where F is the temperature in degrees Fahrenheit and C is the Temperatures in degrees Celsius. Hint: Use typecasting
والله يجزاكم الف خيييير ..
