Visual Basic 2010 How to Program Deitel Credit Checker Application

$ 12

Visual Basic 2010 How to Program Deitel Credit Checker Application

4.12 (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.]

63 in stock

SKU: DEITELVBCREDIT Category:

Description

Visual Basic 2010 How to Program Deitel Credit Checker Application

4.12 (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.]

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.