Question: My program is nearly done, but I cannot make my Cases display letters instead of numbers ( example press D for Deposit, W for withdrawal

My program is nearly done, but I cannot make my Cases display letters instead of numbers ( example press D for Deposit, W for withdrawal and C for Checks & balance and q for quit). and lastly I cannot make all the check deposits reappear when I request case 3 to view checks and balance (example display how many checks, balance total and a list of all the checks that are being displayed as you submit them). Please help thank you.

#include #include #include #include

using namespace std;

int Deposit (int amount, int currentBalance); int Withdrawal (int amount, int currentBalance); void viewBalance (int currentBalance); void showCheckDeposit(listdeposits); int num = 0;

int main(int argc, char** argv) { //variables int currentBalance = 1000; // beginning balance for checking account int amount = 0; int answer = 0; bool notComplete = true; list allDeposits; while (notComplete){ cout << "-- Would you like to make a Deposit, Withdrawal or a View Of Balance -- "; cout << "Submit 1 for Deposit / 2 for withdrawal / 3 for Checks & Balance / 4 To Quit "; cin >> answer; switch (answer) {

case 1: cout << "Enter the Deposit amount" <> amount; currentBalance = Deposit (amount, currentBalance); cout << "Your Deposit is: " << amount << " " << endl; cout << "Your new Balance is: " << currentBalance << " " <> amount; if (amount > currentBalance) { cout << "Insufficient Funds "; break; } else { currentBalance = Withdrawal(amount, currentBalance); cout << "Current Balance After Withdrawal: " <

int Deposit (int amount, int currentBalance) { currentBalance +=amount; return currentBalance; }//end deposit

int Withdrawal(int amount, int currentBalance) { currentBalance -= amount; return currentBalance; }// end withdrawal

void viewBalance (int currentBalance)

{ cout <<" "<

void showCheckDeposit(listdeposit){ list ::iterator it; for(it = deposit.begin(); it != deposit.end(); ++it) cout << "\t $" <<*it; cout << " "; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!