Instruction
MUST BE ORIGINAL ANSWERS!
Provide AN EXAMPLE OF A DOMAIN CLASS, A DESIGN CLASS, AND AN IMPLEMENTATION CLASS THAT MIGHT BE USED IN THE IMPLEMENTATION FOr A BANK atm APPLICATION. Explain why you chose each class.
--------------------------------------------------------------------------
The following function return the correct value, but violates one of the implemeation practices described in the chapter. Which implementation practice is violated, and how might tit lead to a problem in the future? How would you fix the problem.
//compute amount of interest and return
float computeInterest (float balance, float interestRate)
{
//compute interest earned
balance = balance * innterestRate;
return balance;
}