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

[مخالف - طلب حل : ]ساعدوني ولكم دعوه بالروضه الشريفه

مغلق
بدأه طالب المدينه في 5 يونيو 2011 · 2 رد · 307 مشاهدة · في ارشيف قسم C/C++
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

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

تكفون ساااااعدوووووووني عليه 20 درجه

ومحتااااااااجها

مشروع ومااعرفت له

ومالي غيركم

ذا الواجب والنص

اقتباس

Write a C++ program to read, save, sort, search and display the students’ ids, student names and marks of N students.

N=7 should be declared as a constant in your program. You must use arrays to store the students’ IDs, names and marks.

Note: an enhanced version of this program can be achieved after studying functions and structs.

Your program should display and execute a menu with the following options.

A switch statement must be used to execute the following menu options.

Menu

---------

1. Clear

2. Register a Student (Id, Name, Mark)

3. Display the student with a highest mark

4. Display the marks of all students

5. Display the percentage of the total mark received by each student

6. Sort all marks in ascending order

7. Sort all marks in descending order

8. Search for a student with a given id

9. Search for a student with a given name

10. Search for a student with a given mark

11. Exit

Explanation

1. Clear

This option initializes all the elements of the arrays to -1 to indicate that array is empty and names to null.

2. Register a Student (Id, Name, Mark)

This option reads and stores the student’s id, student’s name and student’s marks. The marks (float numbers) are entered from the keyboard.

3. Display the student with a highest mark

This option displays the student id, name and mark for a student with a highest mark.

4. Display the marks of all students

This option displays the students’ IDs, names, marks of all students.

5. Display the percentage of the total mark received by each student

This option displays the percentage of the total mark for all students.

6. Sort all marks in ascending order

This option sorts all marks in ascending order. You can use any sorting algorithm which uses at least two while loops and one if statement.

7. Sort all marks in descending order

This option sorts all marks in descending order. You can use any sorting algorithm which uses at least two while loops and one if statement.

8. Search for a student with a given id

This option searches for a student with a given id. The program asks the user to enter the id using the keyboard and searches for it. If an appropriate student is found, the program displays the message “student found” and displays the id, name and the mark otherwise it displays a message “no student found”.

9. Search for a student with a given name

This option searches for a student with a given name. The program asks the user to enter the name using the keyboard and searches for it. If an appropriate student is found, the program displays the message “student found” and displays the id, name and mark otherwise it displays a message “no student found”.

10. Search for a student with a given mark

This option searches for a student with a given mark. The program asks the user to enter the mark using the keyboard and searches for it. If an appropriate student is found, the program displays the message “student found” and displays the id, name and mark otherwise it displays a message “no student found”.

11. Exit

The program should display the message “Thanks for using this program”, and exit.

The whole program should work in a loop to enable the user to select an item from menu until the user chooses to exit.

تكفوووووووووووووووووووون

#2

طيب قولي ايش تبغى فيــه ..

ايش الي موقفك ؟

#3

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

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

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

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

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

/index.php?showtopic=29343

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

Do as I say, not as I do

We are Anonymous. We are Legion. We don't forgive. We don't forget

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

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

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

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

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

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