You were given the flowchart of a Bank ATM machine. What would be the list of outcomes if the user makes the following selections and entries. Here, you will be following through the given flowchart and reporting the outputs that system will generate. For example: Let assume that, the user is in front of the ATM selected the “Withdraw “ section ( No deposit means , yes Withdraw). And, then user entered the amount of money to Withdraw, $50,000. The system will produce the following output “Sorry, you do not have that much. Try again” . You your answer will be “ Sorry, you do not have that much. Try again” for this case. Now, Follow through the given flowchart and reporting the outputs that system will generate. START Step 1: User input " Deposit " Step 2: User input $650 Step 3: User input "Yes" Another Transaction Step 4: User input Withdraw Step 5: User input $695 Step 6: User input "Deposit" Step 7: User input $798 Step 8: User input "Yes " Another Transaction Step 9: User input "Withdraw " Step 10: User input $500 Step 11: User input "Yes " Another Transaction Step 12: User input "Deposit" Step 13: User input $1125 Step 14: User input " Not Another Transaction" Flow the steps in the given flowchart by considering the user inputs . And, list the output messages that will appear on the screen along with the step number.
Control structures
Control structures are block of statements that analyze the value of variables and determine the flow of execution based on those values. When a program is running, the CPU executes the code line by line. After sometime, the program reaches the point where it has to make a decision on whether it has to go to another part of the code or repeat execution of certain part of the code. These results affect the flow of the program's code and these are called control structures.
Switch Statement
The switch statement is a key feature that is used by the programmers a lot in the world of programming and coding, as well as in information technology in general. The switch statement is a selection control mechanism that allows the variable value to change the order of the individual statements in the software execution via search.
You were given the flowchart of a Bank ATM machine. What would be the list of outcomes if the user makes the following selections and entries. Here, you will be following through the given flowchart and reporting the outputs that system will generate.
For example: Let assume that, the user is in front of the ATM selected the “Withdraw “ section ( No deposit means , yes Withdraw). And, then user entered the amount of money to Withdraw, $50,000. The system will produce the following output “Sorry, you do not have that much. Try again” . You your answer will be “ Sorry, you do not have that much. Try again” for this case.
Now, Follow through the given flowchart and reporting the outputs that system will generate.
START
Step 1: User input " Deposit "
Step 2: User input $650
Step 3: User input "Yes" Another Transaction
Step 4: User input Withdraw
Step 5: User input $695
Step 6: User input "Deposit"
Step 7: User input $798
Step 8: User input "Yes " Another Transaction
Step 9: User input "Withdraw "
Step 10: User input $500
Step 11: User input "Yes " Another Transaction
Step 12: User input "Deposit"
Step 13: User input $1125
Step 14: User input " Not Another Transaction"
Flow the steps in the given flowchart by considering the user inputs . And, list the output messages that will appear on the screen along with the step number.
The general structure of a flowchart for a bank ATM machine. Here is a brief description:
- START: The flowchart starts with the initial state of the ATM machine.
- User authentication: The user is prompted to insert their ATM card and enter their PIN.
- Main menu: Once the user is authenticated, the main menu is displayed with options for deposit, withdrawal, balance inquiry, and other services.
- Deposit process: If the user selects the deposit option, they are prompted to insert their cash or checks into the deposit slot, and the deposited amount is added to their account balance.
- Withdrawal process: If the user selects the withdrawal option, they are prompted to select an amount to withdraw from the available options, and the requested amount is dispensed from the ATM if the user has sufficient balance.
- Balance inquiry: If the user selects the balance inquiry option, their current account balance is displayed.
- Transaction completion: After each transaction, the user is prompted to perform another transaction or end the session.
- END: The flowchart ends when the user ends their session or the ATM machine encounters an error.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps