1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
LekaFEV [45]
3 years ago
14

There Are Two Programs in this Question who will attempt first i will give brainliest ans reward and big points:-

Computers and Technology
1 answer:
Korolek [52]3 years ago
4 0

Answer:

here you go ,could only do Question 2.try posting question 1 seperately maybe someone else can also try to help

Explanation:

Question 2.

#include <iostream>

using namespace std;

// class BankAccount

class BankAccount{

  

    // instance variables

    private:

        int accountID;

        int balance;

  

    public:

      

        // constructor

        BankAccount(int accountID, int balance){

            this->accountID = accountID;

            this->balance = balance;

        }

      

        // getters and setters

        void setAccoutnId(int accountID){

            this->accountID = accountID;

        }

      

        int getAccountId(){

            return accountID;

        }

      

        void setBalance(int balance){

            this->balance = balance;

        }

      

        int balanceInquiry(){

            return balance;

        }

};

class CurrentAccount : public BankAccount{

  

    public:

  

        // constructor

        CurrentAccount(int accountID, int balance):BankAccount(accountID,balance){

          

        }

      

        // function amount to withdraw

        void amountWithdrawn(int amount){

            setBalance(balanceInquiry()-amount);

        }

      

        // function to deposit amount

        void amountDeposit(int amount){

            setBalance(balanceInquiry()+amount);

        }

};

class SavingsAccount : public BankAccount{

  

    public:

      

        // constructor

        SavingsAccount(int accountID, int balance):BankAccount(accountID,balance){

          

        }

  

        // function amount to withdraw

        void amountWithdrawn(int amount){

            setBalance(balanceInquiry()-amount);

        }

      

         // function to deposit amount

        void amountDeposit(int amount){

            setBalance(balanceInquiry()+amount);

        }

      

      

};

int main()

{

    // calling function of Current Account

    cout<<"Current Account : "<<endl;

    CurrentAccount current(122,100000);

    current.amountWithdrawn(10000);

    cout<<"Your balance after withdraw : ";

    cout<<current.balanceInquiry()<<endl;

    current.amountDeposit(30000);

    cout<<"Your balance after deposit : ";

    cout<<current.balanceInquiry()<<endl;

    cout<<endl<<endl;

  

    // calling function of Savings Account

    cout<<"Savings Account : "<<endl;

    SavingsAccount saving(125,80000);

    saving.amountWithdrawn(5000);

    cout<<"Your balance after withdraw : ";

    cout<<saving.balanceInquiry()<<endl;

    saving.amountDeposit(20000);

    cout<<"Your balance after deposit : ";

    cout<<saving.balanceInquiry();

    return 0;

}

You might be interested in
How is the EF​ computed? A. ES​ + Activity time B. LF minusActivity time C. ​Min{LS of all immediate following​ activities} D. ​
densk [106]

Answer:

The answer is "Option A".

Explanation:

To signify that the properties must be mapped in a calculated column is always used Entity Framework. It is a Core Fluent API, that is used in the SQL procedure, and the term ES stands for "Early Start", in which it is an approximate time to start any exercise. It is also known as an activity, that will only start with the near then ends, and all past track practices have begun early, and certain options were wrong, that can be defined as follows:

  • In option B,  It requires unit time 0, that's why it is wrong.
  • Option C and Option D both are wrong because, in LF, it requires unit time, that is equal to 0 so, it can't be min or max.
6 0
4 years ago
List the steps you took to configure SERVERC and take a screen shot of the Connect to DNS Server dialog box by pressing Alt+Prt
Oksi-84 [34.3K]

Answer: Main Steps are as under;

1. Add servers to the server administrator • On the SVR-MBR-C computer, click All Servers.

2. After installation right click all servers icon, the SVR-MBR-C restarts.

3. On the Active tab and the selected Adatum domain, click Find Now Select the SVR-DC-A server and click the arrow and Search results. The server appears in the selected list.

4. In SVR-MBR-C, in Server Manager, click Manage> Add Roles and Features.

5. The Add Roles and Features Wizard appears, showing before you begin

6. Add AD DS as Roles.

7. 7. Promote the server after adding roles to a domain controller

8. After installation SVR-MBR-C restarts.

Explanation:

Main Steps are as under;

1. Add servers to the server administrator • On the SVR-MBR-C computer, click All Servers.

2. After installation right click all servers icon, the SVR-MBR-C restarts.

3. On the Active tab and the selected Adatum domain, click Find Now Select the SVR-DC-A server and click the arrow and Search results. The server appears in the selected list.

4. In SVR-MBR-C, in Server Manager, click Manage> Add Roles and Features.

5. The Add Roles and Features Wizard appears, showing before you begin

6. Add AD DS as Roles.

7. 7. Promote the server after adding roles to a domain controller

8. After installation SVR-MBR-C restarts.

6 0
4 years ago
Hoda wants to create a new presentation in PowerPoint with existing graphics and designs. What is the easiest and fastest way fo
Paul [167]

Answer: a

Explanation:

6 0
4 years ago
Element will you include to present numerical data on the slide
Sveta_85 [38]
I believe a graph, because it shows data.
8 0
4 years ago
Which command must you use at the command prompt to determine the names of the network interfaces (including the isatap interfac
spayn [35]

ipconfig /all is operate at the command prompt to specify the names of the network interfaces (including the isatap interfaces) on a windows 7 computer.

<h3>What is Network interfaces?</h3>

A network interface exists the network-specific software that communicates with the network-specific device driver and the IP layer to furnish the IP layer with a consistent interface to all network adapters that might be present. The network interface may direct to Network interface controller, a computer hardware element that connects a computer to a computer network Network interface device, a device that functions as the demarcation.

config exists a console application program of some computer operating systems that shows all current TCP/IP network configuration values and refreshes Dynamic Host Configuration Protocol and Domain Name System settings.

Hence, ipconfig /all is operate at the command prompt to specify the names of the network interfaces (including the isatap interfaces) on a windows 7 computer.

To learn more about Network interfaces refer to:

brainly.com/question/20689912

#SPJ4

3 0
2 years ago
Other questions:
  • The command prompt found on windows 10 is very similar to the interface of what past operating system?
    5·2 answers
  • A(n) ____ tag is used to let the compiler know that your intention is to override a method in a parent class
    10·1 answer
  • Define the term Frame Rate.
    12·1 answer
  • Which Google Analytics visualization compares report data to the website average?A. Pivot viewB. Comparison viewC. Performance v
    8·1 answer
  • A __________ acts as separate network that rests outside the secure network perimeter so untrusted users can access web servers
    10·1 answer
  • Write a program that produces the following output:
    12·1 answer
  • Can someone pls help me my notifications aren’t working, I need help ASAP ty!
    5·1 answer
  • If an additional term relates to payment, quality, quantity, price, time, and place of delivery, the CISG considers the added te
    12·1 answer
  • One of the following is NOT a type of Intellectual Property
    7·1 answer
  • WHAT DO YOU KNOW?<br> Why would you want to change your Table<br> Properties?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!