Question
Create a visual basic program that completes the following: 1. Create an Item Class. It should be able to store one string, one integer and
Create a visual basic program that completes the following:
1. Create an Item Class. It should be able to store one string, one integer and one double. 2. Create an ItemList Class. This class should contain an array of Items. You may hard code the number of items in the initial array or use ReDim to increase the size of the array before you insert new items into the array. This class should allow for expanding the size of the array if necessary and must include a function to generate a receipt as a string for all of the items in the Item array. 3. Create an application interface that asks the user to enter 3 values: text string (Part Name), a quantity, and a sale's' price. 4. Once the 3 values are all entered, the user can press a button. Store these values in the array of Item class objects in the ItemList. Clear the text boxes for the next item. 5. When the user is done entering N items into the ItemList, they may push a second button in the UI to save a receipt. The string of text generated by the button push should call the function in the ItemList class that creates a receipt as a string and save that string to a file with the name Receipt_DATE.txt where DATE is todays date as YYYY-MM-DD. Do not forget to check for perfect data. If the software crashes because alpha letters are in a numeric textbox, you lose a lot of points. If the file created does not look like a printable receipt, you will lose valuable points.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started