الاثنين، 21 مايو 2018

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication36
{
    class Program
    {
        // خلدون عصفور
        // برنامج لحساب قيمة التيار وقيمة الجهد الاول والثاني
        static void Main(string[] args)
        {
            double R1, R2, RT;
            double V, V1, V2;
            double I;
            Console.WriteLine("PLZ enter the V");
            V = double.Parse(Console.ReadLine());
            Console.WriteLine("PLZ enter the R1");
            R1 = double.Parse(Console.ReadLine());
            Console.WriteLine("PLZ enter the R2");
            R2 = double.Parse(Console.ReadLine());
            RT = R1 + R2;
            Console.WriteLine(" the RT IS " + RT+   " OHM");

            I = V / RT;
            Console.WriteLine("the I  IS " + I +   " ABMER");

            V1 = I * R1;
            Console.WriteLine(" the RT IS " + V1+  " VOLT");
            V2 = I * R2;
            Console.WriteLine(" the RT IS " + V2 + " VOLT");
            Console.ReadKey();
        }
    }
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
// خلدون عصفور
// برنامج لتحويل من الدولار الى الشيكل
namespace ConsoleApplication35
{
    class Program
    {
        static void Main(string[] args)
        {
            double D;
            double D2;
            double S;

            Console.WriteLine("plz enter the value dolar");
            D2 = double.Parse(Console.ReadLine());

            Console.WriteLine("plz enter the  dolar");
            D = double.Parse(Console.ReadLine());


            S = D * D2;
            Console.WriteLine("your SHEKEL"+ S);
            Console.ReadKey();
        }
    }
}

الخميس، 10 مايو 2018

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication68
{

    //عمل الطالب خلدون عصفور
    //مشروع يقوم بحساب الضريبة
    class Program
    {
        static void Main(string[] args)
        {
            string a;
            string f;
            string g;
            double b;
            double y;
            double o;
            double c;
            double d;
            double p;
            double q;
            double m;
            double n;
            double t;
            double x;
            double s;

            Console.WriteLine(" plz enter  item");
            a = Console.ReadLine();
            Console.WriteLine("please price");
            b = double.Parse(Console.ReadLine());

            Console.WriteLine(" plz enter  item 2");
            f = Console.ReadLine();
            Console.WriteLine("please price 2");
            y = double.Parse(Console.ReadLine());

            Console.WriteLine(" plz enter  item 3 ");
            g = Console.ReadLine();
            Console.WriteLine("please price 3 ");
            o = double.Parse(Console.ReadLine());

            c = b * 0.17;
            d = c + b;

            p = y * 0.17;
            q = p + y;

            m = o * 0.17;
            n = o + m;

            t = d + q + n;
            x = c + p + m;
            s = b + y + o; 

            Console.WriteLine(" ******************************************************* ");
            Console.WriteLine("                        tax invaice                      ");
            Console.WriteLine(" ******************************************************* ");
            Console.WriteLine("                         the price                             ");
            Console.WriteLine("       item                                        price           ");
            Console.WriteLine("       {0}                                          {1}  ", a, b);
            Console.WriteLine("       {0}                                          {1}  ", f, y);
            Console.WriteLine("       {0}                                          {1}  ", g, o);
            Console.WriteLine("                                                                    ");
            Console.WriteLine("       total                                       " + s);
            Console.WriteLine("       tax                                         " + x);
            Console.WriteLine("       total                                       " + t);
            Console.WriteLine("*********************************************************");
            Console.WriteLine(" *************thank you......,,,,,,,,,,,,,,,#############");
            Console.ReadKey();

        }
    }
}

الثلاثاء، 8 مايو 2018

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication31
{
    class Program
    {
        // خلدون عصفور
        // برنامج لحساب قيمة التيار
        static void Main(string[] args)
        {
            double V;
            double I;
            double R;
            Console.WriteLine("please enter voltage");
            V= double.Parse(Console.ReadLine());

            Console.WriteLine("please enter resistor");
           R= double.Parse(Console.ReadLine());

           I = V / R;

           Console.WriteLine("The current for V = " +V+ " and R = " +R+ " is " +I+ " ampere");
           Console.ReadKey();
        }
    }
}

الاثنين، 7 مايو 2018

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
// خلدون عصفور
// برنامج لحساب العمر بعد 20 سنة
namespace ConsoleApplication30
{
    class Program
    {
        static void Main(string[] args)
        {
            int Age;
            string yourName;
            int c;
            Console.WriteLine("unter your name?");
            yourName = Console.ReadLine();

            Console.WriteLine("unter your age?");

            Age = int.Parse(Console.ReadLine());
            c = Age + 20;

            Console.WriteLine(" hello, your Name is " + yourName + " and your age is " + Age + " you will be " + c + " after 20 years ");
            Console.ReadKey();
        }
    }
}

الخميس، 3 مايو 2018

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication68
{
    class Program
    {
        static void Main(string[] args) //عمل الطالب خلدون عصفور
        {
            int a; // حساب الباقي 
            int b;
            int c;
          
            
            Console.WriteLine(" enter the first num");
           a = int.Parse(Console.ReadLine());
            Console.WriteLine(" enterthe second num");
            b = int.Parse(Console.ReadLine());
            c = a%b;
            Console.WriteLine( "The rest is" + c);
            Console.ReadKey();
        }
    }
}




using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication68
{
    class Program
    {
        static void Main(string[] args) // عمل الطالب خلدون عصفور
        {
            string name;// برمجة حساب مساحة ومحيط المستطيل
            int Width;
            int Length;
            int a;
            int d;

            Console.WriteLine(" Please enter your name?");
           name = Console.ReadLine();
           Console.WriteLine(" For Rectangle please enter Width");
           Width = int.Parse(Console.ReadLine());
           Console.WriteLine(" For the same Rectangle please enter Length");
           Length = int.Parse(Console.ReadLine());
           a = Width * Length;
           d = Width * 2 + Length * 2;

           Console.WriteLine(" Mr " + name + " The area of the rectangle with length of " + Length + " and width of " + Width + " is " + a);
            Console.WriteLine(" Mr " + name + " The Circumference of the rectanagle is " + d);

            Console.ReadKey();

        }
    }
}





using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication68
{
    class Program
    {
        static void Main(string[] args) // عمل الطالب خلدون عصفور
        {
            string name;// برمجة حساب مساحة ومحيط 
            int r;
            double a;
            double d;
            double b = 3.14;
            Console.WriteLine(" Please enter your name?");
           name = Console.ReadLine();
           Console.WriteLine(" Please enter radius of the circle");
           r= int.Parse(Console.ReadLine());

           a = (r*r)* b ;
           d =  r*2*b;

          Console.WriteLine(" Mr "+ name +" The area of the circle is "+ a + " and the Circumference is " + d);
            Console.ReadKey();

        }
    }
}

الثلاثاء، 1 مايو 2018

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//program
 //خلدون عصفور
//برنامج لحساب المساحة
namespace ConsoleApplication68
{
    class Program
    {
        static void Main(string[] args)
        {
            int area;
            int L;
            int W;
          
            
            Console.WriteLine("plese enter length");
           L = int.Parse(Console.ReadLine());
            Console.WriteLine("plese enter width");
            W = int.Parse(Console.ReadLine());
            area = L * W;
            Console.WriteLine("the area is " +  area);
            Console.ReadKey();
        }
    }
}