Please mad in dev c++ software
That is example. But it is wrong
Thanks for the question. Below is the code you will be needing. Let me know if you have any doubts or if you need anything to change.
Let me know for any help with any other questions.
Thank You!
===========================================================================
#include<iostream>
#include<string>
using namespace std;
int main(){
float balance; float amount;
string transaction;
cout<<"Enter transaction (type \"exit\" to
stop): " ;
cin >> transaction;
while(transaction.compare("exit")!=0){
if(transaction.compare("deposit")==0){
cout<<"Enter deposit amount: "; cin >> amount;
balance +=
amount;
}
else
if(transaction.compare("withdraw")==0){
cout<<"Enter withdraw amount: "; cin >> amount;
balance -=
amount;
}
else{
cout<<"\nError: Invalid transaction.\n\n";
}
cout<<"balance: $" <<
balance << endl;
cout<<"Enter transaction
(type \"exit\" to stop): ";
cin >> transaction;
}
return 0;
}
====================================================================
Please mad in dev c++ software That is example. But it is wrong Write a simple...
I need help modifying this code please ASAP using C++ Here is what I missed on this code below Here are the instructions Here is the code Produce correct70 pts O pts Full Marks No Marks results and statisfy requirements view longer Comments 1. Your display amount is not readable 2. I withdraw more than my balance, but I didn't see any error message description Documentations10 pts 0 pts Full Marks No Marks : comment i code and block comment...