Java Programming
Java Programming
8th Edition
ISBN: 9781305981829
Author: Joyce Farrell
Publisher: Cengage Limited
Question
Book Icon
Chapter 4, Problem 11PE

a.

Program Plan Intro

CertOfDeposit

Program Plan:

CertOfDeposit.java:

  • Define the class “CertOfDeposit”.
    • Declare and initialize the required variable.
    • Definition of constructor.
      • Assign the variables.
      • Define the mutator method for certificate number.
        • Assign “n” to “certNum”.
      • Define the mutator method for owner name.
        • Set the name.
      • Define the mutator method for balance.
        • Set the balance.
      • Define the mutator method for issue date..
        • Set the balance.
      • Define the accessor method for certificate number.
        • Return the certificate number.
      • Define the accessor method for name.
        • Return the name
      • Define the accessor method for balance.
        • Return the balance.
      • Define the accessor method for issue date.
        • Return the issue date.
      • Define the accessor method for maturity date.
        • Return the maturity date.

b.

Program Plan Intro

TestCertOfDeposit.java

Program Plan:

TestCertOfDeposit.java:

  • Define the class “TestCertOfDeposit”.
    • Definition of method main.
    • Declare the required variable.
      • Get the certificate name from the user.
      • Get the owner name from the user.
      • Get the balance from the user.
      • Get the issue date from the user.
      • Call the method “display()”.
  • Definition of method “display()”.
    • Print the details of the certificate.

Blurred answer
Students have asked these similar questions
I would like to know the main features about the following 3 key concepts:1. Backup Domain Controller (BDC)2. Access Control List (ACL)3. Dynamic Memory
In cell C21, enter a formula to calculate the number of miles you expect to drive each month. Divide the value of number of miles (cell A5 from the Data sheet) by the average MPG for the vehicle multiplied by the price of a gallon of gas (cell A6 from the Data sheet).
Microsoft Excel
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
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
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781305480537
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning