|
كليات المجموعة الرياضية (الهندسة - الحاسبات والمعلومات - التجارة & التجارة إنجلش - الفنون التطبيقية والجميلة) |
|
أدوات الموضوع | انواع عرض الموضوع |
#1
|
|||
|
|||
![]()
السلام عليكم ورحمة الله وبركاته
انا لقيت ان المنتدى انشغل بأسئلة خاصة بالتنسيق والاختيار وحاجات زى كدا بنرحب بها طبعا ولكنها اثرت على مستوى المنتدى بالسلب لهذا قررت اعمل الموضوع دا واتمنى ان يكون فى مشاركة وخاصة انه عملى جدا وهو عن البرمجة اى حد عنده مسأله برمجة بلغات oop / c++/c / java وانا اخترت ال 4 لغات دول لانهم المشتركين فى غالبية الكليات يكتبها ونشترك كلنا فى حلها ونناقش الحلول وبكده هننشط المنتدى مرة اخرى مش شرط انك تكون مش عارف المسألة عشان تكتبها ممكن يكون غيرك مش عارفها واعتقد بكدا هنقدر ننمى مهاراتنا ونستفيد من المنتدى احسن من كدا انا هبدأ بمسألة كنت اخدها فى الكلية السنة اللى فاتت كانت ضمن مجموعة مسائل فى مشروع للمادة . -------------------------------------------------------------------------- oop problem #1 Create a SavingsAccount class. Use a static data member annual InterestRate to store the annual interest rate for each of the savers.
Each member of the class contains a private data member savingsBalance indicating the amount the saver currently has on deposit. Provide member function calculateMonthl yInterest that calculates the monthly interest by multiplying the balance by annual InterestRate divided by 12; this interest should be added to savingsBalance. Provide a static member function modifyInterestRate that sets the static annualInterestRate to a new value. Write a driver program to test class SavingsAccount. Instantiate two different objects of class SavingsAccount, saver1 and saver2, with balances of$2000.00 and $3000.00,respectively. Set the annual InterestRate to 3 percent. Then calculate the monthly interest and print the new balances for each of the savers. Then set the annualInterestRate to 4 percent and calculate the next month’s interest and print the new balances for each of the savers معكم المسألة نفكر فيها وبعد فترة من المناقشة والتفكير هنزل حلها |
العلامات المرجعية |
|
|