Movie Rental Project Continuation:
C# - Visual Studio 10
Comments in the code would be very helpful.
Attached is what I have so far, and also an image of completed program.
Using your MovieRental project, add the following new features:
1. Add Item To Cart – (NEW)
Create a partial class (file named customerOrder.cs). The namespace and class name need to match the namespace and class name of your FrmMovieRental.cs file. This partial class will contain programmer defined methods that help with individual customer order logic components - NO GUI components (No TextBoxes, No RadioButtons, No MessageBoxes, No GUI components).
Required methods: implement and call methods to perform the following tasks (make sure the methods are logic components and NO GUI components are used):
Each shopping cart item in the ListBox needs to include the fields of information in a comma delimeted format: category,title,type,$amt
Category of Movie
Title of Movie
Type of Movie: DVD or Blu-Ray
Cost of Movie: $4.50 DVD or $5.00 Blu-Ray
Write a method that will build the item record string in the form:
Write methods that will parse the shopping cart item: category,title,type,$amt into the individual items and return the individual field.
You are welcome to create any additional methods to facilitate step-wise refinement of your program.
Remember each method should only handle one task or one job.
If you have any tasks that you code more than once, you need to make a method for it so that you can just re-use your method when you need to accomplish that task.
2. Check Out - UPDATE THIS WITH THE FOLLOWING:
If the member checkbox has been checked, the customer receives 10% discount during Check Out
Required method(s): write method(s) to generate a customer invoice and then use the method(s) in the Check out. To generate the customer invoice loop through the items collection of the shopping cart listbox and generate a string representing the customer invoice for the individual customer by parsing each individual field using the GetFieldFromCartItem methods.
Meet the Parents
Grand Totat: $9.50
Change the functionality of the Summary TextBox so that it displays the customer invoice. the quantity of DVD and corresponding categories and titles, quantity of Blu-Ray and corresponding categories and titles, the sub total cost, discount amount and grand total cost as shown above.
3. Start New Order (NEW)
Add a Start New Order button. When clicked the form gets reset for a new customer order.
Add the functionality to keep track of the number of customers.Attachments