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

  Create the investment calculator

Create the following GUI that allows a user to calculate the value of an investment after a certain number of years with monthly compound interest.

  Make a program that show the sales amount

You have to make a program that show the sales amount. Be sure to include comments. Comments should be included in the program to explain your calculations and program.

  Java application based on your pseudo code

Can somebody help me write out a pseudo code, and help me solve the following according to the pseudo code

  Write a program that displays a string welcome to java

Write a program that displays a string Welcome to Java around the circle, as shown in Figure

  Write a java program the displays the state bird and flower

Write a Java program the displays the State bird and flower. You should use your IDE for this exercise. The program should prompt the user to enter a State and print both the State bird and flower.

  How large a value can be stored in an integer variable

Most programming languages have a built-in integer data type. Normally this representation has a fixed size, thus placing a limit on how large a value can be stored in an integer variable

  The frantic pipe layer game

Design the Frantic Pipe Layer game

  Ask the user to enter a positive non-zero integer value.

Write a program which aske the user to Enter a positve non-zero integer value. if the value enterd zero or negative print as error message and end the program; otherwise, use the integer to call a method displayPattern(n) which must display the follo..

  Define the methods listed

Write a program that prompts the user to enter 5 integer numbers. Once the user enters the 5 numbers, the program must determine and output the average

  Create a java class that contains

Create a java class that contains A two-argument constructor that creates a CdPlayer object with specified manufacturer name and color.

  What is localization and why add it to your app

Is Google Cloud Messaging the best approach to use for push notifications? What is localization and why add it to your app?

  Create java applet to input miles driven and gallons used

Create the Java applet which will input miles driven and gallons used (both as integers) for each tankful. Program must compute and display miles per gallon obtained for each tankful.

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