Design an event handler that will execute when the calcAvailableCreditButton component is clicked. The event handler should
Question:
Design an event handler that will execute when the calcAvailableCreditButton component is clicked. The event handler should perform the following:
Declare the following Real variables: maxCredit, usedCredit, and availableCredit.
- Get a value from a text box named maxCreditTextBox and assign it to the maxCredit variable.
- Get a value from a text box named usedCreditTextBox and assign it to the usedCredit variable.
- Subtract the value in usedCredit from maxCredit and assign the result to availableCredit.
- Store the value in the availableCredit variable in a label component named availableCreditLabel.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: