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

مساعده ؟؟

مغلق
بدأه NoooNooo في 28 أكتوبر 2003 · 0 رد · 472 مشاهدة · في ارشيف قسم C/C++
مشاركة: واتساب X فيسبوك تيليجرام
#1

تحياتي لللجميع ،،

يعطيكم الف عافيه على المنتدى الرائع ،،

طلبي المساعده في حل تلك المسائل في لغه السي ،،

1. Write a program that is a simple electronic library card catalog. Have the program display this menu:

Card catlog

1. Add a book

2. search by author

3. search by title

4. quit

choose your selection

For add a book, have the program input the name, author, and publisher of a book and the type of a book ( for the type of a book use a separate structure to hold information about this like date of publication, length of book (number of pages).

For searches, prompt the user for the specified author or title and then, if a match is found, display the rest of the information.

NB: Your program should be structured and modular.

**********************

2. a. Write a program that create a telephone directory that was stored in an array of structures, each containing a person’s name, area code, and telephone number as strings.

b. Improve the telephone-directory so that it includes each person’s mailing address. Store the address in its own structure, called address, which is nested inside the directory structure.

Use the input data in part a. to create the new directory structure. (enter only the address)

***************

3. Define a structure for rational numbers. A rational number is composed of two integers with division indicated. The division is not carried out, it is only indicated as in 1 / 2 15/32.

You should represent rational numbers by two int values, numerator and denominator.

Write the following functions:

Add: add two rational numbers.

mul: multiply two rational numbers.

div: divide two rational numbers.

less: add two rational numbers.

Let any sign be carried by the numerator; keep the denominator positive.

******************

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

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