Write java console application that calculates bank interest

Assignment Help JAVA Programming
Reference no: EM131880989

Assignment: Java Screening test

(**NOTE: Requesting candidates to send complete Java Project for each assignment without having any compilation errors.Assignment would be considered as incomplete as any assignment is incomplete.)

Task 1

Write a java console application that calculates and displays the bank interest for N bank accounts. N should be declared as a constant and it should be equal to the largest digit of your student ID number (e.g. if your ID number is S334261 then N should be equal to 6 and you can declare it as final int N=6). The interest is based on total amount in account as shown below in Table 1.

Table 1. Amount and Interest

Amount                          Interest
$0 - $1000                     0% (no interest)
$1001 - $5000                2.5%
$5001- $10000               5%
Over $10000                   8% (high interest)

Example for N=4

Enter the amount for account number 1: 500
The interest for account number 1 is $0
Enter the amount for account number 2: 2000
The interest for account number 2 is $50
Enter the amount for account number 3: 10000
The interest for account number 3 is $500
Enter the amount for account number 4: 12000
The interest for account number 4 is $960

Interest Details
Total Interest: $1510
Lowest Interest: $0
Highest Interest: $960
Average Interest: $377.5
Number of accounts with no interest: 1

Your application is to follow the same format for input and output as in the example above, but with customised welcome and exit messages.

The application is to use the following classes.

public class Account
{
public Account()
{
// constructor
}
public double interest(int amount)
{
// code to calculate interest goes here
}
public int interestType(double interest)
{
// code to determine accounts with no interest goes here
}
}

public class AccountTest
{
public static void main(String[] args)
{
// local variable declarations go here
// display welcome message
// loop to input amount, calculate and display interest, calculate summary values
// generate and display summary
// display exit message
}
}

You must submit the following two files.

- Account.java
- AccountTest.java

Task2

Disk Backed Map Collection

Implement a Map, which spills on to disk when it exceeds the heap, or a specified limit.

Time Complexity should be same as Current Map implementations (HashMap, TreeMap, etc.)

- Should be capable of handling in a multithreaded environment.
- Put and GET operations, should be Thread Safe.
- Should provide API level Tuning configurations, Where ever applicable.

You must complete compile free source code, with relevant code comments where ever necessary (only to explain the logic).

Reference no: EM131880989

Questions Cloud

Explain erp and the advantages of erp systems : Explain ERP and the advantages of ERP systems. What are the benefits of ERPs in talking to other SW applications?
Benefits and disadvantages for outsourcing supply logistics : Explain the benefits and disadvantages for outsourcing supply logistics operations and management to 3PLs.
What is present value of the investment : what is the present value of the investment?
Determine the effect of the earnings : Ashley has a 65% interest in a business entity. Her basis for her ownership interest is $300,000. The net income of the business for the tax year is $100,000.
Write java console application that calculates bank interest : Write a java console application that calculates and displays the bank interest for N bank accounts.
Define and distinguish between possession : Define and distinguish between possession, form, time, and place utility. Give a "real world" example for each one.
Can an executive be forced to function as a sponsor : Is it right for the sponsor to be the ultimate person responsible for the success or failure of the project?
Explain erp and the advantages of erp systems : Explain ERP and the advantages of ERP systems. What are the benefits of ERPs in talking to other SW applications?
Review given problems as per given requirements : Carey Company is a publicly held corporation whose $10 par value stock is currently trading at $20 per share. The company issued 3,000 shares of stock.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write following java expressions in mathematical notation

Write the following Java expressions in mathematical notation.

  What are the three biggest challenges in planning and design

In your opinion, what are the three biggest challenges in planning and designing a solution for a programming problem? What can you do to overcome these challenges? How would you apply these techniques to the programs in this class?

  Program that prompts the user to enter a telephone number

Write a program that prompts the user to enter a telephone number expressed in letters and outputs the corresponding telephone number in digits

  Write a program using jdbc for getting personal information

Write Java application program to change the basic = basic + 500 of all the employees whose age is greater then 40 from employee table then display how many record updated

  Write a cashregister class that can be used

Write a CashRegister class that can be used with a RetailItem class. The CashRegister class should simulate the sale of a retail item

  Modify the java application using java netbeans and ide

Modify the Java application using Java NetBeans IDE to meet these additional and changed business requirements: The company has recently changed its total annual compensation policy to improve sales.

  Write program that play rock-paper-scissors-lizardspock game

Write a program that plays the Rock-Paper-Scissors-Lizard-Spock game. Refer to http://en.wikipedia.org/wiki/Rock-paper-scissors-lizard-Spock for more information.

  What is the resulting value of x after for-loop terminates

Given the following code, where x = 0, what is the resulting value of x after the for-loop terminates? what will x be after the following loop terminates?

  Create a scatterplot visualization

Create a Scatterplot visualization that reads data from a comma-separated text file. The visualization code should be written in Java using Processing.

  Explain the process of initializing an object

Which method is invoked in a particular class when a method definition is overridden in several classes that are part of an inheritance hierarchy

  Guess the number game

The user interface is displayed and the user clicks the "Start Game" button to begin the game - Your application then gets a random number in the range 1-1000 inclusive

  Questions1 write a programme that computes the rental

questions1. write a programme that computes the rental charge given the type of moped when it is rented weekday or

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