يا اخوانالمشاركة الأصلية كتبت بواسطة strong.boy
احنا هنا ... نعمل برامج .. نبرمج .. مش نستخدم برامج !!
المهم انا حأخدمك ...
انتظرني ساعة بس .... اوكيه
يا اخوانالمشاركة الأصلية كتبت بواسطة strong.boy
احنا هنا ... نعمل برامج .. نبرمج .. مش نستخدم برامج !!
المهم انا حأخدمك ...
انتظرني ساعة بس .... اوكيه
http://www.crackfound.com/engine.cgi
خذ هذا الموقع .. وابحث عن اي برنامج تريده ..
لو ما بينفع ...
اذهب الى موقع المشاغب للبرامج .. هناك ان شاء الله يفتوك في ما تريد ,,,
واسف على التأخير ,,
QUESTION#1
Consider the following queue class, where the elements of the queue are student registration forms (form_type) that are waiting to be entered in a computer terminal. The form consists of:
Student name
Student id
An array of course names to be registered for this student
Number of credit hours.class queue {public:
queue (); // default constructor
~queue (); // default destructor
bool QueueIsEmpty (); // is queue empty?
bool QueueIsFull (); // is queue full?
void EnQueue (el_t ); // enqueue item
void DeQueue (el_t&); // dequeue item
void Retrieve(el_t & ); // retrieve front item
int length() // return the number of elementsprotected:
void QueueError(char*); // error handler
int front; // front index
int rear; // rear index
int count; // number of elements
int size // size of queue
form_type *el; // container for elements
Create a subclass first_semester_2004 of this queue class.
Add the following methods to this class.
Add a registration form : read the form information in a separate function then perform the addition.
Delete a registration form.
Given a special student id, delete his registration form.
Print all registration forms. (use overloading of the operator <<)
QUESTION#2
You have to develop a number of classes using inheritance and composition.
Create the following classes and Unit Test each.
Your unit test must exercise all methods in each class.
Create a class called person.
Data members: Name
Address
Telephone.
Behaviors (member functions): Edit from the console,
Show to the screen
Create a class called Medical_Report
Data members: File_Number
Room
Treatment_cost
Days_Number
Day_cost
Discount(%).
Behaviors (member functions): Edit from the console,
Show to the screen, Calculate Treatment_cost, SetDaily_cost, ,Set Discount.
Write main function that allows for the creation of a person and Medical_Report. Editing and showing the data of the class, then exercising all other behavior.
Use the classes developed in part 1 to develop the following 2 classes:
· Create a class called Inpatient
Class Inpatient // inherits class person
{
public:
//you define this based upon the required behavior
// in main . Hint use the methods of Medical_Report and person.
private:
Medical_Report Report;
};
Write Main() that will do the following :
Create an Inpatient
Edit from the console
Show to the screen
Set Daily_cost to ($100)
Set Discount to (20%)
Calculate Treatment_Cost , using Daily_Cost and Discount.
Show to the screen
Create a class called DoctorData members: same as in person + a salary + specialty.
Behaviors: override the necessary functions to comply with the new data.
Sample main:
Doctor Doc;
Doc.edit();
Doc.show();
تكفون ساعدوني
روبي !!!! يبغالي اسبوووع ... في هالبرنامج .. شكله طويل
اوكيه اوكيه ... احاول افضى .. واعمله ^^
اوكيه ..
بس اعطيني مهلة ..
متى اخر موعد للتسليم ؟
ههههههههههههههههههه
جافا تكفى ساعدني واعطيك اللي تبيه
التسليم يكون يوم الاحد
ولو ما تقدر براحتك بس الله يوفقك
اررررررررحموني وتعالو بدري شوي ..المشاركة الأصلية كتبت بواسطة رووبيي
اوكيه اوكيه .. احاول بقدر المستطاع ..
الصبر جميل
السلام عليكم ورحمة الله وبركاته
الى الاخوه النوابغ في البرمجه بلغة فيجوال بيسك ارجو منكم مساعدتي حيث ان الاستاذ في الكلية طلب مننا ان ننشئ برنامج للذكاء الصناعي وتتلخص فكرة البرنامج بانشاء مربع مكون من 16 خليه نضع في كل خليه حرف من AالىO بحيث سيبقى لدينا خليه خاليه وتكون الحروف مبعثرة ويجب علينا ان نرتب الحروف بحيث يتم التخلص من الحروف حرفا حرفا بداية من ال O ثم ال N ثم M وحتى يتبقى لدينا حرف A وطريقة التخلص من الحروف هي ان ناتي بالحرف O على يمين الحرف N فيختفي الحرف O وبذلك يصبح عندنا مربعين خاليين ثم ناتي بالحرف N على يمين الحرفM فيختفي الحرف N وهكذا الى ان يتبقى لدينا الحرف A وحيدا في اللوحه يعني نعتمد على نظرية التخلص من الحرف الاخير
A>B>C>D>E>F>G>H>I>J>K>L>M>N>O
نحن مازلنا مبتدئين ويطلبو منا هذا البرنامج المعقد والله يعيننا
ارجو ممن لديه التفرغ ومستعد للمساعده ان يسارع في نجدتي انا وفريق الطلبه الفاشلين معي والله يجزيه الخير
بالانتظار على احر من الجمر
وجزاكم الله كل الخير
ملاحظه .. يجب ان نسلمه يوم السبت يعني لو مافيها ثقالة دم ابيه يوم الجمعه
كفو جافا
تسلم والله
الله يقدرني على مساعدتك يارب
اقول ....المشاركة الأصلية كتبت بواسطة رووبيي
السوال الاول .. فيله غلط .. بس باحله باللي فهمته ..
ان شاء الله ... عصر او في مغرب يوم السبت (اليوم^^).. تلاقينه ,,,
بس المعذرة .. السوال الاول .. كأن فيه غلط .... (باحله حتى لو كان غلط !! اوكيه .. والمعذرة ><)
المشاركة الأصلية كتبت بواسطة alhilaly
شباب الفيجوال بيسك .....
فينكم ؟؟؟
تراني ما اعرف الفيجوال بيسك .. ولا ابي اعرفها ...
يا مبرمجي الفيجواااااااااال !!!
لا احد ؟؟
لسلام عليكم يا اخوة انا عندي هذا البرنامج أبي حله أنا تقريبا سويته ماعدا الجزء المتعلق بالزكاة ما عرفت كيف افتح حساب موحد للزكاة
Implement a system for a bank. Design it so it can be used by the bank’s staff. It should enable the following:
- Opening a new account for a customer
- Closing an account
- Displaying all accounts
An Account
The balance should be checked first to see if the amount has reached the Zakat amount (النصاب) 4000 S.R. it then debits the account with 2.5 % and deposits it in the Zakat account (i.e. there is 1 Zakat account in the Bank).
- Contains the name of the customer
- Contains the account balance.
- Enables withdrawal from the account
- Enables depositing to the account
- Enables Zakat calculation and debits the account with the Zakat amount:
هذا السؤال
حلي هوكود:#include <iostream.h> #include <conio.h> #include <stdlib.h> class Customer { private: char name[20]; char address[30]; char city[20]; char pcode[6]; double acc_bal; double zak; public: Customer:: Customer() { // constructor acc_bal = 0.00; } void getdata() { cout << "\nEnter your name: "; cin >> name; cout << "\nEnter your address: "; cin >> address; cout << "\nEnter your city: "; cin >> city; cout << "\nEnter your postal code: "; cin >> pcode; cout << "\nEnter current account balance: "; cin >> acc_bal; } void deposit() { float dep; cout << "\nEnter amount to be deposited: "; cin >> dep; acc_bal += dep; } void withdraw() { float wdraw; cout << "\nEnter amount to be withdrawn: "; cin >> wdraw; acc_bal -= wdraw; } void zakat() { zak= acc_bal*.25; } void showdata() { cout << "Name: " << name; cout << "\nAddress: " << address; cout << "\nCity: " << city; cout << "\nPostal Code: " << pcode; cout << "\nAccount Balance: $" << acc_bal << endl; cout<<"Zakat is: "<<zak<<endl; } }; int main() { char choice; bool flag =0; int count = 0; int recnum; Customer cust[10]; while (flag == false) { cout << "\t\t\n\n" << "Main Menu"; cout << "\t\n\n" << "Select by letter:"; cout << "\t\n" << "a - Add a customer."; cout << "\t\n" << "d - Deposit money."; cout << "\t\n" << "w - Withdraw money."; cout << "\t\n" << "s - Show Account Information."; cout << "\t\n" << "z_zakat."; cout << "\t\n" << "q - Quit Application.\n\n"; cout << "\t" << "Choice: "; cin>>choice ; switch(choice) { case 'a': system("cls"); if (count > 10) { cout << "Can't add anymore records. Press any key to return to main menu."; getche(); break; } count += 1; cust[count].getdata(); system("cls"); break; case 'd': system("cls"); cout << "\nEnter customer number: "; cin >> recnum; cust[recnum].deposit(); system("cls"); break; case 'w': system("cls"); cout << "\nEnter customer number: "; cin >> recnum; cust[recnum].withdraw(); system("cls"); break; case 'z': system("cls"); cout << "\nEnter customer number: "; cin >> recnum; cust[recnum].zakat(); system("cls"); break; case 's': system("cls"); cout << "\nEnter customer number: "; cin >> recnum; cust[recnum].showdata(); getche(); system("cls"); break; case 'q': flag = 1; break; default: cout << "\nInvalid selection. Press a key to return to main menu."; getche(); } if (flag == true) { break; } } return 0; }
ارجو وضع اخر موعد للتسليم ..
لكي نكون على بينة ...
انا يلزمني .. يومين ثلاث حتى افضى ...
أسفه نسيت اكتب متى التسليم يوم الأربعاء اذا ممكن
يوم الاربعااااء ...المشاركة الأصلية كتبت بواسطة al7elwah85
اليوم ايش ؟؟ سبت هاه ....
مممممممممم ... اشوف ... ان شاء الله افضى بكرة او بعده .... يعني بالكثير يوم الثلاثاء .. يكون جاهز ,,,,
روووووووووووبي
كاهو البرنامجين .... ذبحووووني ... هلكوووووني ..
نسيت الـClasses ونسيت دروس كثيرة في السي++ ..... لذا ... تأخرت عشان هذا السبب
اما السبب الثاني ... فهو البرنامج الاول .. حاسس انه .... سوال عبيط !!! ....والله مادري
لكن هذا الحل ... 70% منه .. اعتقد صحيح .. على حسب ما فهمته :
كود:#include<iostream.h> class form_type { public : int stu_id ; char stu_name[20] ; char courses[5][5] ; int hours; form_type() { stu_id=-1; } void add() { cout << "std_id :"; cin >> stu_id; cout<<"std_name :"; cin>>stu_name; for(int i=0;i<5;i++) { cout << "cours "<<i<<":"; cin>>courses[i]; } cout<< "hours : "; cin>>hours; } //====================== void delete_() { stu_id=-1; } }; class queue { public: //queue (); // default constructor //~queue (); // default destructor //int QueueIsEmpty (); // is queue empty? //int length(); // return the number of elementsprotected: *************** //int QueueIsFull (); // is queue full? //void EnQueue (el_t ); // enqueue item //void DeQueue (el_t ); // dequeue item //void Retrieve(el_t ); // retrieve front item void QueueError(char*); // error handler ******************************* int front; // front index int rear; // rear index int count; // number of elements int size; // size of queue form_type *el; // container for elements queue () { size=50; count=0; rear=0; front=0; el=new form_type[size]; } //////////////////////////////////////////// ~queue () { } ///////////////////////////////////////////// int QueueIsEmpty () { if (count==0) return 1 ; return 0 ; } //////////////////////////////////////////////// int QueueIsFull () { if(count==size ) return 1 ; return 0 ; } //////////////////////////////////////////////// int length () { return count ; } //////////////////////////////////////////////// void EnQueue (form_type el_t ) { el[front]=el_t; if(front==size) front =0; else front ++; count++ ; } ///////////////////////////////////////////////// void DeQueue ( ) { if(rear == size) rear=0 ; else rear++; count--; } ////////////////////////////////////////////////// form_type Retrieve() { return el[rear]; } ////////////////////////////////////////////////// void Print () { int x=rear; int y= front ; while (y!=x) { cout<<"stu_id :"<<el[x].stu_id<<endl; cout<<"stu_name :"<<el[x].stu_name<<endl; cout <<"houres :"<< el[x].hours<<endl; for(int i=0;i<5;i++) { cout<<"course no "<<i<<" :"<<el[x].courses[i]; cout<<endl; } if(x==size) x=0; else x++; cout<<endl<<"---------------------------"<<endl; } } }; //####################################################################### void main () { int x; form_type S; queue Q ; while (1) { cout<<"---------------------------------------"<<endl; cout<<"Enter 1 to add "<<endl; cout<<"Enter 2 to delete "<<endl; cout<<"Enter 3 to print all"<<endl; cout<<"Enter 0 to Exit"<<endl; cout<<"---------------------------------------"<<endl; cout<<"Enter The no:" ; cin>>x; if(x==0) break; if(x==1) { if(Q.QueueIsFull ()==1) cout<<endl<<"Full"; else{ S.add(); Q.EnQueue (S); cout<<"The Addition is Complete "; } } else if (x==2) { if(Q.QueueIsEmpty()==1) cout<<"Empty"<<endl; else { Q.DeQueue(); cout<<"The deletion is Complete "<<endl; } } else if(x==3) { if(Q.QueueIsEmpty()==1) cout<<endl<<"Is Empty .... no thing to show"<<endl; Q.Print(); } } }
البرنامج الثاني ... يوجد نقطة بسيطة لم افهمها .. في السوال ... لكن ... البرنامج شغال ^^
كود:#include<iostream.h> class Person { public : char name[20] ; char address[20] ; int telephone; virtual void Edit() { cout << "name:"; cin >> name ; cout<< "address:"; cin >>address; cout<< "telephone:"; cin >>telephone; } virtual void Show() { cout << "name:"<< name<<endl; cout<< "address:"<<address<<endl; cout<< "telephone:"<<telephone<<endl; } }; class Medical_Report { int file_no; int room; float treatment_cost; int days_no; int day_cost; float dis; public : void Edit() { cout<<"file_no:"; cin>>file_no; cout<<"room:"; cin>>room; //cout<<"treatment_cost:"; //cin>>treatment_cost; cout<<"days_no:"; cin>>days_no; cout<<"day_cost:"; cin>>day_cost; cout<<"dis:"; cin>>dis; } void Show() { cout<<"file_no:"<<file_no<<endl; cout<<"room:"<<room<<endl; cout<<"treatment_cost:"<<treatment_cost<<endl; cout<<"days_no:"<<days_no<<endl; cout<<"day_cost:"<<day_cost<<endl; cout<<"dis:"<<dis<<endl; } int Get_Treatment_Cost() { treatment_cost = day_cost*days_no; treatment_cost =treatment_cost -(treatment_cost *(dis/100)); } }; class Inpatient : public Person { public: Medical_Report R; }; class Doctor:public Person { char speci[20]; int sal; public : void Edit() { Person::Edit(); cout<<"sal :"; cin>>sal; cout<<"speci:"; cin>>speci; } void Show() { Person::Show(); cout<<"sal :"<<sal<<endl; cout<<"speci:"<<speci<<endl ; } }; void main() { Person P ; Medical_Report M; P.Edit(); P.Show(); M.Edit(); M.Get_Treatment_Cost (); M.Show(); ///////////////////////////// Inpatient I; I.Edit(); I.Show(); I.R.Edit(); I.R.Get_Treatment_Cost (); I.R.Show(); //////////////////////////// Doctor D; D.Edit() ; D.Show(); }