موقع طلبة جامعة البحرين

يمكنك تصفح الموقع كزائر ولكن ندعوك لتسجيل عضوية خاصة بك لتحصل على كافة الصلاحيات مثل تنزيل ملفات المكتبة وقراءة تعليقات هيئة التدريس وغيرها. يمكنك الحصول على عضوية مجانية بالضغط على زر تسجيل. إذا قمت بالتسجيل مسبقا فيمكنك الضغط على زر دخول.

تسجيل دخول
  • قسم المكتبة الجامعية مغلق مؤقتا بعد الاستهداف التي تعرضت له بعض خدمات أمازون في البحرين، جاري استرجاع الملفات ونقلها إلى سيرفرات جديدة وسيتم بعدها اعادة افتتاح المكتبة

ITCS112 - ITCS104 - ITCS102 للفصل الصيفي 2014 - 2015

تدر نزلوا الدرجات مال Test 1 علي البلاك بودر
السلام عليكم أختي دخلت لبلاك بورد بس الدرجات ما نزلت ممكن تقولين لي وين أروح بالضبط
 
صباااااااااااح الورد


مممكن بعدددد اذنكم ابي حل هالسؤااااااالين محتااااااااااااجتهم
الله يجزاكم خير
1-

Write C++ statements that do the following:
a. Declare an array alpha of 10 rows and 20 columns of type int.
b. Initialize the array alpha to 0.
c. Store 1 in the first row and 2 in the remaining rows.
d. Store 5 in the first column, and make sure that the value in each subsequent column is twice the value in the previous column. e. Print the array alpha one row per line. f. Print the
array alpha one column per line.



2-
Suppose that you have the following declarations:
int times[30][7]; int speed[15][7]; int trees[100][7]; int students[50][7];
a. Write the definition of the function print that can be used to output the contents of these arrays.
b. Write the C++ statements that call the function print to output the contents of the arrays times, speed, trees, and students.

 
السلام عليكم أختي دخلت لبلاك بورد بس الدرجات ما نزلت ممكن تقولين لي وين أروح بالضبط
تدخل على الماده وتروح خانه information بتشوف ملف مكتوب فيه Grade وحتى الاجابه النموذجيه نزلوها
 
تدخل على الماده وتروح خانه information بتشوف ملف مكتوب فيه Grade وحتى الاجابه النموذجيه نزلوها

شكرا أختي بس دكتورتنا تأخرت في رفعهم رفعتهم بعد يوم من ردي :smile:
 
السلام عليكم
شباب وين أحصل مسائل للكلاسس و البوينتر في لكتاب دورت بس ما لقيت ، و إذا أحد عنده موقع فيه مسائل للكلاسس و البوينتر أتمنى يفيدنا و شكرا
 
ممكن حل هذا ؟

Consider the following struct declaration:
struct bookType
{
long ISBN;
string Title;
float price;
};
[h=1][/h][h=1]PART (A):[/h]Write a function named countBooks that takes as parameters: a pointer to an array of type bookType, and the array size. The function should return the number of books with a price > 30.

[h=1]PART (B):[/h]Write a main function to test your function in part (A) using dynamic array. The size and the contents of the array should be entered by the user.
 
ممكن حل هذا ؟

Consider the following struct declaration:
struct bookType
{
long ISBN;
string Title;
float price;
};
PART (A):

Write a function named countBooks that takes as parameters: a pointer to an array of type bookType, and the array size. The function should return the number of books with a price > 30.

PART (B):

Write a main function to test your function in part (A) using dynamic array. The size and the contents of the array should be entered by the user.



كود:
#include <iostream>
#include <string>
using namespace std;


struct bookType
{ 
long ISBN; 
string Title; 
float price;
}; 


int countBooks (bookType *list, int size) {


    int count = 0;


    for (int i = 0; i < size; i++)
        if (list[i].price > 30.0) count++;


    return count;


}






int main () {


    bookType *p;
    int size;


    cout<<"Array Size = " ;
    cin>>size;


    p = new bookType [size];


    cout<<"Price : " <<endl;
    for (int i = 0; i < size; i++)
        cin>> p[i].price;


    cout<<"Number of books > 30 = " << countBooks(p,size)<<endl;










system ("pause");
return 0;
}
 

كود:
#include <iostream>
#include <string>
using namespace std;


struct bookType
{ 
long ISBN; 
string Title; 
float price;
}; 


int countBooks (bookType *list, int size) {


    int count = 0;


    for (int i = 0; i < size; i++)
        if (list[i].price > 30.0) count++;


    return count;


}






int main () {


    bookType *p;
    int size;


    cout<<"Array Size = " ;
    cin>>size;


    p = new bookType [size];


    cout<<"Price : " <<endl;
    for (int i = 0; i < size; i++)
        cin>> p[i].price;


    cout<<"Number of books > 30 = " << countBooks(p,size)<<endl;










system ("pause");
return 0;
}
شكرا جزيلا بس وين بارت B ?
 
شكرا جزيلا بس وين بارت B ?
Part B عبارة عن الـ main .. و موجوده ضمن الحل !
عموماً هذا هو part B بروحه ..
كود:
int main () {




    bookType *p;
    int size;

    cout<<"Array Size = " ;
    cin>>size;

    p = new bookType [size];

    cout<<"Price : " <<endl;
    for (int i = 0; i < size; i++)
        cin>> p[i].price;

    cout<<"Number of books > 30 = " << countBooks(p,size)<<endl;


system ("pause");
return 0;
}
 
Part B عبارة عن الـ main .. و موجوده ضمن الحل !
عموماً هذا هو part B بروحه ..
كود:
int main () {




    bookType *p;
    int size;

    cout<<"Array Size = " ;
    cin>>size;

    p = new bookType [size];

    cout<<"Price : " <<endl;
    for (int i = 0; i < size; i++)
        cin>> p[i].price;

    cout<<"Number of books > 30 = " << countBooks(p,size)<<endl;


system ("pause");
return 0;
}


يعطيك العافية ما تقصر
 
......................................
 
التعديل الأخير:
السلام عليكم شعب الاي تي ..ممكن مساعدة في حل هذا الاسايمنت جزاكم الله خيير ؟Assignment #5 (Pointers)Consider the following struct declaration:struct bookType{ long ISBN;string Title; float price;}; PART (A):Write a function named countBooksthat takes as parameters: a pointer to an array of type bookType, and the array size. The function should returnthe number of books with a price > 30.PART (B):Write a main function to test your function in part (A) using dynamic array. The size and the contents of the array should be entered by the user.مشكوريين مقدما حبايبي
 
السلام عليكم
في أحد عنده شرح للأوفر لودنغ و التمابلت أو أسئلة محلولة
 
سلام عليكم بغيت اسالكم تتوقون ان بكون فيه كيرب اب او لا
 
سلام عليكم بغيت اسالكم تتوقون ان بكون فيه كيرب اب او لا

عليكم السلام
لا أختي السي اس و السي اي حسب علمي ما فيهم كيرف أب بس بما أن الأفيرج في تست ون 24 و الثاني 17 أو 18 أقصى شي يسونه أن الدي ما تصير من 60 ، تصير من 55
 
عليكم السلام
لا أختي السي اس و السي اي حسب علمي ما فيهم كيرف أب بس بما أن الأفيرج في تست ون 24 و الثاني 17 أو 18 أقصى شي يسونه أن الدي ما تصير من 60 ، تصير من 55
وبزيدون درجة الفانيل
 
لا ما بزيدونها ، خصوصا قسم علوم الحاسوب ما يزيدون يمكن يتساهلون في التصحيح بس سالفة أنهم أزيدون ما في أمل منها


بس CS 103 الفصل الي طاف سوو لهم كيرف اب
وانه سألت دكتورتنا قالت اذا الافرج العام
نازل مثل تيست 2
بيسون كيرف آب :schmoll:


الله كريم
 
بقدم الفاينل قبل ماعرف درجة التست 2 :RpS_wink: .....
 
السلام عليكم ممكن تقولون لي شنو الجباتر المطلوبة ضروري حق صيفي ؟؟
 
عودة
أعلى أسفل