Implementation of an object oriented program using java

Assignment Help JAVA Programming
Reference no: EM132106955

Introduction

The objective of this assignment is the implementation of an object oriented program using Java to receive information from a potential client and calculate and display details of a possible loan from the GoodMates Loan Institution. The assignment 2 will be an extension of this assignment.

Carefully read the specification below. Make sure that you have all the information necessary to start the program. Do not assume what is necessary. There is a discussion board forum: assignment 1. Post your questions there and check it regularly. Start the assignment as soon as possible (after your computer lab this week). You will find the document "HelpToStartAssign1" and some Java files in Blackboard, which gives you some initial steps to start the assignment. I will answer questions and clarify any issue in the next week lecture (week 6).

Specification

The program will start asking for the following inputs:
- User name
- User age
- User income per year
- amount of money the user would like to borrow
- number of months the user would like to pay
- type of account (see below)

If the user inputs a negative number, the program should show a message and ask the input again. There are two types of accounts the user can choose:
1) No fees. If the user chooses this option, the interest rate will be a. 6.5% if n < 50
b. 7.5% if 50 <= n < =100
c. 8.5% if n > 100 where n is number of months

2) Fees. The interest rate will be 6%, but the user needs to pay an additional fee of $10 every month.

Next, the program will output the monthly payment, which will be calculated using the formula:

p = (d*r*an)/12* (an - 1 )    (1)

where d = amount to borrow, a = 1+r/12, r = interest rate and n = number of months

Then, the program will show the amortization table. Each row of the table will show:
- month
- initial balance
- payment
- interest paid
- principal paid
- final balance

The payment is calculated by the formula (1). The interest paid will be (initial balance)*r/12.

The principal paid will be (payment - interest paid)
The final balance will be (initial balance - payment + interest paid.)

The program will also inform
- Total payment
- Total interest paid

Program Requirements

There must be three classes: Client, Account and LoanCalculator.

- The Account class (the file needs to be Account.java)

It will hold the required instance data for an account and it will have suitable methods to access and modify the data for an account.

The instance variables will be
- interestRate - double
- numberOfMonths - int
- amount - double
- accountType - String

You need to implement at least one constructor, which will initialize the instance variables with values from parameters. The class needs to have methods to change and access all instance variables. It will also have the following methods (at least):

- setInterestRate, which will set the value in the interestRate which will depend on the type of the account (as explained above).
- calculateMontlyPayment, which will calculate the formula (1)
- setAmortizationTable - it will output a String with the table information.

- The Client Class (the file needs to be Client.java)

It will hold the required instance data for a client and it will have suitable methods to access and modify the data for a client.

The instance variables will be:
- name - String
- age - int
- income - double
- loan - Account

You need to implement at least one constructor that will have the parameters name, age and income. The class needs to have methods to change and access all instance variables.

- The LoanCalculator Class (the file needs to be LoanCalculator.java)

It will receive inputs and show outputs. It will have a Client variable. This is the only class that should have a main method. The class LoanCalculator will also be the only one that will receive inputs and show outputs.

You can use TIO or GUI (it is your choice). On both cases, you should use only the classes have seen in lectures.

Attachment:- Assignment.rar

Verified Expert

The solution file prepared in netbeans and implemented GoodMateLoan payment details in java. This program has client.java to maintain client details and account.java to maintain account details of customers. The goodmate loan .java implemented gui using applet and display amortization table for bank loan repayment with customer details

Reference no: EM132106955

Questions Cloud

Utilize personal and confidential data about users : Healthcare exchanges must utilize personal and confidential data about their users. What are policy that stipulates responsible processing and storage
Defining what you thought about the activity : Then you need to Post your Reaction to what you thought about the activity and then cover some basics about the 3 points listed above that you researched.
Why there is resistance to liberalizing lawyers fees awards : Evaluate Dondi Properties Corp. v. Commercial Savings & Loan Ass'n. Compare and contrast the benefits, in the long run, of following the judges' rules.
Determiner what committees you might develop : Determiner A) what committees you might develop, B) why you believe these are needed, and C) who will serve on these and why?
Implementation of an object oriented program using java : SENG1110/6110 Programming - School of Electrical Engineering and Computing - University of Newcastle - implementation of an object oriented program using Java
Describe the darwin-wallace theory of evolution : Describe the Darwin-Wallace theory of evolution, in detail.including the concept of natural selection. why is water fundamental to all living organisms?
The parties entered into final offer arbitration : When the negotiations reached an impasse, Ortiz was at $4.75 million and management was at $3 million. The parties entered into final offer arbitration.
His contract was up for renegotiation : His contract was up for renegotiation and he was eligible for final offer arbitration. What does Ortiz have to gain if he goes for $4.75 million?
Graduated with a bba from yorkville university : Tong, a new immigrant from China, recently graduated with a BBA from Yorkville University. Her father, who is vice president of a factory in China producing

Reviews

inf2106955

11/28/2018 12:00:11 AM

I mentioned in the assignment that I want the the all code and output in GUI need 3 classes separately Please send proof of code running There is something in the assignment UML what is the main methods in the Loan.java file 1.Account variable is private. 2. Method for Account object in client. * Account object in client private 3.Program works for No fees ,and does not work for fees. 4.Program does prevent input of negative number. 5.Comment blocks. Thank you for providing the solution I am glad to associated with you as you took all my worries about solution and always I get good grades for the solution received from you guys !!!

len2106955

9/7/2018 1:52:58 AM

You should submit the Java files (Client.java, Account.java and LoanCalculator.java) and the assignment cover sheet (available in Blackboard) electronically under the Assignment 1 link in Blackboard. No .class files should be included in your submission, only .java files. Extra Work for SENG6110 students You must to implement the LoanCalculator class using GUI. You need to provide a UML class diagram of your program. You will find Powerpoint slides with an introduction of UML available in Blackboard in the area called ‘SENG6110 extra material’. Ask Regina if you need any help.

len2106955

9/7/2018 1:52:45 AM

This is the whole assignment instructions and please use GUI for the output.Ineed the assignment within 5 days The objective of this assignment is the implementation of an object oriented program using Java to receive information from a potential client and calculate and display details of a possible loan from the GoodMates Loan Institution. The assignment 2 will be an extension of this assignment.

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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