Question 2 Develop a C++ program that will determine whether a department-store customer has exceeded the credit limit o

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Question 2 Develop a C++ program that will determine whether a department-store customer has exceeded the credit limit o

Post by answerhappygod »

Question 2 Develop A C Program That Will Determine Whether A Department Store Customer Has Exceeded The Credit Limit O 1
Question 2 Develop A C Program That Will Determine Whether A Department Store Customer Has Exceeded The Credit Limit O 1 (190.89 KiB) Viewed 69 times
This is C++ program language..... Please help me solve it emediately it's an emergency
Question 2 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: a) Account number (an integer) b) Balance at the beginning of the month c) Total of all items charged by this customer this month d) Total of all credits applied to this customer's account this month e) Allowed credit limit 6 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 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 New balance is 5894.78 Account: 100 Credit limit: 5500.00 Balance: 5894.78 Credit Limit Exceeded. Enter Account Number (or -1 to quit): -1 The output (in this case new balance) should be printed in a floating-point number format and with two digits of precision to the right of the decimal point. Question 3 One large chemical company pays its salespeople on a commission basis. The salespeople each receive R200 per week plus 9 percent of their gross sales for that week. For example, a salesperson who sells R5000 worth of chemicals in a week receives R200 plus 9 percent of R5000, or a total of R650. Develop a C++ program that uses a while statement to input each salesperson's gross sales for last week and calculates and displays that salesperson's earnings. Process one salesperson's figures at a time. Enter sales in rands (-1 to end): 5000.00 Salary is: R650.00 Enter sales in rands (-1 to end): 6000.00 Salary is: R740.00 Enter sales in rands (-1 to end): 7000.00 Salary is: R830.00 Enter sales in rands (-1 to end): -1 The salesperson's earnings should be printed as a fixed-point value with a decimal point and with two digits of precision to the right of the decimal point. 7
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply