
EBK JAVA PROGRAMMING
8th Edition
ISBN: 9781305480537
Author: FARRELL
Publisher: CENGAGE LEARNING - CONSIGNMENT
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
Chapter 11, Problem 13PE
Program Plan Intro
Sanchez Construction Loan Co.
Program plan:
Filename: “CreateLoans.java”
- Include the required header files
- Define the class “CreateLoans”
- Define the “main” method
- Declare the required variables with the values
- Show the input dialog box and get the interest rate
- Iterate “x” until it reaches “MAX” value
- Show the input dialog box and get the loan type
- Show the input dialog box and get the account number
- Show the input dialog box and get the name
- Show the input dialog box and get the loan amount
- Show the input dialog box and get the term
- Check “loanType” is equal to 1
- Create an object for “BusinessLoan” class and pass the arguments
- Set the value
- Otherwise, create an object for “PersonalLoan” class and pass the arguments
- Set the value
- Iterate “x” until it reaches “MAX” value
- Calculate the value
- Display the output message
- Define the “main” method
Filename: “BusinessLoan.java”
- Define the “BusinessLaon” class which extended from “Loan” class
- Define the parameterized constructor
- Call the “super” method with the arguments
- Calculate the rate
- Define the parameterized constructor
Filename: “Loan.java”
- Define the “Loan” class which implemented from “LoanConstants” class
- Declare the required variables
- Define the parameterized constructor
- Set the values
- Check “amt” greater than “MAXLOAN”
- Set “MAXLOAN” to “amount”
- Otherwise, set “amt” to “amount”
- Check “yrs” equal to “SHORT_TERM” or “MEDIUM_TERM” or “LONG_TERM”
- Set “yrs” to “term”
- Otherwise, set “SHORT_TERM” to “term”
- Define the “toString” method
- Declare the variable and calculate the “r” value
- Return the result
- Define the “equals” method
- Declare the variable
- Check the condition
- Set true to “returnVal”
- Return the “returnVal”
Filename: “LoanConstants.java”
- Define the “LoanConstants” interface
- Declare the required variables with values
Filename: “PersonalLoan.java”
- Define the class “PersonalLoan” which extended from “Loan” class
- Define the parameterized constructor
- Call the “super” method with the arguments
- Calculate the rate
- Define the parameterized constructor
Expert Solution & Answer

Trending nowThis is a popular solution!

Students have asked these similar questions
List down the strenghts and weaknesses of your team project for Capsim Simulation? Explan.
Capsim Team PowerPoint Presentations - Slide Title: Key LearningsWhat were the key learnings that you discovered as a team through your Capsim simulation?
Write the SQL code that permits to implement the tables: Student and Transcript. NB: Add the constraints on the attributes – keys and other.
Chapter 11 Solutions
EBK JAVA PROGRAMMING
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Draw an ERD that will involve the entity types: Professor, Student, Department and Course. Be sure to add relationship types, key attributes, attributes and multiplicity on the ERD.arrow_forwardDraw an ERD that represents a book in a library system. Be sure to add relationship types, key attributes, attributes and multiplicity on the ERD.arrow_forward2:21 m Ο 21% AlmaNet WE ARE HIRING Experienced Freshers Salesforce Platform Developer APPLY NOW SEND YOUR CV: Email: hr.almanet@gmail.com Contact: +91 6264643660 Visit: www.almanet.in Locations: India, USA, UK, Vietnam (Remote & Hybrid Options Available)arrow_forward
- Provide a detailed explanation of the architecture on the diagramarrow_forwardhello please explain the architecture in the diagram below. thanks youarrow_forwardComplete the JavaScript function addPixels () to calculate the sum of pixelAmount and the given element's cssProperty value, and return the new "px" value. Ex: If helloElem's width is 150px, then calling addPixels (hello Elem, "width", 50) should return 150px + 50px = "200px". SHOW EXPECTED HTML JavaScript 1 function addPixels (element, cssProperty, pixelAmount) { 2 3 /* Your solution goes here *1 4 } 5 6 const helloElem = document.querySelector("# helloMessage"); 7 const newVal = addPixels (helloElem, "width", 50); 8 helloElem.style.setProperty("width", newVal); [arrow_forward
- Solve in MATLABarrow_forwardHello please look at the attached picture. I need an detailed explanation of the architecturearrow_forwardInformation Security Risk and Vulnerability Assessment 1- Which TCP/IP protocol is used to convert the IP address to the Mac address? Explain 2-What popular switch feature allows you to create communication boundaries between systems connected to the switch3- what types of vulnerability directly related to the programmer of the software?4- Who ensures the entity implements appropriate security controls to protect an asset? Please do not use AI and add refrencearrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningSystems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage LearningEBK JAVA PROGRAMMINGComputer ScienceISBN:9781305480537Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT

EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage

Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,

C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning

Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning

EBK JAVA PROGRAMMING
Computer Science
ISBN:9781305480537
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Introduction to Classes and Objects - Part 1 (Data Structures & Algorithms #3); Author: CS Dojo;https://www.youtube.com/watch?v=8yjkWGRlUmY;License: Standard YouTube License, CC-BY