Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

P.5. Department-store customer Develop a C++ program that will determine whether a department-store customer has excceded the credit limit on a charge account. For each

image text in transcribed
P.5. Department-store customer Develop a C++ program that will determine whether a department-store customer has excceded 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 a. b. c. d. e. Nga LT, 18.02.2019 Assignment 1 G06 The program should use a while structure to input each of these facts, calculate the new balanced ( beginning balance charges-credits) and determine whether the new balance exceeds the customer's credit limit. For those customers whose credit limit is exceeded, the program should display the customer's account number, credit limit, new balance and the message "Credit limit exceeded!" Enter account number (-1 to end): 100 Enter beginning balance: 5394.78 Enter total charges: 1000.00 Enter total credits: 500.00 Enter credit limit: 5500.00 Account: 100 Credit limit: 5500.00 Balance: 5894.78 Credit Limit Exceeded Enter account number (1 to end): 200 Enter beginning balance: 1000.00 Enter total charges: 123.45 Enter total credits: 321.00 Enter credit limit:1500.00 New balance is 802.45 Enter account number (-1 to end): 300 Enter beginning balance: 500.00 Enter total charges: 274.73 Enter total credits: 100.00 Enter credit limit: 800,00 New balance is 674.73

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

PC Magazine Guide To Client Server Databases

Authors: Joe Salemi

1st Edition

156276070X, 978-1562760700

More Books

Students also viewed these Databases questions