السلام عليكم انا اول مره اشارك بالمنتدى هذا بصراحه عندي برنامجين انا مبتدئ جدا بلغة السي يعني ما صار لي فتره ادرسها البرنامج الاول
A) Write a program that:
1. Reads two arrays of type integer and prints them. Assume that the two arrays are of the same size.
2. Sorts the two arrays in ascending order, and prints the sorted arrays.
3. Merges the sorted arrays, storing the result in a third array (still sorted in ascending order). Do not sort the third array!
4. Prints the third array.
Hint: When one of the input arrays has been exhausted, do not forget to copy the remaining data of the other array into the result array.
Test your program with cases in which:
a) The first array is exhausted first.
B) The second array is exhausted first.
c) The two arrays are exhausted at the same time i.e., they end with the same value.
d) Remove the duplicate entries from the final sorted list.
انا فاهم كل البرنامج بس الي ما عرفته كيف اسوي مصفوفه ثالثه وتكون مرتبه جاهزه من الاصغر للاكبر .
البرنامج الثاني:
Write a program that reads words from a file (until the end of that file) and prints the frequency of each word in the file.
For example, if the input file contains the following data:
The C language is a high level language. We study this language in the CS101 course.
Then, the output should be:
Word Frequency
------ ------------
The 2
C 1
language 3
is 1
a 1
high 1
level 1
We 1
study 1
this 1
in 1
CS101 1
course 1
بصراحه هذا البرنامج كله ما فهمته
واتمنى المساعده بقدر الامكان وشكرا