Create an application using the following names for the solution and project, respectively: Van Solution and Van
Question:
Create an application using the following names for the solution and project, respectively: Van Solution and Van Project. Save the application in the VB2015\Chap03 folder. Change the form file’s name to Main Form.vb. Change the form’s name to frmMain. Rent-A-Van wants you to create an application that calculates the total cost of renting a van. Customers pay a base fee plus a charge per mile driven. The user will enter the base fee and the charge per mile driven when the application is started. Use text boxes to get the customer’s name, the mileage at the beginning of the rental period, and the mileage at the end of the rental period. Use labels to display the base fee, the charge per mile driven, the number of miles driven, and the total rental cost. Be sure to use variables and the TryParse method in your code. Also be sure to enter the three Option statements in the General Declarations section. The total rental cost should be displayed with a dollar sign and two decimal places. Clear the calculated amounts when a change is made to the beginning or ending mileage. Save the solution, and then start and test the application.
Step by Step Answer: