السلام عليكم
عندي سؤالين حاولت احلهم لكن ماعرفت فاتمنى احد يشرح لي طريقة حلهم أو يحلهم وراح استنتج من الحل الطريقة الصحيحة للحل .. واتمنى حلهم باستخدام
loops & arrays & string
1 )
write a c++ program that prompts a user to input a string of text . the program should capitalize the first letter of every word in the string and change the remaining letters to small letters . The words are separated by only one space and non-alphabet characters are skipped.
example
hELo hOW ARE yOu good/mOrning
after processing
Hello How Are You Good/morning
2)
write a c++ program to do the following :
(a) Declare an array of size 200 that will hold marks of the midterm exam of all student taking ITCS!)! course this semester .Name this array midterm.
(B) Read the midterm marks for all students and store them in midterm untile a negative number is entered. if the mark is not in the range 0 to 100 ignore it and do not store ir in the array.
© Sort the array midterm (either ascending or descending).
(d) Display the top 5 program.
Here is a sample of your program :
Enter the marks :
98.7
120
45.6
.
.
.
.
78.0
-1.0
The top 5 marks are : 98.7 78.0 66.5 66.2 50.8
ياليت القى عندكم الحل وأظن مثل هالبرامج شي بسيط عندكم بس انا لازلت طالب مستجد في هالامور وشاكر لكم
