Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A bank provides a fixed deposit plan with 2.35482% interest rate per year and the duration is 5 years. The bank provides two modes, interest

A bank provides a fixed deposit plan with 2.35482% interest rate per year and the duration is 5 years. The bank provides two modes, interest withdrawal mode or compound interest mode, for the fixed deposit. In interest withdrawal mode, the customer receives the same amount of interest every year during the 5 years. The amount of interest per year is simply the initial amount of the fixed deposit multiply the interest rate. In compound interest mode, the amount of interest of each year will automatically be accumulated to the amount of fixed deposit. Customer cannot receive any money during the 5 years. However, the amount of interest at year i is more than year i-1. Write a fixed deposit calculator program. The program reads the initial amount (a floating point value) of the fixed deposit from keyboard. The program should then output The interest that the customer receives per year in withdrawal mode. The total amount (including both initial amount and interest) that the customer receives on the completion of the fixed deposit service in withdrawal mode. The interest at year i in compound mode where i is from 1 to 5. The total amount (including both initial amount and interest) that the customer receives on the completion of the fixed deposit service in compound mode.

Technical Requirements: The class name must contain exactly (no more, no less) the following 3 English words in the given order. o (i) fixed (ii) deposit (iii) calculator o Follow the naming convention, what should the letter cases (upper or lower) of the class name be? Use a constant for the interest rate in your program. Display the amount of interest in 4 decimal places. IS3230 JAVA Programming for Business Lab 2 3 Display the total amount in 2 decimal places. All numeric values are comma grouped. Your program cannot create more than one Scanner object. The following are two examples outputs. Note that the right-most digit of the floating point values in your output may be differ by 1 when comparing with the example outputs due to precision problem.

Strings for copy and paste o IS3230 Lab 2 Exercise: oFixed deposit calculator o How much for the fixed deposit? o What is your name? o Dear o In withdrawal mode: o In compound mode: o You can receive IS3230 JAVA Programming for Business Lab 2 4 o Per year o The total amount on completion is o In compound mode: o The interest at year

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

Recommended Textbook for

Finance Theory And Practice

Authors: Anne Marie Ward

3rd Edition

1908199482, 978-1908199485

More Books

Students also viewed these Finance questions

Question

e. What seems to prevent it from occurring?

Answered: 1 week ago