math lover
اا مشرف سابق اا
- تاريخ التسجيل
- 28 سبتمبر 2009
- المشاركات
- 2,472
- المجموعة
- أنثى
- الدفعة الدراسية
- 2009
- الكلية
- كلية العلوم
- التخصص
- math-biology
^^
لأن ستاتيك
لأن ستاتيك
كودات السيرج والسورت والشفت نسيتهم
ارجع احفظهم ؟
شكلي مابرجع لهم لان مو موجودين في النهائيات السابقة
Write a program that uses a dynamic two-dimensional array marks2d to store the marks of
quizzes (double) scored by many students (rows). The program should ask the user to enter
the number of students (rows) and enter the number of quizzes (columns). Then dynamically
create the two-dimensional array marks2d of size rows X columns. The program should ask
the user to enter the marks scored by each student in each quiz and find the student with
highest average mark.
Your input/output should be as follows:
Enter the number of students: 4
Enter the number of quizzes: 6
Enter the marks scored by student #1 in 6 quizzes
10 8 9.5 7 6 7.5
Enter the marks scored by student #2 in 6 quizzes
9.5 8.5 10 10 10 10
Enter the marks scored by student #3 in 6 quizzes
7 6 5 6 7 7
Enter the marks scored by student #4 in 6 quizzes
8 9 9 8.5 9.5 8.5
The student with the highest average mark is student# 2
عرفت احله لكن آخر خطوة ما عرفت اتذكر عطونا في المقرر القبلي اشلون انطلع هايست افرج بس نسيت
عرفت احله لكن آخر خطوة ما عرفت اتذكر عطونا في المقرر القبلي اشلون انطلع هايست افرج بس نسيت
[max=-3000;
maxpos=0;
for (int r=0; r<stcout; r++)
{
int sum=0, c=0;
for (c=0; c<Qcout; c++){
sum+=M[0][c];
c++;
}
avg = sum/c;
if (avg>max)
{
max = avg;
maxpos = r;
}
}
cout<<"the student...."<<maxpos+1;
اني درست مال المنتصف امس بس ما ركزت عليهم واجد مااتوقع ان يجيبون منهم
اني درست مال المنتصف امس بس ما ركزت عليهم واجد مااتوقع ان يجيبون منهم
PHP:[max=-3000; maxpos=0; for (int r=0; r<stcout; r++) { int sum=0, c=0; for (c=0; c<Qcout; c++){ sum+=M[0][c]; c++; } avg = sum/c; if (avg>max) { max = avg; maxpos = r; } } cout<<"the student...."<<maxpos+1;
ان شاءالله ماييبون منهم
مخي شكله شير
يلا جا دوركم
حلو هالسؤال
Consider the following definitions for class Rectangle:
class Rectangle
{
public:
Rectangle();
void setAll(float, float);
void getAll(float &, float &);
float area();
float perimeter();
private:
float length;
float width;
};
Write a non-member function named find-all-rec-Area that takes as parameters an array of
pointers to objects of type class Rectangle and the number of rectangles in the array (size).
The function should find and print the area of all rectangles in the array. Note: Assume all
member functions are implemented.
template<class t>
class SType
{ private:
t elements[100];
int size;
public:
SType();
void addtoEnd(t value);
t retrieveLastElement();
int getSize();
};
template<class t>
void SType<t>::addtoEnd(t value)
{ if(size<100)
{ elements[size]=value;
size++;}
}
int main()
{ SType<long> students;
students.addtoEnd(231546);
}