آنسه غيمه،}!
17-11-2007, 01:03 PM
بسم الله الرحمن الرحيم
السلامُ عليكم ورحمةُ الله وبركاتُه
عندي بروجكت مطلوب تسليمه بكره !
حآولت احله الآف المرآت بس بالنهاية يطلع لي إيروورز !
اتمنى احد يقدر يسآعدني ..
وبكون شآآكرة وممنونه .. .،
Develop a C++ program that will determine whether a department-store customer has exceeded the credit limit on a charge account
For each customer, the following facts are available:
A) Account number (an integer)
b) Balance at the beginning of the month.
c) Total of all items charged by this customer this month.
d) Total of credits applied to this customer's account this month.
e) Allowed credit limit.
The program should use a While structure to input each of these facts:
Calculate the new balance = (beginning balance + charges – credits) & determine whether the new balance exceeds the customers credit limit. For those customers whose credit limit is exceeded, the program should display the customer's account number, credit limit, new balance and the message "Credit limit exceeded ".
the output should be like this
Enter account number ( -1 to end ): 100
Enter beginning balance: 5394.78
Enter total charge: 1000.00
Enter total credits: 500.00
Enter credit limit: 5500.00
Account: 100
Credit limit: 5500.00
Balance: 5894.78
Credit limit Exceeded.
Enter account number ( -1 to end ): 200
Enter beginning balance: 1000.00
Enter total charge: 123.45
Enter total credits: 321.00
Enter credit limit: 1500.00
Enter account number ( -1 to end ): 300
Enter beginning balance: 500.00
Enter total charge: 274.73
Enter total credits: 100.00
Enter credit limit: 800.00
Enter account number ( -1 to end ): -1
اتمنى تكون المكتبة المستخدمه فقط <iostream>
ويآآليت يكون الحل بأسهل الطرق .. لأني مستوى اول ..
وودي افهم .. قبل مااسلمه ، وبالنسبه للحل فـ يعتمد على طريقة while loop & if stetment
يآآرب احد يقدر يساعدني بوقت قصير
ومشكورين .. ربي لاهآنكم إن شاءالله
تقديري للجميع
غيمة
السلامُ عليكم ورحمةُ الله وبركاتُه
عندي بروجكت مطلوب تسليمه بكره !
حآولت احله الآف المرآت بس بالنهاية يطلع لي إيروورز !
اتمنى احد يقدر يسآعدني ..
وبكون شآآكرة وممنونه .. .،
Develop a C++ program that will determine whether a department-store customer has exceeded the credit limit on a charge account
For each customer, the following facts are available:
A) Account number (an integer)
b) Balance at the beginning of the month.
c) Total of all items charged by this customer this month.
d) Total of credits applied to this customer's account this month.
e) Allowed credit limit.
The program should use a While structure to input each of these facts:
Calculate the new balance = (beginning balance + charges – credits) & determine whether the new balance exceeds the customers credit limit. For those customers whose credit limit is exceeded, the program should display the customer's account number, credit limit, new balance and the message "Credit limit exceeded ".
the output should be like this
Enter account number ( -1 to end ): 100
Enter beginning balance: 5394.78
Enter total charge: 1000.00
Enter total credits: 500.00
Enter credit limit: 5500.00
Account: 100
Credit limit: 5500.00
Balance: 5894.78
Credit limit Exceeded.
Enter account number ( -1 to end ): 200
Enter beginning balance: 1000.00
Enter total charge: 123.45
Enter total credits: 321.00
Enter credit limit: 1500.00
Enter account number ( -1 to end ): 300
Enter beginning balance: 500.00
Enter total charge: 274.73
Enter total credits: 100.00
Enter credit limit: 800.00
Enter account number ( -1 to end ): -1
اتمنى تكون المكتبة المستخدمه فقط <iostream>
ويآآليت يكون الحل بأسهل الطرق .. لأني مستوى اول ..
وودي افهم .. قبل مااسلمه ، وبالنسبه للحل فـ يعتمد على طريقة while loop & if stetment
يآآرب احد يقدر يساعدني بوقت قصير
ومشكورين .. ربي لاهآنكم إن شاءالله
تقديري للجميع
غيمة