Q4/
Write a C++ program with three classes: BankAccount, CreditCard, and Loan, and a friend function to calculate the total debt of an individual. The BankAccount class should have a private float member balance, initialized via constructor, representing the account balance. The CreditCard class should have two private float members, creditLimit and currentDebt, initialized via constructor to represent the card’s credit limit and current outstanding debt. The Loan class should contain two private float members, principal and remainingDebt, also initialized via constructor, representing the loan’s principal amount and remaining debt. Define a friend function called calculateTotalDebt that takes objects of each class as parameters, computes the total debt by adding the CreditCard's currentDebt and Loan's remainingDebt, then subtracts the BankAccount balance to offset the debt. The function should return the net debt, which could be positive (net debt) or negative (net surplus). Each class should include a display method for its information, and the main program should demonstrate creating instances of each class, displaying their details, and printing the total debt calculated by calculateTotalDebt.
Write a C++ program with three classes: BankAccount, CreditCard, and Loan, and a friend function to calculate the total debt of an individual. The BankAccount class should have a private float member balance, initialized via constructor, representing the account balance. The CreditCard class should have two private float members, creditLimit and currentDebt, initialized via constructor to represent the card’s credit limit and current outstanding debt. The Loan class should contain two private float members, principal and remainingDebt, also initialized via constructor, representing the loan’s principal amount and remaining debt. Define a friend function called calculateTotalDebt that takes objects of each class as parameters, computes the total debt by adding the CreditCard's currentDebt and Loan's remainingDebt, then subtracts the BankAccount balance to offset the debt. The function should return the net debt, which could be positive (net debt) or negative (net surplus). Each class should include a display method for its information, and the main program should demonstrate creating instances of each class, displaying their details, and printing the total debt calculated by calculateTotalDebt.
😱1
Q5/
Write a C++ program with three classes: Employee, Salary, and Leave, and a friend function to assess an employee’s financial and leave status. The Employee class should have private members name (a string), basicSalary (a float), and daysWorked (an int), initialized via constructor, with a displayInfo method to print these details. The Salary class should have private members bonus and deductions (both float), initialized via constructor, representing the employee's monthly bonus and deductions, with a displaySalaryInfo method. The Leave class should have private int members totalLeaveDays and usedLeaveDays, representing total annual leave and days used, with a displayLeaveInfo method. Define a friend function calculateFinancialStatus that takes one object from each class to calculate: (1) remaining leave days as totalLeaveDays - usedLeaveDays, (2) monthly earnings as (basicSalary / 30) * daysWorked + bonus, and (3) net pay after deductions by subtracting deductions from monthly earnings. Each class should display its data, and calculateFinancialStatus should output the remaining leave days, total monthly earnings, and net pay.
Write a C++ program with three classes: Employee, Salary, and Leave, and a friend function to assess an employee’s financial and leave status. The Employee class should have private members name (a string), basicSalary (a float), and daysWorked (an int), initialized via constructor, with a displayInfo method to print these details. The Salary class should have private members bonus and deductions (both float), initialized via constructor, representing the employee's monthly bonus and deductions, with a displaySalaryInfo method. The Leave class should have private int members totalLeaveDays and usedLeaveDays, representing total annual leave and days used, with a displayLeaveInfo method. Define a friend function calculateFinancialStatus that takes one object from each class to calculate: (1) remaining leave days as totalLeaveDays - usedLeaveDays, (2) monthly earnings as (basicSalary / 30) * daysWorked + bonus, and (3) net pay after deductions by subtracting deductions from monthly earnings. Each class should display its data, and calculateFinancialStatus should output the remaining leave days, total monthly earnings, and net pay.
❤🔥1😐1
مشكلة ابل و ميتا
اللي صار هو مشاكل مالية بين شركة أبل وشركة ميتا (اللي هي مال فيسبوك، إنستغرام، وواتساب). على أثر هالمشاكل، توقفت الإعلانات مال إنستغرام على أجهزة أبل. بس إذا واحد يريد يعلن، يقدر يسويها عادي من أجهزة الأندرويد (مثل سامسونغ أو إنفنكس) أو حتى من اللابتوبات.
السبب الأساسي؟ أبل تاخذ 30% من أي عملية تحويل مالي تصير داخل تطبيقاتهم على نظام iOS. يعني، ميتا مو عاجبها تدفع هالنسبة الكبيرة، ولهذا الإعلانات توقفت بهالشكل.
شنو رايكم؟
اللي صار هو مشاكل مالية بين شركة أبل وشركة ميتا (اللي هي مال فيسبوك، إنستغرام، وواتساب). على أثر هالمشاكل، توقفت الإعلانات مال إنستغرام على أجهزة أبل. بس إذا واحد يريد يعلن، يقدر يسويها عادي من أجهزة الأندرويد (مثل سامسونغ أو إنفنكس) أو حتى من اللابتوبات.
السبب الأساسي؟ أبل تاخذ 30% من أي عملية تحويل مالي تصير داخل تطبيقاتهم على نظام iOS. يعني، ميتا مو عاجبها تدفع هالنسبة الكبيرة، ولهذا الإعلانات توقفت بهالشكل.
شنو رايكم؟
🆒2❤1👎1
Forwarded from 🔰 الأستاذ فاضل عباس اوغلو 🔰 (Fadhil фадхил)
مع اقتراب يوم الأحد وبدء الامتحانات النهائية للفصل الأول، أحب أن أشارككم بعض النصائح الذهبية لتساعدكم على التفوق:
1️⃣ الاستعداد الجيد: تأكدوا من مراجعة جميع المواد الدراسية بشكل جيد مع التركيز على النقاط الأساسية والملاحظات المهمة.
2️⃣ تنظيم الوقت: قسّموا وقتكم بين المراجعة، الراحة، والنوم. لا تستهينوا بقيمة النوم الجيد في تحسين التركيز والذاكرة.
3️⃣ تهيئة المكان: اختاروا مكاناً هادئاً للمذاكرة بعيداً عن المشتتات.
4️⃣ تفادي القلق: تعاملوا مع الامتحانات كفرصة لتظهروا قدراتكم، وليس كضغط نفسي. الثقة بالنفس هي مفتاح النجاح.
5️⃣ الأدعية والتوكل على الله: بعد العمل والاجتهاد، ادعوا الله بالتوفيق، فهو المعين في كل شيء.
🎯 تذكروا دائمًا: النجاح لا يعتمد فقط على المذاكرة، بل أيضًا على الطريقة التي تتعاملون بها مع وقت الامتحانات.
💡 إذا كان لديكم أي سؤال أو استفسار، لا تترددوا في التواصل معي. أتمنى لكم جميعاً كل التوفيق والنجاح. 🌟
🔰 أ. فاضل عباس أوغلو 🔰
https://t.me/ogluF
1️⃣ الاستعداد الجيد: تأكدوا من مراجعة جميع المواد الدراسية بشكل جيد مع التركيز على النقاط الأساسية والملاحظات المهمة.
2️⃣ تنظيم الوقت: قسّموا وقتكم بين المراجعة، الراحة، والنوم. لا تستهينوا بقيمة النوم الجيد في تحسين التركيز والذاكرة.
3️⃣ تهيئة المكان: اختاروا مكاناً هادئاً للمذاكرة بعيداً عن المشتتات.
4️⃣ تفادي القلق: تعاملوا مع الامتحانات كفرصة لتظهروا قدراتكم، وليس كضغط نفسي. الثقة بالنفس هي مفتاح النجاح.
5️⃣ الأدعية والتوكل على الله: بعد العمل والاجتهاد، ادعوا الله بالتوفيق، فهو المعين في كل شيء.
🎯 تذكروا دائمًا: النجاح لا يعتمد فقط على المذاكرة، بل أيضًا على الطريقة التي تتعاملون بها مع وقت الامتحانات.
💡 إذا كان لديكم أي سؤال أو استفسار، لا تترددوا في التواصل معي. أتمنى لكم جميعاً كل التوفيق والنجاح. 🌟
🔰 أ. فاضل عباس أوغلو 🔰
https://t.me/ogluF
Telegram
🔰 الأستاذ فاضل عباس اوغلو 🔰
قناة متخصصة لنشر الأمور البرمجية والهندسية وكل ما يتعلق بتكنولوجيا المعلومات والامن السيبراني
تواصلوا معي على @FadhilAbbasoglu
تواصلوا معي على @FadhilAbbasoglu
❤6🤡1
🔰 الأستاذ فاضل عباس اوغلو 🔰
مع اقتراب يوم الأحد وبدء الامتحانات النهائية للفصل الأول، أحب أن أشارككم بعض النصائح الذهبية لتساعدكم على التفوق: 1️⃣ الاستعداد الجيد: تأكدوا من مراجعة جميع المواد الدراسية بشكل جيد مع التركيز على النقاط الأساسية والملاحظات المهمة. 2️⃣ تنظيم الوقت: قسّموا…
نصائح مهمة من استاذ فاضل تفيدكم
Forwarded from 🔰 الأستاذ فاضل عباس اوغلو 🔰 (Fadhil фадхил)
اختراق منصة ابواب في العراق و السعوديه و مصر و تسريب بيانات جميع المشتركين العراقين اسماءهم و بياناهم و ايميلات في الدارك ويب مقابل ١٠ الف دولار
#منقول
https://t.me/ogluF
#منقول
https://t.me/ogluF
😁1🤬1