الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

[مخالف - طلب حل : ]بلييييز ساعدووني في هذا السؤال

مغلق
بدأه asm.dxb في 20 مايو 2007 · 4 رد · 464 مشاهدة · في الأسئلة المجابة
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم

هلا اشحالكم اخواني

عندي تسليم اليوم لبرنامج سي ++

ومن يومين احاول احله وما قدرت احل الا ثلاث اسأله

فممكن تساعدوني فيهم

وهاي هي الاسأله المتبقية

1. Write a C++ Program using functions to print the samllest numbers and largest number from the three integers.

---

2. Write a C++ program to calculate and print the sum, difference, product and division of two the integer numbers using user-define-function .

---

write a C++ program that

a) construct a class Bank_account with attributes (data) Acc_no (account number), name (customer name) and balance (current balance). [Note: use constructor member function with two parameters to intialize the class attributes]

B) Provide set_val member function that allows the bank operators to update account information of a given customer

c) Provide Deposit member function that allows the customer to deposit money to his current balance

d) Provide withdraw member function that allows the customer to withdraw an amount of money from his current balance.[Note: This function should give the ability to withdraw from the current balance but not more than the current balance

e) Provide display memebr function to print out the account number followed by customer name and current balance

f) The main program should

i) Declares two objects for two distinct customers C1 and C2. C1 has an account number 990995 and current balance 1000 AED. C2 has an account number 559955 and current balance is 7000 AED

ii) The customer C1 tries to withdraw 2,000 AED from his current balance and the customer C2 deposits 10,000 AED to his current balance

iii) Display the current balance of both customers C1 and C2

بلييييييز حتى لو تشرحولي الطريقه وانا بحاول اتفاهم ويا البرنامج

مع احترامي

asm.dxb

#2

تأسف إدارة الفريق العربي لغلق الموضوع وذلك لمخالفته قوانين المشاركات، فقرة طلب حل الواجبات والتمارين وأعمال السنة.

قواعد طرح المشاركات

/index.php?showtopic=29343

لا إله إلا الله محمد رسول الله

busbar : يجب ان تدرك انه هناك حد ادنى للمعرفة المطلوبة قبل البدء في عمل أي شئ.

#3

السلام عليكم

السؤال بسيط جداً اعرض محاولاتك وان شاء الله تجد مساعدة, ولكن حل الواجب بالكامل يتعارض معى قواعد المشاركة ..

والسلام عليكم

لا إله إلا الله محمد رسول الله

busbar : يجب ان تدرك انه هناك حد ادنى للمعرفة المطلوبة قبل البدء في عمل أي شئ.

#4

اوكي بعرض الحل وان شاء الله تعدلولي اياه ^__^

#include <iostream>
using namespace std;

void small_large(int,int,int);

int main()
{

cout<< small_large(1,0,3);



	return 0;
}
void small_large(int a,int b,int c)
{
	if (a>b)
	{
		cout<<b<<endl;

	}
	else
		if(b>c)
	{
		cout<<c<<endl;
	}
		else 
			if (b>a)
			{
				cout<<a<<endl;
			}

}

هذا هو حل السؤال الأول

بس يطلع لي 1 error

شو سالفته ^_^

تم تعديل هذه المشاركة بواسطة احمد غريب في 20 مايو 2007 في 17:07

#5
cout<< small_large(1,0,3);

انت باستخدامك cout تقول للداله small_large() يا داله أعيدي و اطبعي لي القيمه الناتجه منك، و بما أنك استخدمت void فهذه الداله لا تعيد شيئا

تم تعديل هذه المشاركة بواسطة Yousof في 20 مايو 2007 في 16:55

هذا الموضوع مغلق.

مواضيع مشابهة

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…