C#: Credit Limit Calculator (Ex 5-18) – Control Statements, Object, and Classes

Share it with your friends Like

Thanks! Share it with your friends!


C# 2012 How To Program – Control Statements Pt.1
Homework 5-18 – Credit Limit Calculator and Creating Account Class

Develop a C# app that will determine whether any of several department store customers has exceeded the credit limit on a charge account. For each customer, the following facts are available:
a) account number
b) balance at the beginning of the month
c) total of all items charged by the customer this month
d) total of all credits applied to the customer’s account this month
e) allowed credit limit.
The app should input all these facts as integers, calculate the new balance (= beginning balance + charges – credits), display the new balance and determine whether the new balance exceeds the customer’s credit limit. For those customers whose credit limit is exceeded, the app should display the message “Credit limit exceeded”.
Use sentinel-controlled repetition to obtain the data for each account.


Maldo Moreng says:

it was very good sites to search for information

Write a comment