Question: Create an application using the following names for the solution and project, respectively: Van Solution and Van Project. Save the application in the VB2015Chap03 folder.
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 Solution
3.50 Rating (153 Votes )
There are 3 Steps involved in it
Microsoft Visual Studio Solution File Format Version 1200 Visual Studio 14 VisualStudioVersion 140225120 MinimumVisualStudioVersion 100402191 ProjectF184B08FC81C45F6A57F5ABD9991F28F Van Project Van Pr... View full answer
Get step-by-step solutions from verified subject matter experts
