Course Solutions Uncategorized (Solved) : Class Account Private Data Members Static Int Genid Int Accountid Double Balance Double An Q30221575 . . . .

(Solved) : Class Account Private Data Members Static Int Genid Int Accountid Double Balance Double An Q30221575 . . . .

 

Class Account

Private Data Members:

static int genId

int accountId

double balance

double annualInterestRate

Static data member used to assign value to accountId;

Account ID

Current Balance of the account

Current Annual Interest Rate of the Account (ex. 4.5)

Public Member Functions:

Account()

Account(int id, double bal, doubleinterest)

Constructors:

Default Constructor (no parameters)

Overloaded Constructor: Three-Parameter Constructor

Public Member Functions:

void setAccountId (int x)

void setBalance(double x)

void setInterest(double x)

Setters:

Function sets id to x

Function sets balance to x

Function sets annualInterestRate to x

Public Member Functions:

int getAccountId()

double getBalance()

double getInterest()

static double getGenId()

Getters:

Function returns accountId

Function returns balance

Function returns annualInterestRate

Static Function used to returns genId

Public Member Functions:

double getMonthlyInterestRate()

Function calculates the monthly interest rate and returns thevalue

doublegetMonthlyInterest()

Function calculates the amount earned per month from interestand

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : Create Rectangle Class 2 Constructors Class Private Protected Fields Length Width Public D Q35073147 . . . .(Solved) : Create Rectangle Class 2 Constructors Class Private Protected Fields Length Width Public D Q35073147 . . . .

<p>C++</p><p><img alt="Create a Rectangle class that has 2 constructors. The class should have private or protected fields: length and width and a p" src="https://media.cheggcdn.com/media%2F902%2F902400fa-50e4-48bd-84ce-b6ef73d9a89c%2Fphpt69zvr.png" style="height:60px;width:1024px;" aria-describedby="d3f"/></p>Create a Rectangle class that