Answer to Question #20095 in C++ for matt

Question #20095
the program is suppose to create a credit report for customers. Can u help me finish
/*
project 8

The purpose of this program is to create a credit report for customers.
variable type represents
last_name string last_name
first_name string first_name
account_Number string account_number
balance double balance
purchases double purchases
*/

#include <string>
#include <iostream>
using namespace std;
string reply, account_number, last_name, first_name, credit_limit;
double balance, purchases, available_credit;

void setup();
void input_data();
void display_totals();

int main() {
setup();
cout<<"Do you want to run program";
cin>>reply;
while(reply!="y" && reply!="n")
{
cout<<"error";
cout<<"enter y or n";
cin>> reply;
}
while(reply=="y"){
heading();
input_data();
display_totals();
cout<<"would you like to prepare another chart? (yes/no)"<<endl;
cout<<"press <enter> to continue";
cin>>reply;

while(reply!="y" && reply!="n")
{
cout<<"error";
cout<<"enter y or n";
cin>>reply;
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS