Question: For the following, How to make the class, function and the text files. Would Appreciate some explaination The Language is visual basic A company has

For the following, How to make the class, function and the text files. Would Appreciate some explaination

The Language is visual basic

A company has hired you to create an application that functions as an online store. The

application will contain a list box that shows all of the items that can be purchased, a

shopping car list box that shows items placed in the cart, and a search box that searches

for items and displays the price. The program will save the shopping cart to a text file

and will retrieve from the text file the price of each item in the cart and display a total.

The application must be password protected and all buttons are disabled until a properly

formatted password is entered. If an incorrectly formatted password is entered an error

message box will display. The search box will search string data in an array and display

the price when the user clicks the search button. If the item is not found, an error

message box will display. The application will have a menu that includes the option to

enter a password and to exit.

Criteria:

1. The password must be formatted in the following way: the first character is a

letter between A-D, the second and third characters are numbers, the fourth

character is a letter between M-T, the fifth character is a number, and the last

character is a letter between A-Z. Example: A11M1A

2. The items list box will only show item names.

3. The search text box will display the item price in a label.

4. The shopping cart list box will display the item selected from the item list box

when the add button is pressed. It will also display the price of the item.

5. The checkout button will display the total cost of all items in the shopping cart.

Requirements:

1. You will decide what the company name is and what products they sell.

2. Your items and prices must be stored in a 2-dimensional array.

3. When the form loads, all of the item names will load into the item list box.

4. All buttons should be disabled until a correct password is given.

5. Your application must include a menu strip that has the options of entering the

password and exiting. The items should have access keys noted and a function

key for entering the password.

6. All items entered into the shopping cart must be stored in a text file.

7. You must create a new class and create a new object from that class.

8. When calculating the total, the application must read the items from the text file

and make the proper conversions to calculate the cost.

9. All objects that are used in code must be named with a meaningful name and be in

the proper camel case format.

10. All monetary values displayed must be in the proper currency format.

11. You must have at least one function or sub procedure.

12. There will be 5 points of extra credit given if you correctly use a structure for any

memory locations, however, this is not a requirement.

13. You submitted final must include a TOE chart for you application.

These are the minimum requirements for objects and certain procedures. You will also

have to code all of the proper mathematical calculations to get the proper output.

You will submit your application and TOE chart within ONE zipped folder, named,

VBFinal_Lastname_Firstname.

Hint: The easiest way to incorporate the new class and object will be using it for your

calculations of the shopping cart total. Create a new object from the class you created.

In your main form, when the checkout button is pressed, create the new object and call a

function or sub procedure in the new class. The function or sub procedure in the new

class object will calculate the total of all items in the shopping cart, and return or by

reference send the data back to the main form procedure.

There will be no resubmissions of final assignments. Make sure you debug and test your

program prior to submission! Additionally, without prior approval, there will be no finals

accepted as late once I start grading those that were submitted. I will likely start grading

late Friday or early Saturday morning after they are received. If you get it in before that

time, you will get a 5% late penalty. If it comes after, it will be 0 points. Due to time

constraints for submitting your final grades to the university, all finals must be received

by Friday at 11:59PM.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!