النتائج 1 إلى 3 من 3

الموضوع: أول طلب لي يا ريت ما تردوني في البرمجة ولغة الفيجول بيسك سي ++

  1. #1
    التسجيل
    23-05-2005
    المشاركات
    1

    أول طلب لي يا ريت ما تردوني في البرمجة ولغة الفيجول بيسك سي ++

    السلام عليكم
    هاي أعضاء ممكن خدمة
    هذا البرنامج أبغاه بلغة الفيجول بيسك سي ++
    أبغاه بعد يومين أو 3
    لا تبخلوعلي بليييز


    Coding

    Create a program using 2-Dimentional array to store information of the company’s product line items:
     Item ID
     Item Name
     Item Price
     Item Quantity

    The program should display the following menu:
    - Enter the item info (in the array)
    - Display all items
    - Display a specific item
    - Edit an item information
    - Calculate the amount of an item (amount = Quntity * Price)


    Hint: The array should be of type String. To convert a String to float use the following built in function:
    atof(string) function used to convert ASCII String to Real(Float)
    to use the atof function you have to include the following file in your project file:
    #include <stdlib>

    ومشكوورين
    يعطيكم الف عافية
    تحياتي

  2. #2
    التسجيل
    26-05-2005
    المشاركات
    15

    مشاركة: أول طلب لي يا ريت ما تردوني في البرمجة ولغة الفيجول بيسك سي ++

    #include <iostream>
    using namespace std;
    int main()
    {
    const int a=5;
    const int b=4;
    int s[a][b]={{2,1,4,5},{1,2,4,6},{4,9,1,6},{4,6,2,7},{4,6,4,6}};
    int m,h,j=0,max=0,sum=0,k=0;
    cout<<"\ts1\ts2\ts3\ts4\tmax"<<endl;
    cout<<"--------------------------------------------"<<endl;
    for(m=0;m<a;m++)
    {
    cout<<"std#"<<m+1;
    for(h=0;h<b;h++)
    {cout<<"\t"<<s[m][h];
    if(s[m][h]>max)
    max=s[m][h];
    }
    cout<<"\t"<<max;
    cout<<endl;
    max-=max;
    }
    cout<<"--------------------------------------------"<<endl;
    cout<<"sum"<<"\t";
    for(k=0;k<b;k++)
    {
    for(int e=0;e<a;e++)
    {
    sum+=s[e][k];
    }
    cout<<sum<<"\t";
    sum-=sum;
    }
    cout<<endl;
    return 0;
    يمكن يساعدك هذا البرنامج

  3. #3
    التسجيل
    26-05-2005
    المشاركات
    15

    مشاركة: أول طلب لي يا ريت ما تردوني في البرمجة ولغة الفيجول بيسك سي ++

    هذا برنامج يمكن يساعدك
    الملفات المرفقة الملفات المرفقة

ضوابط المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك
  •