Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Eclipse Java Code a Java program to create and use OO classes. Comment your code throughout. Create a Super class named Account Properties Account

Using Eclipse Java

Code a Java program to create and use OO classes.

  • Comment your code throughout.
  • Create aSuperclass namedAccount
  • Properties
  • Account ID
  • Name
  • Balance
  • Constructors
  • A default constructor
  • Constructor with all Account parameters
  • Methods
  • Set and get methods for all properties
  • displayAccount() - displays all properties of an Account

  • Create asubclass namedSavings
  • Properties
  • Rate (Interest rate. Default the value to1%.This is astaticproperty)
  • Constructors
  • A default constructor
  • Methods
  • Set and get methods for all properties
  • displayAccount() - to output all of the properties
  • calcMonthInt() -(calculate the amount of monthly interest asbalance * ( rate/12 ))
  • Then,returnthe amount of monthly interest from calcMonthInt()
  • Create aMain()method to execute your logic.
  • Create 15 Savings objects in an array (use a loop)
  • Theaccount IDswill besav-1001throughsav-1015
  • For thenames, assign the values from the user (Use a dialog input box for this)
  • For thebalances, assign values from an array or from a file
  • Default therateto 1% (as mentioned above)
  • After you have filled the object array, output the contents of that array to the console.
  • Don't be too concerned with minor syntax errors.
  • Draw a line in your code (---------------------) to separate your classes
  • Account
  • Savings
  • Main()

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions