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

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 19PE
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,