الخميس، 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();

        }
    }
}

ليست هناك تعليقات:

إرسال تعليق