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

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

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

ITCS103 -CSC103-ITCS111-ITCS101 للدراسة و المناقشة الجماعيه 2014-2015

ما هو رأيك في الحصة و بشكل عام ( الشرح - المواضيع -الأسلوب )؟

  • سيئ ، لم أفهم شيئا .

    الأصوات: 9 28.1%
  • جيد ، فهمت نص و نص .

    الأصوات: 10 31.3%
  • ممتاز ، واضح و مقبول .

    الأصوات: 13 40.6%

  • مجموع المصوتين
    32
@@@@H@@@@
@@@HHH@@@
@@HHHHH@@
@HHHHHHH@
HHHHHHHHH




جيفه نطبع ده الشكل ؟؟

هذا شغل تلصيق :RpS_lol:
اذا تنتظرون الشباب يمكن واحد يجيب حل منطقي شوي :RpS_tongue:

كود:
	int n;
	cout<<"Enter number: ";
	cin>>n;
	cout<<endl;
    for (int i=n ;i>0;i--)
	{
		int c=0,x=0;
		for (int j=1 ;j<n*2 ;j++)
			if (x+j==(n*2))
			{
				cout<<"@";
				x--;
			}
			else if (c+j!=(n*2) && j%i!=0)
			{
				cout<<'@';
				c++;
			}
			else if (x+j!=(n*2))
			{
				cout<<'H';
				if(c+j!=(n*2))
					x=c;
				c=(n*2)-j-1;
			}
		cout<<endl;
	}
 
كود:
#include <iostream>
using namespace std;


int main() {
	int rows;
	cout << "Enter a number : ";
	cin >> rows;


	for (int i = 1; i <= rows; i++) {
		for (int j = 0; j < rows - i; j++) 
			cout << '@';
		
		for(int k = 1; k <= (i-1) * 2 + 1;k++)
			cout<<'H';
		


		for (int j = 0; j < rows - i; j++) 
			cout << '@';


		cout << endl;
	}


	return 0;
}
 
CSC103

ممكن تساعدوني في حل السؤال
Write function ConvertToCelsuis which takes a Fahrenheit temperature and return it's Celsius equivalent. Another function ConvertToFahrenheit which takes a Celsius temperature and return it's Fahrenheit equivalent. Test your functions by writing a program that asks the user to enter a temperature followed by a char. If the entered character is 'f' or ‘F’ then convert the temperature to Fahrenheit, if the entered character is 'c' or ‘C’ then convert the temperature to Celsius.

F= (C*1.8)+32
C=(F-32)* 0.5
 
ممكن تساعدوني في حل السؤال
Write function ConvertToCelsuis which takes a Fahrenheit temperature and return it's Celsius equivalent. Another function ConvertToFahrenheit which takes a Celsius temperature and return it's Fahrenheit equivalent. Test your functions by writing a program that asks the user to enter a temperature followed by a char. If the entered character is 'f' or ‘F’ then convert the temperature to Fahrenheit, if the entered character is 'c' or ‘C’ then convert the temperature to Celsius.

F= (C*1.8)+32
C=(F-32)* 0.5


https://www.uob-bh.com/forum/showthread.php?t=23491&page=65
 
write c++ program that will read a character from the user and pass the character to function named vowel.the function should return :​


  1. [*=left]true if the character is a vowel.
    [*=left]false if the character is not a vowle.

the main function should print if the character is a vowel or not.
hint( vowel letters : o , a , i , e , u )

sample input/output1:
Enter a character :
s
s is not a vowel

sample input/output2:
Enter a character :
a
a is a vowel




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


حليته .. بس عندي خلل في البرنامج الشاشة السوداء للاوت بت ماتشتغل عندي واذا اشتغلت دايركت تبند ..

اذا ماعليكم كلافة احد يجيك ليي اذا الحل صح أو لا ،

​
int vowel(char x)
{
if (x == 'a' || x == 'o' || x == 'i' || x == 'e' || x == 'u')
return true;
else
{
return false;
}
}
#include<iostream>
int vowel(char);
using namespace std;
int main()
{
char x;
cout << "Enter a character:";
cin >> x;
if (x == 'a' || x == 'o' || x == 'i' || x == 'e' || x == 'u')
cout << x << " " << "is a vowel";
else
cout << x << " " << "is not a vowel";
return 0;
}

​
​
 
write c++ program that will ask the user to enter a nimber, then pass the number to function named product . the function should print all the product of the number and returns how many products the number has . the function should print the number of products.

sample input/output

Enter a number : 6
The ptoducts of the number 6 are :
1 2 3 6

The number 6 has 4 products

​

احد يساعدني في حل هذا السؤال .. ماعرفت احله :no:
​
 
write c++ program that will ask the user to enter a nimber, then pass the number to function named product . the function should print all the product of the number and returns how many products the number has . the function should print the number of products.

sample input/output



​

احد يساعدني في حل هذا السؤال .. ماعرفت احله :no:
​

البرنامج يطلب إيجاد الأعداد الي تنضرب و تنتج هذا العدد
PHP:
#include <iostream>
using namespace std;

int product(int num)
{
    int count=0;
    cout << "The products of the number " << num << " are" << endl;
    for (int i=num ; i>0; i--)
    if (num%i==0)
    {
        cout << i << " ";
        count++;
    }
    return count;
}

int main()
{
    int num;
    cout << "Enter a number" << endl;
    cin >> num;
    cout << "The number " << num << " has " << product(num) << " products." << endl;
}
 
write c++ program that will read a character from the user and pass the character to function named vowel.the function should return :​


  1. [*=left]true if the character is a vowel.
    [*=left]false if the character is not a vowle.

the main function should print if the character is a vowel or not.
hint( vowel letters : o , a , i , e , u )
sample input/output1:
sample input/output2:
---------------------------------
حليته .. بس عندي خلل في البرنامج الشاشة السوداء للاوت بت ماتشتغل عندي واذا اشتغلت دايركت تبند ..
اذا ماعليكم كلافة احد يجيك ليي اذا الحل صح أو لا ،

​
الحل صحيح بس ما استخدمتون الفنكشن في المين ..

كود:
#include <iostream>
using namespace std;
int vowel(char x)
{
if (x == 'a' || x == 'o' || x == 'i' || x == 'e' || x == 'u')
return true;
else
{
return false;
}
}
int main()
{
char x;
cout << "Enter a character:";
cin >> x;
if (vowel(x))
cout << x << " " << "is a vowel";
else
cout << x << " " << "is not a vowel";
return 0;
}
 
الحل صحيح بس ما استخدمتون الفنكشن في المين ..

كود:
#include <iostream>
using namespace std;
int vowel(char x)
{
if (x == 'a' || x == 'o' || x == 'i' || x == 'e' || x == 'u')
return true;
else
{
return false;
}
}
int main()
{
char x;
cout << "Enter a character:";
cin >> x;
if (vowel(x))
cout << x << " " << "is a vowel";
else
cout << x << " " << "is not a vowel";
return 0;
}

جواب غلط لازم الريترن تايب يكون بولين.
 
مشكورين أخواني على المساعدة :rolleyes2:


يعني شنو :mellow: ؟

كود:
int vowel(char x)
if (x == 'a' || x == 'o' || x == 'i' || x == 'e' || x == 'u')
return true;
else
{
return false;
}
}
يصير
كود:
[B][COLOR=#ff0000]bool [/COLOR][/B]vowel(char x){
return (x == 'a' || x == 'o' || x == 'i' || x == 'e' || x == 'u');
}
فعلاً هو ما يأثر لأنه
true = 1, false = 0
فعادي يكون int، بس ذي أصح..
 
^
هالاختراع شسالفته ؟
ماستخدمناه من قبل :nosweat:
 
مع اني ما انتبهت بس الحل صحيح :smile2:

في الحالتين
true =1 و false=0 ..
اها يعني قصدك بانه خلاص الbool ريترن تايب ماله داعي، صح؟!

^
هالاختراع شسالفته ؟
ماستخدمناه من قبل
nosweat.gif
فيجوال ستيديو يعتبر الtrue واحد و الfalse صفر..
 
ممكن مساعدة في حل سؤال في ال ITCS103

Write a function trapezoid(int start, int end) that generates a trapezoid of numbers as shown below.start and end are integers from 0 to 9 inclusive and assume that the value of start is <= the value of end.
for example if the value of start is 4 and end is 7 the trapezoid should be:

4444
55555
666666
7777777
​
​
بداية الحل الي سويته:
#include<iostream>
using namespace std;
void trapezoid(int start, int end)
{
int r,c;
for(r=start; r<=end;r++)
{
for(c=1 ; c<=r;c++)
cout<<r;
cout<<endl;}
}


باقي ال int main() ماادري ويش اكتب فيه:RpS_crying: ياريت تساعدوني :RpS_crying::RpS_crying:
​
 
سؤال في ال ITCS103

Write a function named DisplayGrid that takes as parameters number of rows and number of columns in the gride .the function shoulde display the following grid of numbers using nested loops.if the number of rows is 5 and number of columns is 4 then your output should be as follows:
56789
45678
34567
23456
12345

بغيت مساعدتكم:smile::smile:
​
 
Write a function named DisplayGrid that takes as parameters number of rows and number of columns in the gride .the function shoulde display the following grid of numbers using nested loops.if the number of rows is 5 and number of columns is 4 then your output should be as follows:
56789
45678
34567
23456
12345

بغيت مساعدتكم:smile::smile:
​

كود:
void main()
{
	int r,c;
	cin>>r>>c;
	for (int i=r;i>0;i--){
		for (int j=0;j<=c;j++)
			cout<<i+j;
		cout<<endl;}
}
 
e^x +2x^-3
هاذي شلون نكتبها ؟؟
 
عودة
أعلى أسفل