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

السي++

مغلق
بدأه sondos15 في 12 ديسمبر 2005 · 1 رد · 460 مشاهدة · في ارشيف قسم C/C++
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم

ممكن تساعدوني في حل هذا السؤال يعني اشلون نسوي recordومشكلة اعرف اسوي حل a

لكن المشكلة باقي الاسئلة

An MT262 tutor wishes to keep, in the form of a table, information about the

grades scored by her group of 24 students for their Tutor-marked Assignments. For

each student there are to be five pieces -of information, namely:

o name;

o grade on TMA01;

o grade on TMAO2;

o grade on TMAO3;

o grade on TMAO4.

Each grade is an integer in the range from 0 to 100, and the name will be a string

value which identifies each student uniquely.

Initially, all the student names are entered into the table. You should assume that

this has been done; do not write code for this initialization. Then, as the marking of

each assignment is completed, the tutor will enter all the grades for that assignment.

If a student fails to submit an assignment, then a grade of 0 will be recorded.

In what follows, you are asked to design and write fragments of C++ code to perform certain

tasks. The answers that you submit should give just the lines of code which carry out the task

(rather than whole programs), but should include the code fragments. You should not check

for user input errors unless specifically mentioned in the question.

(a) Give a C++ declaration of a struct StudentType to hold the five pieces of information

about a single student. Give a C++ declaration of a variable Group2006 to bold the table

of information on her group as an array of records. [3]

(B) When the tutor has completed marking the submissions for TMAO1, she wishes

to record all the grades. Design and write a fragment of C++ code for entering these

grades into Group2006. Your design should, for each student in the group, display a

prompt which induces the student's name and then read in the corresponding grade from

the keyboard. [4]

© Now assume that the tutor has entered the grades for all four assignments. She

wishes to identify all students who have failed to achieve an average grade of 40% over

the four assignments; that is, the total of their four grades is less than 160. Design and

write a fragment of C++ code whose purpose is to display the name of each such student.

If there are no such students, a message to this effect should be written out instead. [6]

(d) Design and write a fragment of C++ code whose purpose is to receive a string value

entered from the keyboard, and then carry out a linear search of Group2006 for any

student with that name. If a match is found, the recorded grades for the four assignments

are to be displayed; otherwise, a message should report that there is no student with that

name. [7]

ممكن الشرح والتوضيح

#2

اخي الكريم, الرجاء مراجعة القوانين, موضوعك مخالف من ساسه لراسه

- عنوان مخالف

- سؤال واجب

- طلب شرح سؤال (ترجمة!)

و القوانين تمنع اسئلة الواجب و من الواضح ان هذه قسم السي بلص بلص و ليس قسم ترجمة!

سأضطر لغلق الموضوع.

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

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