Write an exception class called mortgageinputexception.java

Assignment Help Operating System
Reference no: EM13943254

Write an Exception class called MortgageInputexception.java. this class will inherit from the Exception.class in the java API. The exception should be packaged in the src.calculator.gui package.

Modify MortgagedisplayGui.java to include a function called is ValidRate(String testValue) is Valid Term(String testValue) is ValidLoanAmount(String testValue) that will interrogate an input value for each of the entries, rate, term and loan amount. This function will throw the MortgageInputException if the entry is not valid. Use the String manipulation functions to determine if the content is appropriate. That is, the entry does not contain special characters and letters, and for rate does meet the format the calculator requires in order to use the rate in the equations.

Modify MortgageDisplayGui.java to try and catch for this MortgageInputException and upon error, report the Error to the user via a JoptionPane using the ERROR_MESSAGE and DEFAULT_OPTION constants provided by the JoptionPane class.

The new validation functions should throw the exception MortgageInputException.

Include in MortgagedisplayGui.java:

public static final String Rate_Error_MSG;
public static final String Amount_Error_MSG;
public static final String Term_Error_MSG;

private void calculate() {
try
catch
throw
}

isValidRate(in testValue : String) : double
is ValidLoanAmount(in testValue : String) : double
is ValidTerm(in testValue : String) : double
displayError(in message : String)

Attachment:- src.zip

Reference no: EM13943254

Questions Cloud

Sources of risk are diversifiable in nature : Which of the following sources of risk are diversifiable in nature?
Sql statements work without issue : Use SQL to Create a table with at least 4 attributes one of which is the Primary key. Then, insert 2 records into the table. Finally, use a select statement to show the content of your table after the inserts. Be sure your SQL statements work with..
What is the interest tax shield : Fleury Co. has a 34 percent tax rate. Its total interest payment for the year just ended was $37.4 million. What is the interest tax shield?
Explain why individual differences in attachment matter : Explain why individual differences in attachment matter. What are their known sources? Describe the influences that family, or lack thereof, and environment have on the development of infants
Write an exception class called mortgageinputexception.java : Modify MortgageDisplayGui.java to try and catch for this MortgageInputException and upon error, report the Error to the user via a JoptionPane using the ERROR_MESSAGE and DEFAULT_OPTION constants provided by the JoptionPane class.
Dividend changes-issues of debt-stock splits : What is asymmetric information and how does it affect how investors view financial moves like dividend changes, issues of debt, stock splits, etc.?
Discuss situation you required to make management decision : Using your local place of employment, business, or organization, discuss a situation when you were required to make a management- or leadership-related decision.
Explain the meaning of decentralization : Explain Step Down Method. Describe Bundled Payments and Capitation. What do you about Reimbursement to PHYSICIAN for professional services. Explain the meaning of Decentralization. Describe Budget Variances.
Blend of the costs of the different sources of capital : The firm's overall cost of capital that is a blend of the costs of the different sources of capital is known as the firm's

Reviews

Write a Review

Operating System Questions & Answers

  How to hadle users into groups using scopes in windows

Based on Active Directory proposal you completed, how to hadle users into groups using scopes available in Windows.

  Virtual machine design

In a virtual machine design where guest operating systems are independent virtual machines supported by a host operating system, what factors are involved in choosing the host operating system?

  Ethical issues of web site design

Analyze the user interaction interface of a typical website that you might wish to improve and design in terms of any ethical considerations that might require to be addressed.

  Standard forms, mdi parent forms and mdi child forms

Explain the similarities and differences between standard forms, MDI parent forms, and MDI child forms in an MDI application. How is each type of form created?

  Identify a trend that could influence the development

Identify a trend that could influence the development of future operating systems

  Explain page trace analysis using fifo

Increase size of memory so it contains four page frames for public use. Using same page request as above and FIFO, do another page trace analysis and calculate the failure and success ratio.

  Research on input output files

Write a 2 page research paper (excluding title and reference pages) on streams and file I/O. Explain the concepts discussed in the textbook using at least an example not included in the textbook.

  Give an advantage of your method as compare to blocking send

Give a fourth method that is similar to a blocking send but has slightly different properties. Give an advantage and a disadvantage of your method as compared to blocking send.

  Process of typing commands to interact with operating system

Initially, the process of typing commands to interact with the operating system may seem foreign, but the more you use the command-line interface and the individual commands, the easier they will become to use and understand.

  Limitations of the model view controller principle

Determine the advantages and limitations of the model view controller principle. Recognize one way in which MVC helps software designers create better code, and one way in which it deters them.

  Ext4 file systems on linux vs. ntfs file systems

List what characters are absolutely not allowed for ext4 file systems on Linux vs. NTFS file systems on Windows in a plain text document.

  The single processor system

Suppose further that a single processor system can solve the problem in 106 seconds (about 11.6 days). So, on average, the single processor system

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd