Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A particular bank has checking accounts that may earn interest, as shown by the following table: Balance In $100.000.0 terest Rate Charge 0.0 0.00 25.00

image text in transcribed

A particular bank has checking accounts that may earn interest, as shown by the following table: Balance In $100.000.0 terest Rate Charge 0.0 0.00 25.00 Complete the program below so the it prompts for and reads in the balance of a members account. Detenmine and apply the interest cue the account, printing out the new balance. If the balance is less than $0.00, add the panalty to that balance and print it out. Complete the following file BankInterest.java 1 import java.util.Scanner 4 This program updates an account balance, according to the table below: Balance Interest Rate Charge >$100,000.00 2.75% > $25,eeg .09 2.80% > $18,008.88 1.80 % $ 8.88 $ e.80 s 8.88 8.08 $ 25.0 - $0.8e 0.08 % 0.88 % $8.80 and prints out the new balance 1e 12 13 public class Bankinterest 15 16 17 18 public static void main(String[] args) / Define constants final double HI RATE 2.75; final double MD RATE 2.80 final double LO RATE = 1.00; final double ZERO-RATE = 8.ee; final double DEB_ CHG --25.ee; final double HI-LIMIT = 18eeee,98; final double MD-LIMIT 25eee.ee; final double LO-LIMIT = 1eeee.ee; final double ZEROLIMIT 8.88; 26 27 // Print prompt to enter a current balence System.out.print("Enter current balance:; / Read balance Scanner in new Scanner (System.in); double balance = in-nextDouble(); 34 35 36 37 38 // Determine interest rate (or charge) based on current balance // to compute new balance // Your work here 41 System.out.printf"%.2fn", newBalance) 43

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What is DDL?

Answered: 1 week ago