The options of choosing one of the functions: Fix deposit                                                                                                   Cancel         Request for user’s input for the principal of savings and number of years of saving  Based on Equation 1.0, process the user inputs with the mathematical formula correctly. Display the expected output correctly

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

[in java]

  1. You are working in the information technology department of a financial institute. You are required to develop a Java Program to assist the customer service department to provide good quality of services to the customer. Fix deposit is one of the most commonly asked services. Therefore, you are asked to develop a calculator for fix deposit to be included in the ATM display. The available options for ATM display is Fix Deposit and Cancel.

         When different option is chosen, different inputs from a user are required. Figure 6 shows the expected       outputs on the ATM display. When the option Cancel is chosen, the user will exit from the system.

Fix Deposit:

Annual interest (%) : 3.0

Principal of saving (RM):Z

Number of years of saving (n):

Total savings (RM):

 

figure 6

Based on Figure 6, the annual interest given by the bank is 3% and will be displayed on ATM screen. Let  represents the amount of money in your saving account at the end of n years in the bank account and the calculation of  is shown in Equation 1.0.

Pn = 1.03 x (Principal)n     

Equation 1.0

For an ATM user, they are required to key in the principal of saving and the number of years that they would like to deposit in order to know the total saving. Based on the given values of principal and number of years, the number of total savings will be displayed on ATM screen based on Equation 1.0. While developing the source code, you need to consider that the only inputs by using the keypad of ATM are numbers.

Based on your creativity, design the program so that it can perform functions as follows:

  1. The options of choosing one of the functions:
    1. Fix deposit                                                                                                  
    2. Cancel        
  2. Request for user’s input for the principal of savings and number of years of saving 
  3. Based on Equation 1.0, process the user inputs with the mathematical formula correctly.
  4. Display the expected output correctly
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Payback period
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education