Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Just 12.12 in c# the new Emp loyee hlrary.DIsplay 12.12 (Accounts Payable System Modification) Modify the accounts payable a 12.14 to include the complete functionality

Just 12.12 in c# image text in transcribed
the new Emp loyee hlrary.DIsplay 12.12 (Accounts Payable System Modification) Modify the accounts payable a 12.14 to include the complete functionality of the payroll app of Figs. 12.4-12.9 app of Figs. 1211 Enploye the app shoud Pp process one object of each of the four till process two Invoice objects, but now should derived classes. If the object currently being processed is a BasePlusCommissomlove should increase the BasePlusCommissionEmployees base salary by 10%. Finally output the payment amount for each object. Modify PayableInterfaceTest (Fig. 12.14) o morphically process two Invoices, one SalariedEmployee, one HourlyEmployee, one Comristes Employee and one BasePlusCommissionEmployee. First, output a string representation of ed IPayable object. Next, if an object is a BasePlusCommissionEmployee, increase its base salam 10%. Finally, output the payment amount for each !Payable object. 12.13 (Polymorphic Banking Program Using Account Hierarchy) Develop a polymorphic batking app using the Account hierarchy created in Exercise 11.9. Create an array of Account referencesto s ingsAccount and checkingAccount objects. For each Account in the array, allow the user to amount of money to withdraw from the Account using method Debit and an amount of moncy deposit into the Account using method Credit. As you process each Account, determin Account is a SavingsAccount, calculate the amount of interest owed to the Account using meth culateInterest, then add the interest to the account balance using method Credit. Afer procesi an Account, display the updated account balance obtained by using base-class property Baland If a odCal e its type Making-a-Difference Exercise ter, you can specify similar behaviors for possibly disparate classes. Govfa cha this 12.14 (CarbonfFootprint Interface: Polymorphism) Using interfaces, as you learned compui the new Emp loyee hlrary.DIsplay 12.12 (Accounts Payable System Modification) Modify the accounts payable a 12.14 to include the complete functionality of the payroll app of Figs. 12.4-12.9 app of Figs. 1211 Enploye the app shoud Pp process one object of each of the four till process two Invoice objects, but now should derived classes. If the object currently being processed is a BasePlusCommissomlove should increase the BasePlusCommissionEmployees base salary by 10%. Finally output the payment amount for each object. Modify PayableInterfaceTest (Fig. 12.14) o morphically process two Invoices, one SalariedEmployee, one HourlyEmployee, one Comristes Employee and one BasePlusCommissionEmployee. First, output a string representation of ed IPayable object. Next, if an object is a BasePlusCommissionEmployee, increase its base salam 10%. Finally, output the payment amount for each !Payable object. 12.13 (Polymorphic Banking Program Using Account Hierarchy) Develop a polymorphic batking app using the Account hierarchy created in Exercise 11.9. Create an array of Account referencesto s ingsAccount and checkingAccount objects. For each Account in the array, allow the user to amount of money to withdraw from the Account using method Debit and an amount of moncy deposit into the Account using method Credit. As you process each Account, determin Account is a SavingsAccount, calculate the amount of interest owed to the Account using meth culateInterest, then add the interest to the account balance using method Credit. Afer procesi an Account, display the updated account balance obtained by using base-class property Baland If a odCal e its type Making-a-Difference Exercise ter, you can specify similar behaviors for possibly disparate classes. Govfa cha this 12.14 (CarbonfFootprint Interface: Polymorphism) Using interfaces, as you learned compui

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

5. How does unpredictability teach flexibility?

Answered: 1 week ago

Question

How to prove this grammar is unambiguous. S aSb | aSa | bSa | bSb |

Answered: 1 week ago

Question

b. Explain how you initially felt about the communication.

Answered: 1 week ago