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

[مخالف - طلب حل : ]سؤالين في C++

مغلق
بدأه ebrahim hammad في 18 ديسمبر 2008 · 1 رد · 323 مشاهدة · في ارشيف قسم C/C++
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم

عندي سؤالين حاولت احلهم لكن ماعرفت فاتمنى احد يشرح لي طريقة حلهم أو يحلهم وراح استنتج من الحل الطريقة الصحيحة للحل .. واتمنى حلهم باستخدام

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

ياليت القى عندكم الحل وأظن مثل هالبرامج شي بسيط عندكم بس انا لازلت طالب مستجد في هالامور وشاكر لكم

#2

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

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

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

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

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

/index.php?showtopic=29343

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

tvquran_6.gif

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

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