Answered You can hire a professional tutor to get the answer.

QUESTION

Suppose that we want to create a customer file for a bank. File should be named "customer.txt" and each line contains customer record of 2 fields;...

Suppose that we want to create a customer file for a bank. File should be named "customer.txt" and each line contains customer record of 2 fields; name and balance. Build a program that prompts the user to enter name and balance of customers and store them into file "customer.txt". Name should be String and Balance should be double.

Choose the appropriate technique to exit the program. Program may stop if user presses only ctrl+x when entering customer name or program may stop after user entered 10 customers records or……etc. It is your choice

#include <iostream>#include<fstream>using namespace std;int main(){string name;double balance;int i;ofstream out("costomers.txt");...
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question