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

Homework

مغلق
بدأه aljabri88 في 24 أبريل 2003 · 3 رد · 658 مشاهدة · في الأسئلة المجابة
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

ممكن المساعدة وانا اسف على طرح الموضوع مرة اخرى ولكن اللاهمية

Write a C++ program for calculating a yearly debit for a list of students. The program starts by reading from an input file “student.dat” into an array of structures. The intput file constructs of a list of student records each containing student name (first name followed by last name separated by a space), an ID (integer), and Basic Debit (float). The program should then print in an output file “Student.out” a list containing for each student the name, the ID, the Basic Debit, Discount Debit, and the Yearly Debit. The Discount Debit and the Yearly Debit are calculated as follows:

· The Discount Debit is 20% of The Basic Debit.

· The Yearly Debit is the subtraction of (The Basic Debit and The Discount Debit) Multiplied by 12.

The following example shows how your input and output files should be formatted:

Example of an Input File “Student.dat”:

Nehad Al-Amri # 6660 100

Hamza Al-Saadi # 5552 80

Basil Al-Hinai # 1234 60

Example of an Output File “Student.out”:

NAME ID BASIC DEBIT DISCOUNT DEBIT YEARLY DEBIT

------------------------------------------------------------------------------------------------------------------------------------

Nehad Al-Amri 6660 100.000 20 960.000

Hanaa Al-Saadi 5552 80.000 16 768.000

Adil Al-Hinai 1234 60.000 12 576.000

1. Write the algorithm in pseudocode

2. Use C++ to code your solution and submit to the Lab instructor

i. a hard copy of your program and,

ii. an electronic copy on a floppy disk.

Put a label on the disk containing your name and student number. Your program file on the floppy disk should appear under the name “hwk6.cpp”.

0.5 1.0 1.5 2.0 3.0 4.0 5.0

Algorithm: Pseudocode

Programming Style: Indentation, Naming, Comments

Data Types

Correctness

User Interface: Input/Output

#2

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

#3

أخي ال aljabri88 في المرة الأولى قال لك المشرف راجع قوانين المنتدى فكنت أتوقع على القليل ان تضع محاولة لحل السؤال على الأقل والا فماذا استفدت من قراءة هذه القوانين ، فعلا ظاهرة حل الواجبات أصبحت متكررة ولدرجة أنها تصيب الأعضاء بالملل من القسم .... فنجد أن بعض الأعضاء يسجلوا بالمنتدى فقط لحل واجب ثم لا تراهم بعد ذلك ، يعني كأنه المنتدى مدرس خصوصي وليس لتبادل الخبرات والتعلم ...:rolleyes:

#4

عفوا يا اخواني الاعزاء انه ليس لي وانما لشخص ثاني ،لذا انا اسف على كل حال

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