Question: Finishing coding the query responses #include #include using namespace std; int main ( ) { double balance = 0 ; char transType = '

Finishing coding the query responses
#include
#include
using namespace std;
int main(){
double balance =0;
char transType ='\0';
string id;
fstream file;
file.open("data.dat", ios::out);
string _continue ="Y";
while (_continue =="Y"){
cout << "Enter in data - id/amount/type
";
cin >> id >> balance >> transType;
file << id <<""<< balance <<""<< transType << endl;
cout <<"Do you want to continue Y/N?
";
cin >>_continue;
}
file.close();
// Set up Queries to allow for
/*1. Get total of all balances
2. Get balance from C or S types
3. Find negative balances from any transaction
4. Get balance from a select id*/
}
1

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 Programming Questions!