Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Homework Assignment 4-C For this Assignment you will attach ONE file, your program file (the .cpp file). DO NOT cut and paste your code into

Homework Assignment 4-C For this Assignment you will attach ONE file, your program file (the .cpp file). DO NOT cut and paste your code into the Add Comments section of the Assignment or email your program, your program will NOT be graded and you will receive a zero for the assignment. If program does not compile you will automatically lose -10. PROBLEM: Seabreeze Bank ATM. (20 pts) Write a program that will run deposit and withdrawals menu of the ATM for Seabreeze Bank for both a Savings and Checking Account. You will display the following menu, menu 1, to the user: Welcome to Seabreeze Bank ************************ 1. Savings Account 2. Checking Account 3. Quit Please enter a menu item (1-3) > Validate the input, if a 1 or 2 is entered then you will display menu 2 below. If the user chose to quit the program display a message thanking the user for visiting Seabreeze Bank. ************************ 1. Withdrawal 2. Deposit 3. Quit ************************ Please enter a menu item (1-3) > After displaying the menu, validate the input, if a 1 or 2 is entered then ask the user to enter the amount to withdraw or deposit based on the input given. If the user chose to quit, exit to menu 1. This menu should loop until the user decides to quit (i.e. enclose all the functionality of the menu, the reading in of the user input, and the calculation of the withdrawal/deposit in a do/while loop). You will then read in the amount to withdraw or deposit and validate this input. Update the balance of the account accordingly. If the user does not have enough money to make the withdrawal you must notify the user that they cannot withdraw the amount requested. You must display the account balance each time with the type of the account described (see sample output). The account balance will be pre-set to $2500.00 for the checking account and $1000.00 for the savings account at the beginning of the program. Homework Assignment 4 Pool COP2000 HOMEWORK ASSIGNMENT 4C 2 The program should continue to loop until the user is ready to quit. (Hint: After you have your program running, completely enclose your program in a do/while loop that only exits if the user chooses to quit). Input Validation: The program must check to see if the user enters a valid menu item (a number 1 through 3) and a valid value for the withdrawal or deposit (must be a number greater than 0. If the user does not enter a valid value, display an error message and ask the user to enter the value again until a valid value is entered.

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

Database Marketing The Ultimate Marketing Tool

Authors: Edward L. Nash

1st Edition

0070460639, 978-0070460638

More Books

Students also viewed these Databases questions