Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create a project for the local car rental agency that calculates rental charges.

ID: 3542492 • Letter: C

Question

Create a project for the local car rental agency that calculates rental charges. The agency charges $15 per day plus $0.12 per mile.

Form: Use text boxes for the customer name, address, city, state, zip code, beginning odometer reading, ending odometer reading, and the number of days the car was used. Use text boxes to display the miles driven and the total charge. Format the output appropriately.

Include buttons for Calculate, Clear, Print and Exit.

Code: Include an event procedure for each button. For the calculation, subtract the beginning odometer reading from the ending odometer reading to get the number of miles traveled. Use a constant for the $15 per day charge and the $0.12 mileage rate. Display a message to the user for any bad input data.

Explanation / Answer

Form Design:

1. Open a New Project in Visual Studio VB.NET

2. Resize the form accordingly

3. Drag and drop 10 labels, 10 textboxes and 4 buttons on to the form from the toolbox floating panel

4. Align the controls in the form

5. Select each control and in the properties window name them (ex. Textbox for Name is named as

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote