Home / Expert Answers / Computer Science / c-language-nbsp-the-following-diagram-illustrates-the-classes-you-will-implement-in-this-lab-and-pa184

(Solved): c++ language  The following diagram illustrates the classes you will implement in this lab and ...



c++ language 

The following diagram illustrates the classes you will implement in this lab and their
Ex 1. Account Class
Implement Class Account as described in the UML diagram above.
Ex 2. JD Class
Implement Class JD as descr
The following diagram illustrates the classes you will implement in this lab and their Ex 1. Account Class Implement Class Account as described in the UML diagram above. Ex 2. JD Class Implement Class JD as described in the UML diagram above. Notice that: 1-GetTotal function will multiply the JD_Amount by the interest_rate as the equation (jD_Amount * (1.0 +interest_rate)) 2. Parameterized constructor that receives all data members including data members in the base class. 3- in print you have to print all details of object. 4- override the destructor. Ex 3. Dollar class Implement Class Dollar as described in the UML diagram above. Notice that: 1-GetTotal function will devide the dollar_Amount by the exchange_rate to convert it to JD as the equation (dollar_Amount / Exchange_rate) 2- Parameterized constructor that receives all data members including data members in the base class. 3- in print you must print all details of object. 4- override the destructor. Ex 4. Driver Implement a driver program to test your code. 1- Create two objects, one of type JD and another of type Dollar including the information of account (enter any values). 2. Create array of pointers of type Account of size 2. The first pointer points to the first object and the second pointer points to the second object. 3- Print all of the information of each object using the print function using loop 4. Define a function that recives the an array of Accounts and the size that calculate the total of the two objects using the getTotal for each object and loop then print the final result. 5. Call the function defined in the previous point.


We have an Answer from Expert

View Expert Answer

Expert Answer


The Account class is a base class that represents a bank account with a holder name, a branch name, and an IBAN. It has three class variables: holderN
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe