please include 3 cpp files Develop a C program that will det

please include 3 cpp files
Develop a C++ program that will determine whether a department-store customer has exceeded the credit limit on a charge account. For each customer, the following facts are available: Account number (an integer) Balance at the beginning of the month Total of all items charged by this customer this month Total of all credits applied to this customer\'s account this month Allowed credit limit The program should use a while statement to input each of these facts, calculate the new balance (= beginning balance + charges credits) and determine whether the new balance exceeds the customers credit limit. For those customers whose credit limit is exceeded, the program should display the customers account number, credit limit, new balance and the message \"Credit Limit Exceeded.\"

Solution

#include<iostream.h>

#include<stdio.h>

void main()

{

cout<<\"Enter number of customers\";

cin>>n;

while(n>=0)

{

cout<<\"Enter account number\";

cin>>accNumber;

cout<<\"Balance at begining of month\";

cin>>begBalance;

cout<<\"Enter total number of items charged by this customer this month\";

cin>>chargeMonth;

cout<<\"Enter total number of credits applied to this customer\'s account this month\";

cin>>creditMonth;

cout<<\"Enter allowed credit limits\";

cin>>creditLimit;

newBalance = begBalance + chargeMonth - creditMonth;

if(newBalance>creditLimit)

{

cout<<\"The account number is\"<<accNumber;

cout<<\"Credit Limit is \"<<creditLimit<<endl;

cout<<\"New Balance is\"<<newBalance<<endl;

cout<<\"CreditLimit Exceeded\";

}

}

}

please include 3 cpp files Develop a C++ program that will determine whether a department-store customer has exceeded the credit limit on a charge account. For
please include 3 cpp files Develop a C++ program that will determine whether a department-store customer has exceeded the credit limit on a charge account. For

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site