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

بلييييييييييييز احتاج مساعدتكم

بدأه شامخه في 28 فبراير 2011 · 1 رد · 333 مشاهدة · في الأسئلة المجابة
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

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

اخواني خواتي

عندي طلب واتمنى ما تردوني فيه

المس عطتنا برنامج اسايمنت والتسليم غدا حاولت احله مافهمت

السؤال اهو كالتالي :

1. Students were asked to rate the quality of the food in the cafeteria on a scale of 1 to 10.( 1 means awful and 10 means excellent). Place the responses in an integer array and summarize the result of the poll.

Details:

You must first ask the user to enter the total number of students taking the poll.( You can have only a maximum of 40 students).

If 10 students are participating in the poll, u should get in 10 user inputs.

For each input u have to check if the user is entering a valid value (1 to 10). If the user enters a wrong value then it should be disregarded and ask for user input again.

After getting 10 inputs you should summarize the poll.

Sample Output:

WELCOME!!!!YOU ARE HERE TO TAKE PART IN A CAFETERIA POLL.

YOU CAN ENTER ANY VALUE FROM 1 TO 10.

1 – AWFUL 5 – AVERAGE 10 – EXCELLENT

How many students will take the poll? 5

Student 1: Please Enter a value (1 to 10) : 7

Student 2: Please Enter a value (1 to 10) : 4

Student 3: Please Enter a value (1 to 10) : 3

Student 4: Please Enter a value (1 to 10) : 11

INVALID ENTRY!!! THE VALUE SHOULD BE FROM 1 TO 10.TRY AGAIN.

Student 4: Please Enter a value(1 to 10) : 6

Student 5: Please Enter a value (1 to 10) : 7

PLEASE WAIT FOR THE RESULTS!!

RATING FREQUENCY

1 0

2 0

3 1

4 1

5 0

6 1

7 2

8 0

9 0

10 0

THANKYOU!!!

اتمنى انه تساااعدوني في الحل

رجااااءا

#2

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

اعرضي محاولاتك و المشاكل التي واجهتك .. وستجدين المساعدة ..

بالتوفيق .

2

سبحآن الله وبحمده .. سبحآن الله العظيم .. ,

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

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…