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

[مخالف - طلب حل : ]ابي مساعده في حل هذا سوال بليزززززززززززززز

مغلق
بدأه anod في 8 مارس 2009 · 1 رد · 276 مشاهدة · في ارشيف قسم C/C++
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

Structures

Design a program that uses a structure type to store a computer part’s description, quantity and price. The program should use an array of structures to store data for up to 100 computer parts.

The program should first prompt the user to select one of the following menu options:

  • Get computer parts’ data
  • Display parts sorted alphabetically
  • Display parts where quantity is less than the given quantity
  • Exit

If the first option is selected, the program should obtain data for a requested number of parts from the user and store them into the array of structures.

If option 2 is selected the program should first sort the array alphabetically by the part’s description and then display the sorted parts’ data.

If option 3 is selected the program should obtain the requested quantity of parts from the user and then display all parts where the quantity is less than the given quantity.

The program should loop back to the main menu until the exit option is selected.

Requirements:

1. Global variables/arrays are not allowed.

2. Options 2 and 3 have to be executed by calling appropriate user-defined functions.

#2

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

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

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

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

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

/index.php?showtopic=29343

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

tvquran_6.gif

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

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

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

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

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

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