موقع طلبة جامعة البحرين

يمكنك تصفح الموقع كزائر ولكن ندعوك لتسجيل عضوية خاصة بك لتحصل على كافة الصلاحيات مثل تنزيل ملفات المكتبة وقراءة تعليقات هيئة التدريس وغيرها. يمكنك الحصول على عضوية مجانية بالضغط على زر تسجيل. إذا قمت بالتسجيل مسبقا فيمكنك الضغط على زر دخول.

تسجيل دخول
  • قسم المكتبة الجامعية مغلق مؤقتا بعد الاستهداف التي تعرضت له بعض خدمات أمازون في البحرين، جاري استرجاع الملفات ونقلها إلى سيرفرات جديدة وسيتم بعدها اعادة افتتاح المكتبة

ITCS112 - ITCS104 - ITCS102 للفصل الصيفي 2014 - 2015

PHP:
class clocktype{
private:
int hr;
int min;
int sec;

public:
boll equaltime( clocktype other);
};

bool clocktype :: equaltime( clocktype other){
return( hr==other.hr && min other.min && sec == other.sec)
}

سؤالي شلون حطينا other.hr
في الكلاس ما يصير نستخدم دي الطريقة أو لان احنا نشتغل في الفنكشن فعادي نكتبها جدي أقصد النقطة

و وش هي الhr الي بروحها " الي نبي نساويها بالي في الother
??

أرجو تجاوبوني ضروري
 
لسبب بسيط
انه الـــ hr من البرايفت ومانقدر ندخل عليها الى من خلال الفنكشن مالت الببلك Other
من جذي خلينا . يعني هالفنكشن تعطيني الصلاحيه اني اسوي مقارنه
 
سلام عليكم
شخبار شعب
بس ممكن مساعده عندي سؤال مو عارف الحل ماله بضبط



Consider the following structure Date

struct Date{

int month;

int day;

int year;

};

Use the class EmployeeInfo that uses the Date structure in solving the problem below

class EmployeeInfo

{

private:

int ID;

string firstname;

string lastname;

double salary;

Date hiredate;

public:

void setInfo(int, string, string, double, date);

int getID() const;

string getFname() const;

string getLname() const;

double getSalary() const;

Date getDate();

EmployeeInfo ();

EmployeeInfo (int,string,string,double,Date);

};



1. Write the code for each member functions.

2. Write a program that defines array of EmployeeInfo of size 15. The program should ask the user to enter the data of those employees and store them in the array. Then the program displays the information of employee that has largest salary.
​

ضروري معتاز مساعده
 
صباح الخير
عندي اسايمنت ما اعرف اسويه يا ريت تساعدوني
اتمنى ما كلفت عليكم



Part 1

  1. Some of the characteristics of a book are the title, author(s), publisher, ISBN, price, and year of publication. Design a class bookType that defines the book as an ADT.
i. Each object of the class bookType can hold the following information about a book: title, up to four authors, publisher, ISBN, price, and number of copies in stock. To keep track of the number of authors, add another member variable.
ii. Include the member functions to perform the various operations on objects of type bookType. For example, the usual operations that can be preformed on the title are to show the title, set the title, and check whether the title is the same as the actual title of the book. Similarly, the typical operations that can be preformed on the number of copies in stock are to show the number of copies in stock, set the number of copies in stock, update the number of copies in stock, and return the number of copies in stock. Add similar operations for the publisher, ISBN, book price, and authors. Add the appropriate constructors and destructor (if one is needed).

  1. Write the definitions of the member functions of the class bookType.

  1. Write a program that uses the class bookType and tests various operations on the objects of the class bookType. Declare an array of 100 components of the type bookType. Some of the operations that you should perform are to search for a book by title, search by ISBN, and update the number of copies of a book.

Part 2 –
In this exercise, you will design a class memberType.

  1. Each object of memberType can hold the name of a person, member ID, number of books bought, and amount spent.
  2. Include the member functions to perform various operations on the objects of memberType – for example, modify, set, and show a person's name. Similarly, update, modify, and show the number of books bought and the amount spent.
  3. Add appropriate constructors.
  4. Write the definitions of the member functions of memberType.
  5. Write a program to test various operations of your class memberType.

Part 3 –
Using the classes designed in Parts 1 and 2, write a program to simulate a bookstore. The bookstore has two types of customers: those who are members of the bookstore and those who buy books from the bookstore only occasionally. Each member has to pay a $ 10 yearly membership fee and receives a 5% discount on each book purchased.

For each member, the bookstore keeps track of the number of books purchased and the total amount spent. For every eleventh book that a member buys, the bookstore takes the average of the total amount of the last 10 books purchased, applies this amount as a discount, and then resets the total amount spent to 0.

Write a program that can process up to 1000 book titles and 500 members. Your program should contain a menu that gives the user different choices to effectively run the program; in other words, your program should be user-driven.

 
السسلام عليكم ..

ماعليكم امر امبي برنامج سي بلاس انزله لي..

الا يقدر يحطه لي..


وشكراا جزيلااا..
​
 
في وين بكون الامتحان ؟؟؟
 
السلام عليكم ..
سؤال امتحان المنتصف متى اي يووم وفي اي ساعه وفي وين .. وشنو الي داخل معانا ..؟ لوين يعني ..؟
 
السلام عليكم ..
سؤال امتحان المنتصف متى اي يووم وفي اي ساعه وفي وين .. وشنو الي داخل معانا ..؟ لوين يعني ..؟

الامتحان يوم الاثنين 22 نوفمبر 2010
الساعة 15:00 الي 17:00
اعتقد في قاعة 18
و جبتر 10 و 11 و 12 داخل ويانا:smile:
 
سلام عليكم
شخبار شعب
بس ممكن مساعده عندي سؤال مو عارف الحل ماله بضبط



Consider the following structure Date

struct Date{

int month;

int day;

int year;

};

Use the class EmployeeInfo that uses the Date structure in solving the problem below

class EmployeeInfo

{

private:

int ID;

string firstname;

string lastname;

double salary;

Date hiredate;

public:

void setInfo(int, string, string, double, date);

int getID() const;

string getFname() const;

string getLname() const;

double getSalary() const;

Date getDate();

EmployeeInfo ();

EmployeeInfo (int,string,string,double,Date);

};



1. Write the code for each member functions.

2. Write a program that defines array of EmployeeInfo of size 15. The program should ask the user to enter the data of those employees and store them in the array. Then the program displays the information of employee that has largest salary.
​

ضروري معتاز مساعده

في رقم واحد مجرد كتابة الكود لكل فنكشن

في رقم 2 عليك أول شي إن بتقرأ المعلومات و بتكتبهم للأوبجكت بإستخدام setInfo و لأن بكون لـ 15 عامل بتسوي إلي قلته في فور لوب
بعدين عشان تطلع أعلى salary بعد بتستخدم فور لوب مع الفنكشن getsalary في نهاية هذي الفور لوب بكون عندك العامل إلي عنده أعلى salary
لأن ما في فنكشن للـ print راح تستعمل كل الفانكشن إلي فيهم get و تطبع المعلومات لهذا العامل

--------
بالنسبة لـ اسير الجمري
إكتب شنو إلي مو فاهمة بالظبط
 
السلام شخباركم عندي اسايمن في ال class بغيت مساعدتكم فيه لاني كنت مريضه وما حضرت المحاضرات ده الدرس بليييز الا عنده الحل او يقدر يساعدني في حله لا يبخل عليي وانه الا عرفت اسوي من نوت البنات هذاا وشكراا

Chap12 lab3​


1. Write a definition of a class named SudentType, which includes methods and data members as follows:​



The data members are:​



1. studentId with type integer​



2. student fname with the type string​



3. Student lname with the type string​



4. Array of marks of the max-size equal 36 with the type double (marks[36]),​



5. The number of taken courses of the type integer (length).​







The studentType class contains the following members functions:​



1) default constructor that initialize all members to zeros and spaces.​



2) constructor with the parameters where the parameters are student id and the names of the student.​



3) setInfo which set the object with student id, fname and lname .​



4) insertNew_marks which adds new mark at the end of the list marks and increase length by 1.​



5) printStudent which will print the student personal information in one line, followed by all marks that he/she has been taken, ended with Average.​



6) Destructor that output the message: "Object has been deleted"​







2. write a function named "InsetNewStudent" that insert a new student at the list of type studentType​



Note this function is not a member function of the class.​







3. Write a main function to test your class.​







1) Write one statement to define an array name StudentList with size 10 of objects of the type the class StudentType.​



2) Read data (id, fname and lname) of 3 students into array StudentList by calling function​



3) Insert 2 marks for each student in the array.​



4) Print out all data of all students in StudentList​









#include <iostream>
#include <string>
using namespace std;
class SudentType{
private:
int studentId;
string fname;
string lname ;
double marks[36];
int length;
public:
SudentType(int=0,string ='',string='',double=0.0,int=0);
SudentType(int x, string y, string z);
void setInfo(int,string,string);
void getInfo(int,string,string);
void insertNew_marks(marks l[],length);
void printStudent();
~SudentType();
};
void InsetNewStuden(marks l[],length);
{
for(int i=0; i<length,i++)​



ومسامحه اذا كلفت عليكم...


ممكن احد يحط لنا الجواب
و منكم نستفيد!!
 
السلام
شخباركم
عيدكم امبارك مقدماا
بلييز اللي يعرف الحل مال الاسايمنت اللي خليته بليييييز يحطه لاني حاولت فيه وااجد وما عرفت
وشكرا
 
آسفة على عدم المتابعة بس كان عندي شوي ظروف ...

و بالنسبة للي راسلوني و قالو انهم مو فاهمين شي من المقرر ... بحاول اجمع الي شرحته في السكشن و بحطه في نوتة وحدة

بس بدون الأسئلة

------------------

و بالنسبة للأسايمنت ما يصير تنحط الحل بارز ... حاولو فيه و اذا فيه اخطاء ممكن نصححها :rolleyes2:
 
السلام عليكم
بالنسبة لسكاشن الي ادرسهم دكتورة امل عطنتا ورقة عن data abstraction , static members of aclass
يوم تشرحها انا ما حضرت المحاضرة احد يقدر يشرح لي
حتى لي مب مع سكشن امل بس فاهم وش سالفة الموضوع اذا يسمح يعني يشرح لي وش السالفة
انا قريت الورقة بس ما فهمت عدل واخاف في اشياء قالتها بس ما ادري عندها
فالي فاهم ارجوه ما يبخل
في الانتظار
 

Part 1 –

A. Some of the characteristics of a book are the title, author(s), publisher, ISBN, price, and year of publication. Design a class bookType that defines the book as an ADT.
i. Each object of the class bookType can hold the following information about a book: title, up to four authors, publisher, ISBN, price, and number of copies in stock. To keep track of the number of authors, add another member variable.
ii. Include the member functions to perform the various operations on objects of type bookType. For example, the usual operations that can be preformed on the title are to show the title, set the title, and check whether the title is the same as the actual title of the book. Similarly, the typical operations that can be preformed on the number of copies in stock are to show the number of copies in stock, set the number of copies in stock, update the number of copies in stock, and return the number of copies in stock. Add similar operations for the publisher, ISBN, book price, and authors. Add the appropriate constructors and destructor (if one is needed).

B. Write the definitions of the member functions of the class bookType.

C. Write a program that uses the class bookType and tests various operations on the objects of the class bookType. Declare an array of 100 components of the type bookType. Some of the operations that you should perform are to search for a book by title, search by ISBN, and update the number of copies of a book.

ممكن احد يشرح هلاسايمنت عشان احله ^_^
وشكرن =)
​
 
^^^^^

ههههه اني للحين ما فتحته قلت عقب الامتحان بفتحة لان مفتوح ل 24 والله يستر
 
مو فاهم شي من المقرر شلون احاول فيه ما ادري

بليز ساعدوني اخر شي باجر التسليم
 
احد يقدر يرح لي الجبتر الأول
 
عودة
أعلى أسفل