Jump to content
منتدى البحرين اليوم

مـنـامـي وافتخر

الاعضاء الفعالين
  • مشاركات

    213
  • انضم

  • آخر زيارة

عن مـنـامـي وافتخر

Previous Fields

  • الجنس
    ذكر
  • سنة الميلاد
    1986

مـنـامـي وافتخر الانجازات

Newbie

Newbie (1/14)

0

الشهرة

  1. لاحول و لا قوة الا بالله العلي العظيم الله يغمد روحه الجنة
  2. السلام عليكم .. آنه طالب يديد في جامعه دلموون بغيت اسألكم عن هالدكاترة .. ادارة (1) => أمير زيدان محاسبة (1) => وفاء عبد الأمير It => اسامة الربابة اقتصاد جزئي => عمر شبيب
  3. Assume that charges for delivering and handling packages for University of Success is as follow: Weight in kg Charges in BD Less or equal to 5 5 Greater than 5 and less or equal to 10 8 plus 10% of Weight Greater than 10 and less than or equal to 30 12 plus 15% of Weight Greater than 30 20 plus 25% of Weight University of Success has departments. Each department receives five packages of books. Write a C++ program that will ask the user for the Weight of Each packages in Kg for Each department. The program should then compute the total Weight, the net charge for all the packages for each department according to the table above, and the maximum Weight for Each packages. Your program should print a table showing the weight, total weight, the charge for each department, the maximum Weight as shown below. Use a two-dimensional array to store the weights. The program run should be : Enter the weights for departments # 1 : 2 3 2 1 2 Enter the weights for departments # 2 : 5 8 2 9 3 Enter the weights for departments # 3 : 7 2 4 1 2 Enter the weights for departments # 4 : 3 4 6 8 1 Pakages 1 2 3 4 5 Total charge Departments 1 2 3 2 1 2 10 9 Departments 2 5 8 2 9 3 27 16.05 Departments 3 7 2 4 1 2 16 14.4 Departments 4 3 4 6 8 1 22 15.3 Max 7 8 6 9 3
  4. ما شاء الله هذي المواتر ما شاء الله هذي المواتر
  5. هذا الأسايمنت #include<iostream> #include<ctime> #include<cstdlib> using namespace std; int rollTheDie() { srand(time(0)); int dic1=1+rand()%6; int dic2=1+rand()%6; int sum=dic1+dic2; cout<<sum<<endl; if (sum==7) return 1; else if(sum==11) return 0; else return 2; } int main(){ int num = rollTheDie(); if(num==1) cout<<"the result is 7"<<endl; else if(num==0) cout<<" the result is 11"<<endl; else if(num==2) cout<<"the result is not 7 or not 11"<<endl; return 0; }
×
×
  • Create New...