Question: Credit Checker Application) Develop an application (as shown in Fig. 4.24) that determines whether a department-store customer has exceeded the credit limit on a charge
Credit Checker Application) Develop an application (as shown in Fig. 4.24) that determines whether a department-store customer has exceeded the credit limit on a charge account. Each customer enters an account number (an Integer), a balance at the beginning of the month (a Double), the total of all items charged this month (a Double), the total of all credits applied to the customer's account this month (a Double), and the customer's allowed credit limit (a Double). The application should input each of these facts, calculate the new balance (= beginning balance credits + charges), display the new balance and determine whether the new balance exceeds the customer's credit limit. You can use the format "{0:C}" with String method Format, to format the result as currency (see Fig. 4.24). If the customer's credit limit is exceeded, display a message (in messageLabel at the bottom of the Form) informing the customer of this fact; otherwise, display the customer's remaining credit amount. If the user presses the Clear Fields Button, the application should clear the TextBoxes and Labels. [Note: In the next chapter, we'll introduce the data type Decimal for financial calculations

a Credit Checker te x accountNumberTextBox account NumberLabel Account number 12345 starting BalanceTextBox starting BalanceLabel Starting balance: 100.00 total ChargesLabel totalChargesTextBox Total charges: 20.00 totalCredits Label totalCredits TextBox Total credits: 35.00 creditLimitLabel creditLimitTextBox Credit limit 500.000 new Balance ResultLabel newBalanceLabel $85.00 New balance: message Label Remaining credit: S415.00 clear Fields Button Clear Fields Calculate Balanc calculateBalanceButton a Credit Checker te x accountNumberTextBox account NumberLabel Account number 12345 starting BalanceTextBox starting BalanceLabel Starting balance: 100.00 total ChargesLabel totalChargesTextBox Total charges: 20.00 totalCredits Label totalCredits TextBox Total credits: 35.00 creditLimitLabel creditLimitTextBox Credit limit 500.000 new Balance ResultLabel newBalanceLabel $85.00 New balance: message Label Remaining credit: S415.00 clear Fields Button Clear Fields Calculate Balanc calculateBalanceButton
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
