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

  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