Writing software codes in a very professional programming language, using mathematics and data entry skill

تفاصيل العمل

/* for(int x=0;x<20;x++){

if(x%4==0){

continue;

}

cout<<x<<endl;

}*/

/* int n;

cin>>n;

for(int i=1;i<=n;i++){

for(int j=1;j<=i;j++){

cout<<"*";

}

cout<<endl;

}*/

//Array

/* int x[10];

for(int i=0;i<10;i++){cout<<i<<endl;}*/

/* int Array[100],n;

cout<<"enter the size"<<endl;

cin>>n;

for(int i=0;i<n;i++){

cin>>Array[i];

}

for(int i=0;i<n;i++){

cout<<Array[i];

}*/

/* int nums[]={100,300,600,900};

string awards[]={"iphone","ibad","bc","car"};

cout<<"numbers"<<" "<<nums[0]<<" "<<"awards is:"<<awards[0]<<endl;

cout<<"numbers"<<" "<<nums[1]<<" "<<"awards is:"<<awards[1]<<endl;

cout<<"numbers"<<" "<<nums[2]<<" "<<"awards is:"<<awards[2]<<endl;

cout<<"numbers"<<" "<<nums[3]<<" "<<"awards is:"<<awards[3]<<endl;*/

//array max number

/* int n;

int arr[100];

cin >> n;

for (int i = 0; i < n; i++)

{

cin >> arr[i];

}

int max = arr[0];

for (int i = 0; i < n; i++)

{

if (max < arr[i])

{

max = arr[i];

}

}

cout << max << "\n";

//elzeroo web school task 2.

int check = 25;

int n;

int nums[100];

cout << "enter size of array\n";

cin >> n;

int sum;

cout << "enter elements of array\n";

for (int i = 0; i < n; i++)

{

cin >> nums[i];

}

if (nums[0] > check)

{

sum = nums[0] + nums[(n- 2)];

cout <<"sum of elements[0]and[before last one is]: " << sum << "\n";

}

if (nums[1] > check)

{

sum = nums[1] + nums[(n - 2)];

cout << "sum of elements[1]and[before last one is]: " << sum << "\n";

}

if (nums[2] > check)

{

sum = nums[2] + nums[(n - 2)];

cout << "sum of elements[2]and[before last one is]: " << sum << "\n";

}

int filling=10;

int vals[]={100,200,300,400};

vals[0]=filling; vals[1]=filling; vals[2]=filling; vals[3]=filling;

cout<<vals[0]<<endl<<vals[1]<<endl<<vals[2]<<endl<<vals[3]<<endl;

int arr[5];

for(int i=0;i<5;i++){

cout<<"enter the numbers of element"<<endl;

cin>>arr[i];

}

if(arr[0]+arr[4]>arr[2]){cout<<"first element + last element > middle element = "<<arr[0]+arr[4]<<" > "<<arr[2]<<endl;}

else if(arr[1]+arr[3]>arr[2]){cout<<"second element +befor last element > middle element = "<<arr[1]+arr[3]<<" > "<<arr[2]<<endl;}

else{cout<<arr[2];}*/

// input the temperature by fahrenheit and output temperature by celsius.

/* float f,c;

cout<<"enter the temperature by fahrenheit"<<endl;

cin>>f;

c=(f-32)*5/9;

cout<<"temperature by celsius="<<c<<endl;

//*****************

//division////multiplication

int x,y,z;

cout<<"enter the first number"<<endl;

cin>>x;

cout<<"enter the second number"<<endl;

cin>>y;

z=x/y;

cout<<"division number="<<z<<endl;

z=x*y;

cout<<"multiplication number="<<z<<endl;

//******************

//characters

char a,b,c,d,e;

cout<<"enter the name"<<endl;

cin>>a>>b>>c>>d>>e;

cout<<"hello"<<a<<b<<c<<d<<e<<endl;

int age=40;

int points=800;

float rate=8.5;

if(age>18 && points>500 && rate>5){cout<<"yes age>18 & points>500 & rate>5"<<endl;}

// this would be a mistake

int num;

cout<<"please enter the number between 0 & 150"<<endl;

cin>>num;

if(num<10){cout<<"00"<<num<<endl;}

else if(10<num<100){cout<<"0"<<num<<endl;}

else if(num>=100){cout<<num<<endl;}

int num1 = 5;

int num2 = 1;

int num3 = 5;

int num4 = 30;

// Do Not Edit Any Condition

// Condition 1

if (num1 > num2)

cout << "Condition 1 Is True\n";

else

cout << "Condition 1 Is False\n";

// Condition 2

if (num1 > num2 && num1 < num4)

cout << "Condition 2 Is True\n";

else

cout << "Condition 2 Is False\n";

// Condition 3

if (num1 > num2 && num1 == num3)

cout << "Condition 3 Is True\n";

else

cout << "Condition 3 Is False\n";

// Condition 4

if (num1 + num2 < num4)

cout << "Condition 4 Is True\n";

else

cout << "Condition 4 Is False\n";

// Condition 5

if (num1 + num3 < num4)

cout << "Condition 5 Is True\n";

else

cout << "Condition 5 Is False\n";

// Condition 6

if (num1 + num2 + num3 < num4)

cout << "Condition 6 Is True\n";

else

cout << "Condition 6 Is False\n";

// Condition 7

if (num4 - (num1 + num3) + num2 == 21)

cout << "Condition 7 Is True\n";

else

cout << "Condition 7 Is False\n";

//minus

int result=0;

int x,y,z,a;

cin>>x>>y>>z>>a;

if(x<20 && x%2==0){result+=x;

}

if(y<20 && y%2==0){result+=y;

}

if(z<20 && z%2==0){result+=z;

}

if(a<20 && a%2==0){result+=a;

}

cout<<result<<endl;*/

بطاقة العمل

اسم المستقل
عدد الإعجابات
0
عدد المشاهدات
13
تاريخ الإضافة
تاريخ الإنجاز
المهارات