Reference no: EM13942225
Please help write a java program using a graphical user interface that accepts user input of the amount of the mortgage, the term of the mortgage and the interest rate of the mortgage and display the payment. Please use attached Mortgagedisplaycalcultor class diagram (must have the same names in the code) as a guide.
The display should meeth the following criteria:
A class called MortgageDisplayGui.java shall be a child of the Jframe.class and will consist of 5 individual Jpanels
1. ratePanel
2. termPanel
3. amountPanel
4. paymentPanel
5. buttonPanel
JPANEL 1-4 will contain two controls each, a JLabel and a JtextField
JPANEL 5 will contain four controls-each a Jbutton, one to Quit, one to Reset and one to calculate and one to view Amortization.
JPANEL 1-5 will have a flow layout manager
The Container of the primary MortgageDisplayGui.java class will have a BoxLayout manager.
The MortgageDisplayGui.java class will have an init()function that builds the gui. The init() function will be called from the constructor.
The MortgageDisplayGui.java will be packaged into a src.calculator.gui package
The Driver.java will be packaged into a src.calculator package
The Driver class should make and instance of the gui and then display the gui.
Repackage Calculator classes into src.calculator.util package.
EXAMPLE GUIDE:
Pseudo code for init() function of MortgageDisplayGui
//variables declared as class member variables
JPanel MortgageAmtPanel = new JPanel();
JLabel MortgageAmtLabel = new JLabel("Mortgage Amount: ");
JTextField MortgageAmtText
Public void init()
{
//instantiate loan amount controls
MortgageAmtPanel = new JPanel();
MortgageAmtLabel = new JLabel("Mortgage Amount: ");
MortgageAmtText = new JTextField(16);
//add layout manager to the panel - flowlayout keeps the controls side by side
MortgageAmtPanel.setLayout(new FlowLayout());
//repeat for all panels
//get and configure container from Jframe parent
setSize(400, 300);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Container cont = getContentPane();
cont.setLayout(new BoxLayout(cont, BoxLayout.PAGE_AXIS));
//add mortgage amount panel to the container
cont.add(MortgageAmtPanel );
}//end init
Re-equip one of its major production plants
: A company is planning to re-equip one of its major production plants and one of two types of machine, the Zeta and the Precision II, is to be purchased. The prices of the two machines are very similar so the choice of machine is to be based on two..
|
What will be the effect on cash flows of this sale
: Suppose you sell a fixed asset for $50,000 when its book value is $60,000. If your company's marginal tax rate is 40%, what will be the effect on cash flows of this sale (i.e., what will be the after-tax cash flow of this sale)?
|
The market interest rates
: Brook Company issued a $10,000, 5-year, 11% bond that was sold when the market interest rates were 12%. The bond pays interest semiannually
|
Critically analyse the internal and external environment for
: Critically analyse the internal and external environment for your chosen organisation, making reference to appropriate literature sources. Using appropriate concepts and models of strategic Human ResourceManagement critically evaluate a variety of hu..
|
Gui that accepts user input of the amount of the mortgage
: Please help write a java program using a graphical user interface that accepts user input of the amount of the mortgage, the term of the mortgage and the interest rate of the mortgage and display the payment.
|
Compute the payback statistic for project
: Compute the Payback statistic for Project X and recommend whether the firm should accept or reject the project with the cash flows shown below if the appropriate cost of capital is 10 percent and the maximum allowable payback is 5 years.
|
Considering the addition of a new line of organic fertilizer
: Martin Inc. is considering the addition of a new line of organic fertilizer. It is expected that each application of fertilizer will sell for $15.50 and the variable operating cost per application will be $8.00. Total fixed operating costs are expect..
|
Draft an e-mail reply sympathizing with the customer pligh
: Draft an e-mail reply sympathizing with the customer's plight but preparing him for the bad news (that company policy specifically prohibits refunds in such cases).
|
Balance sheet equation format
: balance sheet equation format to show the effect of the following transactions. Write the account names that will be used for each transaction.
|