Ask Question, Ask an Expert


Ask Java Expert

Home >> Java

problem 1) prepare a program which accepts account balance and name of account holder as input and it find outs the interest (balance*rate), total amount (balance + interest) and minimum payment for revolving credit line. The rate schedules are as follows:

a) For first $1000 balance the rate is 1.5%

b) For next $3000 balance, the rate is 2%, and

c) 3% on rest of the balance.

The minimum payment is as follows:

d) The total amount due if it is $10 or less;

e) Otherwise, it is $10 or 10% of the total amount (whichever is larger).

Your program must include loop, functions, and arrays which lets the user repeat this calculation until user is done.

1) prepare the function Read_data() to read the data from keyboard

2) prepare the function Get_total() to compute interest and find total amount due.

3) prepare the function Payment(), which would return minimum payment due.

4) prepare the function Display() which would create an output file and display name, account balance, total amount, and payment as shown below:

Name Balance Total Amount Payment
John Doe 5600.00 5723.00 572.3

Hints: The interest ($123.00) is computed the following way:

a) For first $1000.00, the interest is $15.00 (rate is 1.5%)

b) Next $3000.00, the interest is $60.00 (rate is 2%)

c) For the rest of the amount ($1600), the interest is $48.00 (rate is 3%)

5) prepare a function SortName() to sort the total in ascending order and display the arrays

6) prepare a function SearchName() to search the array by total and display the outcome.

7) Run your program for the following data:

John Doe 6500
Mary Doe 230
Juan Lopez 50
Larry Smith 7
Nancy Garza 30

Java, Programming

  • Category:- Java
  • Reference No.:- M94573

Have any Question? 

Related Questions in Java

Programming assignment - summer semester 2015-purpose-to

Programming Assignment - Summer Semester 2015- Purpose- To provide students with the opportunity to apply the knowledge acquired and skills developed. These include understanding of primitive data types and the concept o ...

Java question1write an application that prompts a user for

JAVA Question 1. Write an application that prompts a user for a month, day, and year. Display a message that specifies whether the entered date is not this year, in an earlier month this year, in a later month this year, ...

Topic java part a airline seatingmillions of commercial

Topic: Java Part A: Airline seating Millions of commercial airline flights cross the world's cities every year, and each one of these flights must solve what seems like a simple problem: how do you arrange where each pas ...

Code reviewcan some have this done immediatelypublic class

Code Review Can some have this done immediately public class BankAccount { private double balance; public BankAccount() { balance = 0; } public BankAccount(double initialBalance) { balance = initialBalance; } public void ...

Java programmingnow that your survey class has been

Java programming Now that your Survey class has been implemented, it is time to implement the SurveyConductor application class. This class uses the Survey class to conduct a survey. First, create pseudocode to develop t ...

As we have discussed in class section 41 of our text

As we have discussed in class, section 4.1 of our text develops a List ADT and then offers two different implementations of it in the classes AList and LList. The ADT is defined in a Java interface file, and bo ...

Chapter 1 - challenge 3 - training workshopsyour company

Chapter 1 - Challenge #3 - Training Workshops Your company likes to present training workshops that help people in the information technology industry improve their skills. Your task is to write and object-oriented appli ...

Programmers often develop different types of accounts to

Programmers often develop different types of accounts to provide access to a program for a variety of users. The structure of each account is formatted based on the needs of the user and how the program will be used. One ...

Instructionsi what are the diagrams defined in the uml

Instructions I. What are the diagrams defined in the UML Standard. Give a one or two sentence description of each one. II. Given the following code, how should the toString methods in the classes H2ClassA and H2ClassB be ...

Part 1 text readingchapter 3 chapter 4 part 2 textbook

Part 1. Text reading Chapter 3, Chapter 4 Part 2 . Textbook questions Chapter 3. Describe why an application developer might choose to run over TCP rather than UDP. Suppose host A is sending host B a large file over a TC ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate