Get Writing Help
WhatsApp
    Skip to content
Start Your Order
Uncategorized

looking for a UML diagram for this program in cpp a. Member variables and member functions…

1 min read

Homework Help Question & Answers

looking for a UML diagram for this program in cpp a. Member variables and member functions…

looking for a UML diagram for this program in cpp
a. Member variables and member functions b. Access specifiers for all member variables and member functions C. Data types for all member variables d. Data types for all parameters e. Return types for all member functions, constructors, and destructors class Account { private: double balance; // Account balance double interest Rate; // Interest rate for the period double interest; // Interest earned for the period int transactions; // Number of transactions public: Account (double iRate = 0.045, double bal = 0) { balance = bal; interest Rate = iRate; interest = 0; transactions = 0; } void set InterestRate(double iRate) { interest Rate = 1Rate; } void makeDeposit(double amount) { balance += amount; transactions ? bool withdraw( double amount); // Defined in Account.cpp void calcInterest() { interest = balance interest Rate; balance + interest; } double getInterestRate() const { return interest Rate; ) double getBalance() const { return balance; } double get Interest() const { return interest; ) int getTransactions() const { return transactions; } };
0 0
Add a comment
Academic Writer & Editor
Limited Offer     Get 25% off your first order — use code STUDYLINK25 at checkout    Claim Now