Write a program to calculate and display the total cost of a customer's purchases at a convenience store. Use text boxes to obtain the user's inputs for gallons of gas, apples, and donuts. Gas costs $1.249 per gallon. Apples are 45 cents each and donuts cost 55 cents each. You must apply sales tax to the purchase of the donuts. The apples and gasoline should not be taxed since apples are not taxable according to the state and tax is already included in the base price of gas.
When the user clicks a command button, the program must display the total cost of purchasing the desired amounts of gas, apples, and donuts in a label. Be sure to also display an appropriate output message.
Your program must use one or more variables and/or constants of the appropriate data types where appropriate, even though this program could be written without using variables. Remember that is very important for your code to be easy-to-understand and easy to upgrade. Provide Clear and Exit command buttons and make sure that the focus moves correctly.
Your program must follow the Coding Standards. You could lose many points for violating the Coding Standards (e.g. poor spacing, incorrect indentation, incorrect prefixes, etc.) Save the form (frmMain.frm) and project (Ch3Proj2.vbp) files in a newly created folder named Ch3Proj2. If you create the Excel test plan at school, save it as Ch3Proj2.xls in the same Ch3Proj2 folder.
Preconditions:
Staple your printouts in the following order: