Do my programming homework for me.
CSE 110 Final Project CSE 110 Final Project: You are to create a Java Application that will outline everything you have learned this semester. This application is designed to display the following skills: 1. Declaration of variables and data types 2. Creation of Classes and Methods and Encapsulation 3. Implementation of Constructors 4. Inheritance and Polymorphism 5. Reading and Writing to files For you project, you will be creating a online shopping application. There are 3 major parts to this project. 1. Manager – The manager has the following responsibilities: a. Enter items into storage/inventory. b. Modify items in storage/inventory. c. Delete items in storage/inventory. d. Add and remove employees e. Display all Employees. f. Modify Employees g. Also has the same abilities as the Employee 2. Employee – The Employee has the following responsibilities: a. Checkout Customer b. Check Inventory c. Review current online orders. d. Remove a customer’s order. e. Create customer account 3. Customer – The Customer has the following responsibilities: a. Load their order b. Save their order c. Checkout d. Create a new account e. Shop and search for items in the store. All data is to be saved in text documents: All Login should be stored in the following format: UserName, Password, type of account Example: SOsburn, 1234ASU, Manager Inventory should be stored in the following format: Product Name, Quantity, Price per unit Example: Sugar, 32, 2.35 Customer Information should be stored in the following format: First Name, Last Name, Street address, City, State, Zip, UserName Example: Steven, Osburn, 123 SunDevil Dr., Tempe, Az, 85232, sosburn Customer’s Order should be stored in the following format: Product, Quantity, Price per unit Example: Sugar, 2, 2.35 Apples, 2, .99 All customer orders are to be sorted (alphabetically) at the time of checkout and should be displayed in the following format: Customer: Steven Osburn 123 SunDevil Dr. Tempe, Az. 85232 Items to be purchased: 2 Apples $1.98 2 Sugar $4.70 ------------------------------------- Total: $6.68 Discounts: $0.00 Tax: 4% ------------------------------------- Total Purchase Price $6.94 During the execution of your application, you should be saving the customer data while shopping in an Array and then give the customer an option to: 1: Add more items 2: Review the list 3: Remove an item 4: Save List 5: Load List 6: Delete List 7: Completed Order 8: Exit Items 1 – 6 are self-explanatory, item 7 you will need to identify a way to separate the saved files from the completed ones. If the list is completed, it means that it is ready for check out and the employee or manager needs to be alerted when they log on. Employee’s and Manager Information should be stored in the following format: Employee ID, First Name, Last Name, Position, Login ID Example: 0001231, Steven, Osburn, Manager, sosburn During the login process, if it is an employee or manager, you must verify the user name from the login with the Employee’s and Manager Information file. Every customer can only save 1 file, if it exists, ask the customer if it’s ok to write over the current file. If they load the file, and want to Complete the Order, that file is deleted and a Completed Order file is created. You will need to verify with the customer to make sure they are completely done before you exit the customer. They might want to create a new order. Need to verify that there is enough inventory in-stock to sell. 1. Login as Customer 2. Login as Employee 3. Login as Manager 4. Exit 1 1. Load Data 2. Save Data 3. Checkout 4. Create account 5. Shop 6. Exit 5 1. Add item 2. Exit 1 Here is what we hava in stock: Product Name QuantityPrice Apple65.99 Oranges43.99 Tomato26.69 Steak226.55 M&M's85.69 What would you like to add to the cart? Please enter the name of the product: Apples Item is not found. Here is what we hava in stock: Product Name QuantityPrice Apple65.99 Oranges43.99 Tomato26.69 Steak226.55 M&M's85.69 What would you like to add to the cart? Please enter the name of the product: Apple How many Apple would you like? 3 The items were added to your cart. 1. Add item 2. Exit 1 Here is what we hava in stock: Product Name QuantityPrice Apple62.99 Oranges43.99 Tomato26.69 Steak226.55 M&M's85.69 What would you like to add to the cart? Please enter the name of the product: Steak How many Steak would you like? 3 The items were added to your cart. 1. Add item 2. Exit 1 Here is what we hava in stock: Product Name QuantityPrice Apple62.99 Oranges43.99 Tomato26.69 Steak196.55 M&M's85.69 What would you like to add to the cart? Please enter the name of the product: M&M's How many M&M's would you like? 3 The items were added to your cart. 1. Add item 2. Exit 2 1. Load Data 2. Save Data 3. Checkout 4. Create account 5. Shop 6. Exit 2 Please enter your fist initial + last name (ex. Steve Osburn = sosburn): sosburn 1. Load Data 2. Save Data 3. Checkout 4. Create account 5. Shop 6. Exit 1 Please enter your fist initial + last name (ex. Steve Osburn = sosburn): sdosburn There was no record found. 1. Load Data 2. Save Data 3. Checkout 4. Create account 5. Shop 6. Exit 1 Please enter your fist initial + last name (ex. Steve Osburn = sosburn): sosburn 1. Load Data 2. Save Data 3. Checkout 4. Create account 5. Shop 6. Exit 3 Do you already have an account (y/n)?y Please enter your first name: Steven Please enter your last name: Osburn Your order was processed. Customer: Steven Osburn 123 Apple ln. Mesa, Az 85212 Items to be purchased: No. ItemPrice 3Apple$2.97 3Steak$19.65 3M&M's$2.07 ------------------------------------- Total:$24.69 Discount:$0.00 Tax: 4% ------------------------------------- Total Purchase Price :$25.68 1. Load Data 2. Save Data 3. Checkout 4. Create account 5. Shop 6. Exit 6 1. Login as Customer 2. Login as Employee 3. Login as Manager 4. Exit 2 Please enter your username:bsmith Please enter your password:1234 1. Checkout Customer 2. Check Inventory 3. Review current online orders. 4. Review a customer’s order. 5. Delete a customer’s order. 6. Create customer account 7. Exit 2 Which Product do you want to check? Please enter Product Name: Apple Name: AppleNumber in Stock: 62Price Per Unit: .99 1. Checkout Customer 2. Check Inventory 3. Review current online orders. 4. Review a customer’s order. 5. Delete a customer’s order. 6. Create customer account 7. Exit 3 found COMP-sosburn.txt 1. Checkout Customer 2. Check Inventory 3. Review current online orders. 4. Review a customer’s order. 5. Delete a customer’s order. 6. Create customer account 7. Exit 4 Please enter File name to review: COMP-sosburn.txt Product Name QuantityPrice Apple3.99 Steak36.55 M&M's3.69 1. Checkout Customer 2. Check Inventory 3. Review current online orders. 4. Review a customer’s order. 5. Delete a customer’s order. 6. Create customer account 7. Exit 5 Enter the name of the file to be DELETED: COMP-sosburn.txt Your order was processed. 1. Checkout Customer 2. Check Inventory 3. Review current online orders. 4. Review a customer’s order. 5. Delete a customer’s order. 6. Create customer account 7. Exit 6 Please enter your First Name: Mike Please enter your Last Name: Osburn Please enter your Address: 123 Elm St. Please enter your City: Crazy Villa Please enter your State: Az. Please enter your Zip: 85643 1. Checkout Customer 2. Check Inventory 3. Review current online orders. 4. Review a customer’s order. 5. Delete a customer’s order. 6. Create customer account 7. Exit 7 1. Login as Customer 2. Login as Employee 3. Login as Manager 4. Exit 3 Please enter your username:sosburn Please enter your password:1234 1. Enter items into storage/inventory. 2. Modify items in storage/inventory. 3. Delete items in storage/inventory. 4. Add employees 5. Remove employees 6. Display all Employees. 7. Modify Employees 8. Checkout Customer 9. Check Inventory 10. Review current online orders. 11. Review a customer’s order. 12. Remove a customer’s order. 13. Create customer account 14. To Exit 1 Enter the item name: Fish Enter the number of items: 43 Enter the base price per unit: 1.99 1. Enter items into storage/inventory. 2. Modify items in storage/inventory. 3. Delete items in storage/inventory. 4. Add employees 5. Remove employees 6. Display all Employees. 7. Modify Employees 8. Checkout Customer 9. Check Inventory 10. Review current online orders. 11. Review a customer’s order. 12. Remove a customer’s order. 13. Create customer account 14. To Exit 2 What item would you like to modify: Apples Sorry, we didn't find that item. 1. Enter items into storage/inventory. 2. Modify items in storage/inventory. 3. Delete items in storage/inventory. 4. Add employees 5. Remove employees 6. Display all Employees. 7. Modify Employees 8. Checkout Customer 9. Check Inventory 10. Review current online orders. 11. Review a customer’s order. 12. Remove a customer’s order. 13. Create customer account 14. To Exit 2 What item would you like to modify: Apple 1. Modify Product Name 2. Modify Quantity 3. Modify Price per Quantity 4