Menu

[solved]-Need Help Writing Software Extensive Project Multiple Parts Teacher Suggested Could Upto A Q39014588

Assignment Definition This assignment requires the development of C++ software that supports order processing, account manage

Need help writing this software. This is an extensive projectwith multiple parts. The teacher suggested there could be uptoatlas 15 files, with all the class files(cpp), header files (.h)and text file(shopping list .txt). Please read through all theinformation. Please break up all the files (.cpp , .h , .txt), andlabel them so it is easier for me to copy it. Please ask anyquestions to help you understand it better.

The rest of the requirements will be typed below. There are somegivens that are mentioned at the end.

Implementation Requirements

You must use the following features or structures of the C++programming language.

  • At least one (1) instance of inheritance using your ownclasses.
  • At least one (1) use of composition.
  • Initialization of class data must be performed in classconstructors.
  • The array class template.
  • Pointer data types and the C++ String class.
  • At least one (1) instance of operator overloading other thanstream input or output.
  • At least one (1) use of an STL container with associatediterator and algorithms.
  • Exception handling must be implemented to validate userinputs.
  • All customer account, cart and inventory data must be stored inrandom access binary files (.dat).
  • Shopping list files must be input as sequential streamtext.

Input Definitions

Customer shopping lists

Customer shopping lists must be created with a text editor andstored in text files. The name of each list file must include thecustomer account number and a simple sequence number (e.g.,C12765_L01). You must pre-generate enough sample shopping listfiles to adequately test your application and all of its functions.Here is a couple examples.

C271655_L01.TXT

Apples,5

Cereal,2

Cheese,2

Coupon[Cheese,-1.00]

Milk,1

Coupon[Cereal,-0.50]

Tea,2

Chicken,1

Notes:

  1. Each coupon description is enclosed in square brackets andvalues separated with a comma.
  2. “Customer account number” is a 6-digit value (e.g.,237384)

Customer Shopping Carts

Your project code must create shopping carts from customerselected shopping lists. (One list saved as one cart.) After thecart content is saved on disk, your code must allow the customer toadd or remove food items or coupon items. Here is a few examples ofcart update requests.

ADD,Milk,1

REMOVE,Tea,1

ADD,Coupon[Chicken,-0.50]

REMOVE,Coupon[Cheese]

Data Resource Files

You must design your own files to hold data that yourapplication needs to run properly. However, you must useonly one file for all customer account data, one file for all cartdata and one file for all inventory data. Each of these three datafiles must use random access with binary format.

User Output Definitions

Shopping Cart Reports

Customers may request to see the contents of their shopping cartat any time. Upon request, you must display the followinginformation to the console window.

  • Customer account number
  • A list of food items with associated quantity and pricevalues
  • Total cost of all items in this cart

Checkout Receipt

This is a report is almost identical to the cart report but italso includes a record of coupons applied.

  • Customer account number
  • A list of food items with associated quantity and pricevalues
  • A list of coupons each represented by the associated food nameand discount price
  • Total cost of all items in this cart at checkout

Inventory Reports

There are only two types of inventory reports – one that showsall food items and one that shows only a selected item.

  • Service manager id
  • A list of food items with associated quantity and pricevalues

OR

  • Service manager id
  • One food item with associated quantity and price value

Validation and Error Messages

You must use C++ exception handling (try-throw-catch) to checkfor the follow exceptions. Print an appropriate error message inthe console window whenever these exceptions are detected.

  • Food request quantity not available in inventory
  • Insufficient quantity or missing item in cart for removerequest
  • Insufficient funds in debit account at checkout

Required Items to be Submitted

Part 3: Final tested version of C++ code (submit cpp and h filesand .dat file, shopping cart files).

GIVENS

General:

Customer account info (name, account#, etc.) must be saved ondisk.

Shopping lists must be stored in separate pre-created textfiles. (See below.)

A simple console user interface must be provided for all userfunctions.

There are two types of users – customers and service managers.They must both login.

Payment and Debit Accounts:

Customers set an initial balance on their service debit accountwhen it is created.

You must reject payments over the amount available in a customeraccount.

Customers may add money to their accounts at any time.

If the total cost of cart items exceeds account balance, thencancel checkout.

Food Items:

You must define a minimum of twenty (20) types of fooditems.

Initial inventory (food, quantity, prices) must be pre-loadedinto an inventory file.

Every request to add or remove a food item must include aquantity.

Price changes to inventory do not affect price of items incarts.

Adding or removing food to carts causes only temporary changesto inventory data.

Shopping Carts:

Each customer may use only one cart at a time.

The food service can handle a maximum of ten (10) customers atone time.

Customers may save cart contents on disk and retrieve themlater.

Carts will contain no duplicate items.

Customer cart reports must show all cart items with prices,quantities, and a total.

Each cart is deleted immediately after payment and checkout.

Each remove request may only remove one cart item at a time.

Entire quantity for each food item in a cart must be available(no partial orders).

Inventory Control and Reporting:

The store manager may perform re-stocking actions at anytime.

Food re-stocking inputs specify food item names, prices, andquantities.

Re-stocking quantity values must be added to current quantitylevels.

Inventory control reports are only displayed on a console screen– not saved to a file.

Assignment Definition This assignment requires the development of C++ software that supports order processing, account management, and inventory control activities of an imaginary food service. Assume that customers of this food service will use a separate Web-based app (not included in this assignment) to browse product catalogs and then create shopping lists stored in specially formatted text files (see input definitions below). Each shopping list may include: • Food item names and quantity. Coupon information that includes the name of the food and discount amount. To process these shopping lists: 1. customers must first create an account with your service. 2. Each account is identified by a unique customer id and maintains an amount of money that may only be used for food purchases (i.e., a debit account). 3. Customers enter a dollar amount when the account is created. 4. Once they have an account, then they may select one of the following actions provided by your service program. Retrieve a shopping list file and save it to a virtual cart (only one virtual cart per customer). Retrieve a saved cart Add or remove items from a saved shopping cart Create shopping cart reports (output text file with list of saved cart items for a specific customer). Process the current cart (checkout). Saved carts must be deleted after checkout. Also, customers must be able to perform the following basic functions on their account. • Add money to their food service account. Display account information. The inventory for this food service must be controlled by a food service manager. Your application must provide the following functions for the service manager. • Addition of food item quantity to the inventory of the food service (i.e., re-stocking). Prices changes for food items. (Note: Official prices are stored in the inventory – not shopping carts). Creation of inventory control reports (for the entire inventory or selected items). Therefore, the main function of your application, must prompt the user for the following actions using a simple console window. 1. Login or create an account. (Service manager account must already be in your system.) 2. If service manager, a. Add quantity to inventory. b. Update inventory prices. c. Display inventory report. 3. If customer, a. Display account information. b. Add money to account. c. Retrieve a shopping list file. d. Retrieve a saved cart. e. Update cart contents. f. Display cart report. g. Process the cart (checkout) Show transcribed image text Assignment Definition This assignment requires the development of C++ software that supports order processing, account management, and inventory control activities of an imaginary food service. Assume that customers of this food service will use a separate Web-based app (not included in this assignment) to browse product catalogs and then create shopping lists stored in specially formatted text files (see input definitions below). Each shopping list may include: • Food item names and quantity. Coupon information that includes the name of the food and discount amount. To process these shopping lists: 1. customers must first create an account with your service. 2. Each account is identified by a unique customer id and maintains an amount of money that may only be used for food purchases (i.e., a debit account). 3. Customers enter a dollar amount when the account is created. 4. Once they have an account, then they may select one of the following actions provided by your service program. Retrieve a shopping list file and save it to a virtual cart (only one virtual cart per customer). Retrieve a saved cart Add or remove items from a saved shopping cart Create shopping cart reports (output text file with list of saved cart items for a specific customer). Process the current cart (checkout). Saved carts must be deleted after checkout. Also, customers must be able to perform the following basic functions on their account. • Add money to their food service account. Display account information. The inventory for this food service must be controlled by a food service manager. Your application must provide the following functions for the service manager. • Addition of food item quantity to the inventory of the food service (i.e., re-stocking). Prices changes for food items. (Note: Official prices are stored in the inventory – not shopping carts). Creation of inventory control reports (for the entire inventory or selected items). Therefore, the main function of your application, must prompt the user for the following actions using a simple console window. 1. Login or create an account. (Service manager account must already be in your system.) 2. If service manager, a. Add quantity to inventory. b. Update inventory prices. c. Display inventory report. 3. If customer, a. Display account information. b. Add money to account. c. Retrieve a shopping list file. d. Retrieve a saved cart. e. Update cart contents. f. Display cart report. g. Process the cart (checkout)

Expert Answer


Answer to Need help writing this software. This is an extensive project with multiple parts. The teacher suggested there could be … . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *