Program that reads a customers account number

Assignment Help JAVA Programming
Reference no: EM131914422

A bank in your town updates its customers' accounts at the end of each month. The bank offers two types of accounts: savings and checking. Every customer must maintain a minimum balance. If a customer's balance falls below the minimum balance, there is a service charge of $10.00 for savings accounts and $25.00 for checking accounts. If the balance at the end of the month is at least the minimum balance, the account receives interest as follows:

a. Savings accounts receive 4% interest.

b. Checking accounts with balances of up to $5000 more than the minimum balance receive 3% interest; otherwise, the interest is 5%.

Write a program that reads a customer's account number (int type), account type (char type; s or S for savings, c or C for checking), minimum balance that the account should maintain, and current balance.

The program should then output the account number, account type, current balance, and new balance or an appropriate error message.

Test your program by running it five times, using the following data: 46728 S 1000 2700 87324 C 1500 7689 79873 S 1000 800 89832 C 2000 3000 98322 C 1000 750

 

 

Reference no: EM131914422

Questions Cloud

Discuss public policy issues and assess its effectiveness : Select one of the following public policy issues and assess its effectiveness. What changes may be needed and why?
Discuss first amendment rights of broadcast media outlets : In commenting on the ongoing indecency debate, The New York Times argued: "The Supreme Court should end all government regulations on the content of broadcasts.
Compute taxable income and income taxes payable : Compute taxable income and income taxes payable for 2017. Prepare the income tax expense section of the income statement for 2017.
Under what conditions will you exercise the option : Under what conditions will you exercise the option. At what 2-year rate, one year from now, will you break even on this option?
Program that reads a customers account number : Write a program that reads a customer's account number (int type), account type (char type; s or S for savings, c or C for checking), minimum balance
Considering expansion of their product line to europe : Company that produces scooters and other wheeled non-motorized recreational equipment is considering an expansion of their product line to Europe.
What exactly is the role of federal insurance office : What exactly is the role of the Federal Insurance Office (F.I.O.) how was this created?
Prepare an incremental analysis : Mesa Verde manufactures unpainted furniture. Prepare an incremental analysis. Determine whether Mesa Verde should sell tables or process further tables.
Create a very simple java program : Create a Java program with file name of greetings.java. Your program will provide a short introduction about yourself: name, the city you live in, hobbies etc

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a program to implement bubble sort and insertion sort

Write a program to implement bubble sort, insertion sort, selection sort, merge sort and quick sort (pivot = random index) algorithms

  Write a class house that correctly compiles and runs

Write a class House that correctly compiles and runs with the following TestHouse code. You cannot change a single thing in the TestHouse class,

  Write javascript code to perform the validation of your form

With HTML5 forms there are some attributes that you can declaratively add to the various form elements to help with required fields, etc. What are some reasons that you can think of why you would want to write your own JavaScript code to perform t..

  Create application containing array that stores ten integers

Create an application containing an array that stores 10 integers. The application should call five methods that in turn display all the integers.

  Discuss the effect java applets give to html pages

Instructions: This week please post on each of these two topics: Discuss the role of JavaScript in HTML? Discuss the effect Java Applets give to HTML pages?

  Array named peopletypes that can store a maximum

Define a 1-D array named peopleTypes that can store a maximum of 50 integer values that will be entered at the keyboard. Enter a series of 1's, 2's, 3's and 4's into the array, where a 1 represents an infant, a 2 represents a child, a 3 represents..

  Create a new android application project

You have been hired to create a mobile application for Healthy Life, a local organic bakery and grocery store. The main screen should state the name of the person who owns the phone. Create a new Android Application Project

  Write a recursive method to compute the following series

Write a recursive method to compute the following series.

  Write a program that prompts the user to input a string

Write a program that prompts the user to input a string. The program then uses the function substr to remove all the vowels from the string.

  Write a simple program to implement inner class

Write a simple program to implement inner class using ActionListener

  Build a simple robot game where the robots

Build a simple robot game where the robots are modeled as objects and move around in a 2- dimensional grid as shown -

  Prepare a main method that tests all of your functions

A method that outputs the name and list of all patients - A method that resets the number of patients to 0 and the patientList to an empty list - Prepare a main method that tests (i.e, unit testing) all of your functions.

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