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

[مخالف - طلب حل : ]مهم!

مغلق
بدأه sting77 في 27 مارس 2010 · 1 رد · 1,083 مشاهدة · في C++.Net
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

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

كيفم إن شاء الله تمام

هاذي اول مشاركه في المنتدى وحبيت اكون واحد منكم

عندي سوال في c++ فاحبيت انكم تشاركوني في حله

1

Write a program which takes three numbers and prints three lines

1. the highest number

2. the lowest number

3. the three number sorted

For example, if the user entered the following numbers : 30 , -20, 5,

the output will be :

The biggest number is 30

The smallest number is -20

The sorted numbers are : -20, 5, 30

2

Write a program which :

1. ask the user to enter the number of sections in CS140

2. read the number of students within each section

3. add this number together to count the total number of students

studying CS140

4. read the number of students successfully completed CS140 in

each section

5. add this number together to count the total number of students

who successfully completed the CS140

6. print the average number of (students passing CS140)/(total

number of students in CS140)

You should :

1. check if the the number of section is a positive number (>= 0)

2. not pass this step until you are sure the user entered a correct

number ( try to use a loop)

3. use a concise output message helping a user to understand

what he should do

4. check the division and the error of divided by zero in your

program

5. check that the passed students is less or equal to the total

students number of that section

Hint:

you need

1. a loop to check the number of section

2. one loop to count the total students number and in same time,

the number of pass students

3. a division to calculate the average of pass

4. You need 6 variables (5 int and 1 double)

5. You need to use a cast operator for the division

يعطيكم الف عافيه

#2

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

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

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

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

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

/index.php?showtopic=29343

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

http://informatic-ar.com منصة تعليمية عربية في علوم الحاسب والبرمجة

https://moalfat.com  للكتب الالكترونية والكورسات التعليمية

Everything we see now is just an engineering solution based on old science

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

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