Write the following code in Java. Below is a program written to calculate an invoice total. Analyze
Question:
Write the following code in Java. Below is a program written to calculate an invoice total. Analyze and modify the program to design an object-oriented solution by using the three layers architecture, and provide source code to include the following: It is important to do what is in bold. For each layer, they must be a separate class. So in total of 3 classes.
• A business rule layer with methods to manipulate data (i.e., Constructor(s), mutators, accessor, customized methods, and others)
• A Database layer for data processing
• An user interface layer to test your application
• Exception handling statements that handles exceptions when they occur.
• Overloaded methods
• StringBuilder to print results
• Test runs
Provide an object-oriented design solution for the Java application:
Operating Systems Internals And Design Principles
ISBN: 9781292214290
9th Global Edition
Authors: Stallings William