Mindtap Computing, 1 Term (6 Months) Printed Access Card For Farrell’s Java Programming, 8th
Mindtap Computing, 1 Term (6 Months) Printed Access Card For Farrell’s Java Programming, 8th
8th Edition
ISBN: 9781337091480
Author: Joyce Farrell
Publisher: Cengage Learning
bartleby

Concept explainers

bartleby

Videos

Question
Book Icon
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

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

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

Blurred answer
Students have asked these similar questions
4G+ Vo) % 1.1. LTE1 : Q B NIS شوز طبي ۱:۱۷ کا A X حاز هذا على إعجاب Mohamed Bashar. MEDICAL SHOE شوز طبي ممول . اقوى عرض بالعراق بلاش سعر القطعة ١٥ الف سعر القطعتين ٢٥ الف سعر 3 قطع ٣٥ الف القياسات : 40-41-42-43-44- افحص وكدر ثم ادفع خدمة التوصيل 5 الف لكافة محافظات العراق ופרסם BNI SH ופרסם DON JU WORLD DON JU MORISO DON JU إرسال رسالة III Messenger التواصل مع شوز طبي تعليق باسم اواب حمید
A manipulator is identified by the following table of parameters and variables:a. Obtain the transformation matrices between adjacent coordinate frames and calculate the global transformation matrix.
Which tool takes the 2 provided input datasets and produces the following output dataset? Input 1: Record First Last Output: 1 Enzo Cordova Record 2 Maggie Freelund Input 2: Record Frist Last MI ? First 1 Enzo Last MI Cordova [Null] 2 Maggie Freelund [Null] 3 Jason Wayans T. 4 Ruby Landry [Null] 1 Jason Wayans T. 5 Devonn Unger [Null] 2 Ruby Landry [Null] 6 Bradley Freelund [Null] 3 Devonn Unger [Null] 4 Bradley Freelund [Null] OA. Append Fields O B. Union OC. Join OD. Find Replace Clear selection

Chapter 11 Solutions

Mindtap Computing, 1 Term (6 Months) Printed Access Card For Farrell’s Java Programming, 8th

Knowledge Booster
Background pattern image
Computer Science
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
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
Text book image
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