Codingassignmenthelper | Home Codingassignmenthelper | University

CIS 115 Final Programming Project Parks

Assignment :

Write a program that allows your user to select a vehicle to rent as well as their pick up and drop off dates. The program will then display the car the user selected, the number of rental days, subtotal and total. Your user will be able to either filter the list of available cars by car type to rent with a drop down list or filter the list of available cars by typing into a search text box.
This program should include 4 events: Searching for a vehicle. This should be occurring as the user is typing. You have 2 listboxes, but will limit your form size to not show the listbox containing all of the cars (lstAllCars). This listbox is basically acting like a list or array in our code since yall don’t learn about those until 285. It will hold the list of all of the cars, and based on the car type selected in the drop down list (called a combo box, name of it is cboType and it has the exact same properties as a listbox). First: Clear out any cars listed in lstFilteredCars first You will then loop through lstAllCars and only display in the lstFilteredCars, items contain whatever the value the user typed in the text box.
Selecting a vehicle type from the drop down list (same event as changing the selection in a list box) Clear out the search text box and any cars listed in lstFilteredCars first You will then loop through lstAllCars and only display in the lstFilteredCars, the cars whose type match the selection from cboType (aka the type the user chose). If they select show all cars, it should show them all of the cars.
Selecting a vehicle to rent When the user selects a vehicle, the compute rental price button should be enabled
Clicking the button to compute the rental price: This event must have 2 functions and 1 sub procedure One function to compute the number of days the user will be renting the car for. Should have an Integer return data type One function to compute the subtotal with a Decimal return data type (since subtotal is a monetary value). Based of the type of car the user selected (do not use the type from the drop down list, you have to set the type as the one that the user actually selected in case they didn’t use the drop down list) Daily prices for the vehicle types Car: $15.00/day Van: $20.00/day SUV or Truck:$25.00/day 1 sub procedure to display the output (make sure to only use ByRef if needed) Tax is 10% of the subtotal Validation: you must validate that the pick up date is before the drop off date. If it is not, display an error message and do not display anything in lstResults.


Image1


Image1

Programming Notes :

Program must have the following : 1 do loop (either pre test or posttest A for next loop 2 functions and 1 sub procedure mentioned for Compute Rental Price event 1 if statement 1 case statement Output for pricing should have a $ and display to 2 decimal places.

A. Steps required for planning and completing Programming Assignment :

Analyze : Make sure you understand the problem and ask questions if you don’t. Write pseudocode for your own use (not to turn in).
Design: Desk check your pseudocode before coding it to make sure it works correctly. Remember to constantly test as you write new lines of code with breakpoints.
Design the interface: Create the controls on the form. Set the properties for a nice interface. Give each control as well as the form meaningful names using proper prefixes. Tab order should be set from top to down for fields that need to have focus. Make sure the form ‘looks good’; all controls are lined up. The text properties should have appropriate values when needed. Add an additional label that says “Programmed by:” and your name.
Code: Following your pseudocode, translate into VB code Use camelCasing and meaningful names for all variables Use consistent, standard (capitalize), and meaningful names for subs and functions. Select appropriate data types as needed. Before you submit your program, you must remove any empty stubs and unused variables. Make the spacing consistent. Blank lines can be used within the code to make it more readable, but don’t leave gaps in the program where you inserted too many blank lines accidentally.
Test and Debug: Find and correct syntax, execution, and logic errors. Test your program with a variety of input to be sure it works properly.
Complete the documentation:
Internal Documentation:
The program should include a general comment section just after the Public Class statement. Include:
Programmed by: Your full name, CIS 115 and the class time; A general statement indicating the purpose of the program.
Comments (again) – Each event procedure should begin with a comment just after the header that states the purpose of that event. Other comments may be included if you feel they are needed.

B. Other requirements

Once you have completed the program, you need to Zip the project before it can be turned in. Name the file <yourLastName_yourFirstName>_Final_Program The Zipped file should be placed in the Final Programming Project in USA Online
To Download Click Here > CIS 115 Final Programming Project Parks.pdf
Codingassignmenthelper | Home Codingassignmenthelper | Home