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

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

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

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

Write the definition of a class named BankAccount which includes data members and the prototype of the function members as described below:
The data members of the class BankAccount are: AccountNumber (long), Name (string), and Balance (float).

The class BankAccount contains the following member functions:​


  1. [*=left]Set and get functions for all the data members.
    [*=left] Withdraw which is used to withdraw a certain amount X from the Account. It should check that the balance in the account is at least equal to X (i.e. X or more) before it allows the withdrawal and reduce the Balance by X.
    [*=left]Deposit which is used to Deposit a certain amount Y into the Account. It should of course increase the Balance by Y.
    [*=left]IsAccountEmpty which returns true if the Balance is less than or equal to zero.
Otherwise it returns false.​


  1. [*=left]DisplayAccountDetails that prints (on the screen) all the information about the Account.

Write a main program to declare MyAccount as an object of type BankAccount.​


  1. [*=left]Call function Set to set MyAccount with your name and account number and 100BD in balance.
    [*=left]Deposit 500BD in MyAccount
    [*=left]Print your account details
    [*=left]Withdraw 150BD from MyAccount
    [*=left]print your account details again.

تفضلوا .. :smile2:

كود:
#include <iostream>
#include <string>
using namespace std;
class BankAccount
{
	long AccountNumber;
	string Name;
	float Balance ;
public:
	void Set (long ,string ,float);
	void get (long &,string &,float &);
	void Withdraw (float);
	void Deposit (float);
	bool IsAccountEmpty ();
	void DisplayAccountDetails ();
};
void BankAccount::Set (long a,string n,float b)
{
	AccountNumber=a;
	Name=n;
	Balance=b;
}
void BankAccount::get (long &a,string &n,float &b)
{
	a=AccountNumber;
	n=Name=n;
	b=Balance;
}
void BankAccount::Withdraw (float x)
{
	if (x<=Balance)
		Balance-=x;
}
void BankAccount::Deposit (float y)
{
	Balance+=y;
}
bool BankAccount::IsAccountEmpty ()
{
	if (Balance<=0)
		return true;
	else return false;
}
void BankAccount::DisplayAccountDetails ()
{
	cout<<"AccountNumber : "<<AccountNumber<<endl;
	cout<<"Name : "<<Name<<endl;
	cout<<"Balance : "<<Balance<<endl;
}
void main()
{
	long AccountNumber;
	string Name;
	float Balance ;
	cout<<"Enter AccountNumber : ";
	cin>>AccountNumber;
	cout<<"Enter Name : ";
	cin>>Name;
	cout<<"Enter Balance : ";
	cin>>Balance;
	BankAccount MyAccount;
	MyAccount.Set(AccountNumber,Name,Balance);
	cout<<"\n\n        <]--------------------------------------------------[>\n\n";
	MyAccount.Deposit(500);
	MyAccount.DisplayAccountDetails();
	cout<<"\n\n        <]==================================================[>\n\n";
	MyAccount.Withdraw(150);
	MyAccount.DisplayAccountDetails();
}
 
السلام عليكم
عندي اسايمنت موب عارفه احله جان زين تساعدوني فيه :)

Complete the previous exercise to include the following:
In your program, it is also important to keep information about customers. Therefore, create a struct customer to hold customer’s name, the list of movies rented by this customer (array of type movieItem with maximum size 10) and the number of rented movies by the customer.

Your program must contain the following functions:

- A function named readCustomer that takes as parameter myCustomer of type customer passed by reference. The function should prompt the user to enter myCustomer details.

- A function named printCustomer hat takes as parameter myCustomer of type customer. The function should prints myCustomer details.

- A function that takes as parameter myCustomer of type customer. The function should print the titles of all movies rented by myCustomer.


Test your program with samples of movies and customer details.
 
Write the definition of a class named BankAccount which includes data members and the prototype of the function members as described below:
The data members of the class BankAccount are: AccountNumber (long), Name (string), and Balance (float).

The class BankAccount contains the following member functions:​


  1. [*=left]Set and get functions for all the data members.
    [*=left] Withdraw which is used to withdraw a certain amount X from the Account. It should check that the balance in the account is at least equal to X (i.e. X or more) before it allows the withdrawal and reduce the Balance by X.
    [*=left]Deposit which is used to Deposit a certain amount Y into the Account. It should of course increase the Balance by Y.
    [*=left]IsAccountEmpty which returns true if the Balance is less than or equal to zero.
Otherwise it returns false.​


  1. [*=left]DisplayAccountDetails that prints (on the screen) all the information about the Account.

Write a main program to declare MyAccount as an object of type BankAccount.​


  1. [*=left]Call function Set to set MyAccount with your name and account number and 100BD in balance.
    [*=left]Deposit 500BD in MyAccount
    [*=left]Print your account details
    [*=left]Withdraw 150BD from MyAccount
    [*=left]print your account details again.

حل آخر :smile2:

كود:
[LEFT][FONT=Courier New][SIZE=2]#include <iostream>
#include <string>
using namespace std;
class BankAccount
{
private:
	long AccountNumber;
	string Name;
	float Balance;
public:
	void Set(long, string, float);
	void Get(long &, string &, float &);
	void Withdraw(float);
	void Deposit(float);
	bool IsAccountEmpty();
	void DisplayAccountDetails();
};
void BankAccount::Set(long A, string N, float B)
{
	AccountNumber=A;
	Name=N;
	Balance=B;
}
void BankAccount::Get(long &A, string &N, float &B)
{
	A=AccountNumber;
	N=Name;
	B=Balance;
}
void BankAccount::Withdraw(float X)
{
	if(Balance >= X)Balance = Balance-X;
}
void BankAccount::Deposit(float Y)
{
	Balance = Balance+Y;
}
bool BankAccount::IsAccountEmpty()
{
	if(Balance <= 0)
		return true;
	else
		return false;
}
void BankAccount::DisplayAccountDetails()
{
	cout << "Account Number: " << AccountNumber << endl;
	cout << "Name: " << Name << endl;
	cout << "Balance: " << Balance << "BD" << endl;
}
int main()
{
	BankAccount MyAccount;
	MyAccount.Set(20120000, "Your Name", 100);
	MyAccount.Deposit(500);
	cout << "Account details after Increased 500BD: " << endl;
	MyAccount.DisplayAccountDetails();
	MyAccount.Withdraw(150);
	cout << "\nAccount details after Decreased 150BD: " << endl;
	MyAccount.DisplayAccountDetails();

	system ("pause");
	return 0;
}[/SIZE][/FONT][/LEFT]
​
 
تفضلوا .. :smile2:

كود:
#include <iostream>
#include <string>
using namespace std;
class BankAccount
{
    long AccountNumber;
    string Name;
    float Balance ;
public:
    void Set (long ,string ,float);
    void get (long &,string &,float &);
    void Withdraw (float);
    void Deposit (float);
    bool IsAccountEmpty ();
    void DisplayAccountDetails ();
};
void BankAccount::Set (long a,string n,float b)
{
    AccountNumber=a;
    Name=n;
    Balance=b;
}
void BankAccount::get (long &a,string &n,float &b)
{
    a=AccountNumber;
    n=Name=n;
    b=Balance;
}
void BankAccount::Withdraw (float x)
{
    if (x<=Balance)
        Balance-=x;
}
void BankAccount::Deposit (float y)
{
    Balance+=y;
}
bool BankAccount::IsAccountEmpty ()
{
    if (Balance<=0)
        return true;
    else return false;
}
void BankAccount::DisplayAccountDetails ()
{
    cout<<"AccountNumber : "<<AccountNumber<<endl;
    cout<<"Name : "<<Name<<endl;
    cout<<"Balance : "<<Balance<<endl;
}
void main()
{
    long AccountNumber;
    string Name;
    float Balance ;
    cout<<"Enter AccountNumber : ";
    cin>>AccountNumber;
    cout<<"Enter Name : ";
    cin>>Name;
    cout<<"Enter Balance : ";
    cin>>Balance;
    BankAccount MyAccount;
    MyAccount.Set(AccountNumber,Name,Balance);
    cout<<"\n\n        <]--------------------------------------------------[>\n\n";
    MyAccount.Deposit(500);
    MyAccount.DisplayAccountDetails();
    cout<<"\n\n        <]==================================================[>\n\n";
    MyAccount.Withdraw(150);
    MyAccount.DisplayAccountDetails();
}



مشكوور ماقصرت :smile:
 


حل آخر :smile2:

كود:
[LEFT][FONT=Courier New][SIZE=2]#include <iostream>
#include <string>
using namespace std;
class BankAccount
{
private:
    long AccountNumber;
    string Name;
    float Balance;
public:
    void Set(long, string, float);
    void Get(long &, string &, float &);
    void Withdraw(float);
    void Deposit(float);
    bool IsAccountEmpty();
    void DisplayAccountDetails();
};
void BankAccount::Set(long A, string N, float B)
{
    AccountNumber=A;
    Name=N;
    Balance=B;
}
void BankAccount::Get(long &A, string &N, float &B)
{
    A=AccountNumber;
    N=Name;
    B=Balance;
}
void BankAccount::Withdraw(float X)
{
    if(Balance >= X)Balance = Balance-X;
}
void BankAccount::Deposit(float Y)
{
    Balance = Balance+Y;
}
bool BankAccount::IsAccountEmpty()
{
    if(Balance <= 0)
        return true;
    else
        return false;
}
void BankAccount::DisplayAccountDetails()
{
    cout << "Account Number: " << AccountNumber << endl;
    cout << "Name: " << Name << endl;
    cout << "Balance: " << Balance << "BD" << endl;
}
int main()
{
    BankAccount MyAccount;
    MyAccount.Set(20120000, "Your Name", 100);
    MyAccount.Deposit(500);
    cout << "Account details after Increased 500BD: " << endl;
    MyAccount.DisplayAccountDetails();
    MyAccount.Withdraw(150);
    cout << "\nAccount details after Decreased 150BD: " << endl;
    MyAccount.DisplayAccountDetails();

    system ("pause");
    return 0;
}[/SIZE][/FONT][/LEFT]
​


شكرااا من كل قلبي:rolleyes2:
 
  • Like
التفاعلات: Steam
السلام عليكم
عندي اسايمنت موب عارفه احله جان زين تساعدوني فيه :)

Complete the previous exercise to include the following:
In your program, it is also important to keep information about customers. Therefore, create a struct customer to hold customer’s name, the list of movies rented by this customer (array of type movieItem with maximum size 10) and the number of rented movies by the customer.

Your program must contain the following functions:

- A function named readCustomer that takes as parameter myCustomer of type customer passed by reference. The function should prompt the user to enter myCustomer details.

- A function named printCustomer hat takes as parameter myCustomer of type customer. The function should prints myCustomer details.

- A function that takes as parameter myCustomer of type customer. The function should print the titles of all movies rented by myCustomer.


Test your program with samples of movies and customer details.

السؤال ناقص شغلات .. :whistling:
أنا سويت الشغلات اللي فيها وتضيفونها على إجابة السؤال الأولي ..
:smile2:

كود:
struct customer
{
	string name;
	movieItem movielist[10];
	int rentmovie;
};
void readCustomer (customer &myCustomer)
{
	cout<<"Enter customer name : ";
	cin>>myCustomer.name;
	cout<<"Enter NO. of rented movei : ";
	cin>>myCustomer.rentmovie;
}
void printCustomer (customer myCustomer)
{
	cout<<"customer name : "<<myCustomer.name<<endl;
	cout<<"NO. of rented movei : "<<myCustomer.rentmovie<<endl;
	for (int i=0;i<myCustomer.rentmovie;i++)
	{/*cout<<movielist[i].------; */}
}
void printTitle (customer myCustomer)
{
	for (int i=0;i<myCustomer.rentmovie;i++)
	//cout<<myCustomer.movielist[i].moivetitle;
}
 
ممما قصرت خيييووو ع الحححل :)
 
1>c:\users\home\desktop\ass6\ass6\ass6.cpp(25) : error C2511: 'std::string carType::get(std::string &)' : overloaded member function not found in 'carType'
1> c:\users\home\desktop\ass6\ass6\ass6.cpp(5) : see declaration of 'carType'
1>c:\users\home\desktop\ass6\ass6\ass6.cpp(28) : error C2511: 'float carType::get(float &)' : overloaded member function not found in 'carType'
1> c:\users\home\desktop\ass6\ass6\ass6.cpp(5) : see declaration of 'carType'





!!! :\ شنو الخلل عندي ؟؟ مو رااضي يقبل القيم ؟؟؟ بلييز ممكن مساعدة قبل الساعة 10 ...
 
1>c:\users\home\desktop\ass6\ass6\ass6.cpp(25) : error C2511: 'std::string carType::get(std::string &)' : overloaded member function not found in 'carType'
1> c:\users\home\desktop\ass6\ass6\ass6.cpp(5) : see declaration of 'carType'
1>c:\users\home\desktop\ass6\ass6\ass6.cpp(28) : error C2511: 'float carType::get(float &)' : overloaded member function not found in 'carType'
1> c:\users\home\desktop\ass6\ass6\ass6.cpp(5) : see declaration of 'carType'





!!! :\ شنو الخلل عندي ؟؟ مو رااضي يقبل القيم ؟؟؟ بلييز ممكن مساعدة قبل الساعة 10 ...

ممكن أشوف البرنامج عشان أعرف الخطأ .. يكون أحسن :smile2:
 
PHP:
class Employee
{
public:
void setFirstName( string );
string getFirstName(); 
void setLastName ( string );
string getLastName();
void setsalary ( int );
int getsalary ();
void PrintEmplyeeRecord();
private:
string firstName;
string lastName;
int salary;
};

Implement the above class, then do the following:​


  • [*=left]Declare UOBEmployee as an object of Employee.
    [*=left]Set UOBEmployee to ( “ Ali”, “AlJasem”, 500BD)
    [*=left]Print on screen the details of UOBEmployee.
    [*=left]Increase UOBEmployee salary by 100.
    [*=left]Declare ITEmployess as an array of 3 objects of type Employee.
    [*=left]Read the details of ITEmployee.
    [*=left]Increment all salaries of ITEmployee by 30BD
    [*=left]Print on screen the last name and salary of all employees of ITEmployee objects.

​
 
التعديل الأخير:
PHP:
class Employee
{
public:
void setFirstName( string );
string getFirstName(); 
void setLastName ( string );
string getLastName();
void setsalary ( int );
int getsalary ();
void PrintEmplyeeRecord();
private:
string firstName;
string lastName;
int salary;
};

Implement the above class, then do the following:​


  • [*=left]Declare UOBEmployee as an object of Employee.
    [*=left]Set UOBEmployee to ( “ Ali”, “AlJasem”, 500BD)
    [*=left]Print on screen the details of UOBEmployee.
    [*=left]Increase UOBEmployee salary by 100.
    [*=left]Declare ITEmployess as an array of 3 objects of type Employee.
    [*=left]Read the details of ITEmployee.
    [*=left]Increment all salaries of ITEmployee by 30BD
    [*=left]Print on screen the last name and salary of all employees of ITEmployee objects.

​

<< فضاوة :smile2:

كود:
//Noise-X
#include <iostream>
#include <string>
using namespace std;
class Employee
{
public:
	void setFirstName( string );
	string getFirstName();
	void setLastName ( string );
	string getLastName();
	void setsalary ( int );
	int getsalary ();
    void PrintEmplyeeRecord();
private:
	string firstName;
	string lastName;
	int salary;
};
void Employee::setFirstName( string first)
{
	firstName=first;
}
void Employee::setLastName( string last)
{
	lastName=last;
}
void Employee::setsalary ( int s)
{
	salary=s;
}
void Employee::PrintEmplyeeRecord()
{
	cout<<"firstName : "<<firstName<<endl;
	cout<<"lastName : "<<lastName<<endl;
	cout<<"salary : "<<salary<<endl<<endl;
}
int Employee::getsalary ()
{
	return salary;
}
string Employee::getFirstName()
{
	return firstName;
}
string Employee::getLastName()
{
	return lastName;
}
void main()
{
	string first,last;
	int salary;
	Employee UOBEmployee;
	UOBEmployee.setFirstName("Ali");
	UOBEmployee.setLastName("AlJasem");
	UOBEmployee.setsalary(500);
	UOBEmployee.PrintEmplyeeRecord();
	salary=UOBEmployee.getsalary()+100;
	UOBEmployee.setsalary(salary);
	Employee ITEmployess[3];
	for (int z=0;z<3;z++)
	{
		cout<<"Enter Employees name :";
		cin>>first>>last;
		cout<<"Enter Employees salary :";
		cin>>salary;
		ITEmployess[z].setFirstName(first);
		ITEmployess[z].setLastName(last);
		ITEmployess[z].setsalary(salary);
		cout<<endl;
	}
	for (int i=0;i<3;i++)
	{
		salary=ITEmployess[i].getsalary()+30;
		ITEmployess[i].setsalary(salary);
	}
	for (int j=0;j<3;j++)
	{
		ITEmployess[j].PrintEmplyeeRecord();
	}
}
 
<< فضاوة :smile2:

كود:
//Noise-X
#include <iostream>
#include <string>
using namespace std;
class Employee
{
public:
    void setFirstName( string );
    string getFirstName();
    void setLastName ( string );
    string getLastName();
    void setsalary ( int );
    int getsalary ();
    void PrintEmplyeeRecord();
private:
    string firstName;
    string lastName;
    int salary;
};
void Employee::setFirstName( string first)
{
    firstName=first;
}
void Employee::setLastName( string last)
{
    lastName=last;
}
void Employee::setsalary ( int s)
{
    salary=s;
}
void Employee::PrintEmplyeeRecord()
{
    cout<<"firstName : "<<firstName<<endl;
    cout<<"lastName : "<<lastName<<endl;
    cout<<"salary : "<<salary<<endl<<endl;
}
int Employee::getsalary ()
{
    return salary;
}
string Employee::getFirstName()
{
    return firstName;
}
string Employee::getLastName()
{
    return lastName;
}
void main()
{
    string first,last;
    int salary;
    Employee UOBEmployee;
    UOBEmployee.setFirstName("Ali");
    UOBEmployee.setLastName("AlJasem");
    UOBEmployee.setsalary(500);
    UOBEmployee.PrintEmplyeeRecord();
    salary=UOBEmployee.getsalary()+100;
    UOBEmployee.setsalary(salary);
    Employee ITEmployess[3];
    for (int z=0;z<3;z++)
    {
        cout<<"Enter Employees name :";
        cin>>first>>last;
        cout<<"Enter Employees salary :";
        cin>>salary;
        ITEmployess[z].setFirstName(first);
        ITEmployess[z].setLastName(last);
        ITEmployess[z].setsalary(salary);
        cout<<endl;
    }
    for (int i=0;i<3;i++)
    {
        salary=ITEmployess[i].getsalary()+30;
        ITEmployess[i].setsalary(salary);
    }
    for (int j=0;j<3;j++)
    {
        ITEmployess[j].PrintEmplyeeRecord();
    }
}


الاخ Noise-X

بالنسبة للبرنامج

المين فيها خلل

الفور لوب ماله داعي تسوي ثلاث

وفي آخر نقطة طلبوا برينت حق LastName & salary



وهذا البرنامج اللي اني سويته واشتغل تمام

PHP:
//alnarges
 
#include<iostream>
 
#include<string>
 
using namespace std;
 
class Employee{
private:
string FirstName;
string LastName;
int salary;
public:
void setFirstName(string);
string getFirstName(); 
void setLastName(string);
string getLastName();
void setsalary(int);
int getsalary();
void PrintEmployeeRecord();
}; 
 
void Employee::setFirstName(string f)
{
FirstName = f;
}
 
void Employee::setLastName(string l)
{
LastName = l;
}
 
void Employee::setsalary(int s)
{
salary = s;
}
string Employee::getFirstName()
{
return FirstName;
}
string Employee::getLastName()
{
return LastName;
}
 
int Employee::getsalary()
{
return salary;
}
 
void Employee::PrintEmployeeRecord()
{
cout<<"UOB EMPLOYEE NAME: "<<FirstName<<" "<<LastName<<endl;
cout<<"UOB EMPLOYEE SALARY: "<<salary<<endl;
}
 
int main()
{
string FirstName , LastName;
int salary;
Employee UOBEmployee;
UOBEmployee.setFirstName("Ali");
UOBEmployee.setLastName("Aljasem");
UOBEmployee.setsalary(500);
UOBEmployee.PrintEmployeeRecord();
cout<<endl;
cout<<endl;
salary=UOBEmployee.getsalary()+100;
cout <<"|| ** IT EMPLOYEE ** ||"<<endl;
cout<<endl;
UOBEmployee.setsalary(salary);
Employee ITEmployee[3];
for(int i=0; i<3 ; i++)
{
cout<<"THE IT EMPLOYEE NAME: "<<endl;
cin>>FirstName>>LastName;
cout<<"THE IT EMPLOYEE SALARY:"<<endl;
cin>>salary;
ITEmployee[i].setFirstName(FirstName);
ITEmployee[i].setLastName(LastName);
ITEmployee[i].setsalary(salary);
cout<<endl;
}
for(int i=0; i<3 ; i++)
{
salary=ITEmployee[i].getsalary()+30;
LastName=ITEmployee[i].getLastName();
ITEmployee[i].setsalary(salary);
ITEmployee[i].setLastName(LastName);
cout<<"THE LAST NAME OF ITEMPLOYEE: "<<LastName<<endl;
cout<<"THE SALARY OF ITEMPLOYEE: "<<salary<<endl;
cout<<endl;
}
system("pause");
return 0;
}


وشكرا ع المحاولة
 
الاخ Noise-X

بالنسبة للبرنامج

المين فيها خلل

الفور لوب ماله داعي تسوي ثلاث

وفي آخر نقطة طلبوا برينت حق LastName & salary



وهذا البرنامج اللي اني سويته واشتغل تمام

PHP:
//alnarges
 
#include<iostream>
 
#include<string>
 
using namespace std;
 
class Employee{
private:
string FirstName;
string LastName;
int salary;
public:
void setFirstName(string);
string getFirstName(); 
void setLastName(string);
string getLastName();
void setsalary(int);
int getsalary();
void PrintEmployeeRecord();
}; 
 
void Employee::setFirstName(string f)
{
FirstName = f;
}
 
void Employee::setLastName(string l)
{
LastName = l;
}
 
void Employee::setsalary(int s)
{
salary = s;
}
string Employee::getFirstName()
{
return FirstName;
}
string Employee::getLastName()
{
return LastName;
}
 
int Employee::getsalary()
{
return salary;
}
 
void Employee::PrintEmployeeRecord()
{
cout<<"UOB EMPLOYEE NAME: "<<FirstName<<" "<<LastName<<endl;
cout<<"UOB EMPLOYEE SALARY: "<<salary<<endl;
}
 
int main()
{
string FirstName , LastName;
int salary;
Employee UOBEmployee;
UOBEmployee.setFirstName("Ali");
UOBEmployee.setLastName("Aljasem");
UOBEmployee.setsalary(500);
UOBEmployee.PrintEmployeeRecord();
cout<<endl;
cout<<endl;
salary=UOBEmployee.getsalary()+100;
cout <<"|| ** IT EMPLOYEE ** ||"<<endl;
cout<<endl;
UOBEmployee.setsalary(salary);
Employee ITEmployee[3];
for(int i=0; i<3 ; i++)
{
cout<<"THE IT EMPLOYEE NAME: "<<endl;
cin>>FirstName>>LastName;
cout<<"THE IT EMPLOYEE SALARY:"<<endl;
cin>>salary;
ITEmployee[i].setFirstName(FirstName);
ITEmployee[i].setLastName(LastName);
ITEmployee[i].setsalary(salary);
cout<<endl;
}
for(int i=0; i<3 ; i++)
{
salary=ITEmployee[i].getsalary()+30;
LastName=ITEmployee[i].getLastName();
ITEmployee[i].setsalary(salary);
ITEmployee[i].setLastName(LastName);
cout<<"THE LAST NAME OF ITEMPLOYEE: "<<LastName<<endl;
cout<<"THE SALARY OF ITEMPLOYEE: "<<salary<<endl;
cout<<endl;
}
system("pause");
return 0;
}


وشكرا ع المحاولة

س 12 كنت شبه ميت عن الملل قلت أحل السؤال :RpS_tongue:

مسامحة على التقصير ..
 
السلام علييكم ...... لو سمحتوواا ممكن أحد يسااعدني فيهم :99::smile2::smile2:




Name
(string), price (float) and Type (string) which specifies that plate offered for “Breakfast”, “Lunch” or “Dinner”.
Write one statement to declare an array Name MenuList with maximum size 50 of Type MenuType.
A constructor with default parameters. The constructor must output the following message: "Object has been created".

​
 
السلام علييكم ...... لو سمحتوواا ممكن أحد يسااعدني فيهم :99::smile2::smile2:




Name
(string), price (float) and Type (string) which specifies that plate offered for “Breakfast”, “Lunch” or “Dinner”.
Write one statement to declare an array Name MenuList with maximum size 50 of Type MenuType.
A constructor with default parameters. The constructor must output the following message: "Object has been created".

​

ياريت تخلون السؤال كامل عشان أقدر أحله :nosweat:
 
عودة
أعلى أسفل