Question: JAVA With both programs #4 and #5 you will be implementing your solutions using Java. Your goal must be to develop an object-oriented solution but
JAVA
With both programs #4 and #5 you will be implementing your solutions using Java. Your goal must be to develop an object-oriented solution but this time implement it in Java. Make sure that your OO Design is not centered around your data structures your data structures support the design but shouldnt be the primary emphasis of your design. Your Java programs must follow these rules:
1) No public or friendly fields (data members) *** NONE!!!***
2) No friendly methods (member functions)
3) Yes, you SHOULD use the string class!
4) Limit your use of static methods these should be restricted to just protected utility functions and main
5) Use an inheritance hierarchy using extends; there must be a minimum of 5 classes with 3 of them in a hierarchy. These should not be isolated to just your data structures.
6) The application that USES the hierarchy must be in a class on its own. It could be part of a hierarchy, so think about that.
7) Create at least one abstract base class
8) Implement at least one constructor with arguments
9) Implement dynamic binding with one of your hierarchies and experiment with how it works in Java. Prove to yourself that the functions are being overridden versus overloaded. ***Write about this
10) Try out the super keyword in invoking a base class constructor. This is what we use instead of an initialization list. ***Write about this
Data Structures
In these last two programs, you can use Java Collection Framework for your data structures. Use interfaces whenever you can.
Program Requirements Program #4 step 1
Your job in the last two assignments is to create a simple accounting software, starting with a spread sheet tool for data management. Users should be able to have columns for: item #, description of the item, debit, and credit. Your code will add in the totals after executing. Users should be able to request adding additional items, removing items, by description, and searching for items given a description. So I could search for all matching items for expenses at home depot for example.
Your job is to come up with a design of an OO framework that would support simple accounting transactions. Although you all have the ability to write this using procedural abstraction, the key is to make sure to solve
this problem using Object Oriented methodologies with dynamic binding. The use of external data file is advisable but not required for step 1.
Program Requirements Program #5 step 2
Given the design in Program #4, think about how this could be applied to a larger scale to be more realistic. It will need to use external data file and support a mechanism for providing different functionality. Quicken, for example, has modes for allowing you to work in different accounts (e.g., bank accounts, credit card accounts, named expense/income categories (like a business), and rental property expenses/income). Enhance your program with modes so that it can work with different types of expenses, all based on the foundation set from Step #1. There are no hard and fast rules for this assignment, making your software more useful for the real world!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
