Lennie McPherson, proprietor of Lennie’s Bail Bonds, needs to calculate the amount due for setting bail. Lennie requires something of value as collateral, and his fee is 10 percent of the bail amount. He wants the screen to provide boxes to enter the bail amount and the item being used for collateral. The program must calculate the fee.
Form: Include text boxes for entering the amount of bail and the description of the collateral. Label each text box.
Include buttons for Calculate, Clear, Print, and Exit.
The text property for the form should be “Lennie’s Bail Bonds”.
Code: Include event procedures for the click event of each button. Calculate the amount due as 10 percent of the bail amount and display it in a text box, formatted as currency. Make sure to catch any bad input data and display a message to the user.